What is Nostr?
Glyph /
npub1h5u…y2g4
2024-07-26 20:32:28

Glyph on Nostr: OK so I am done with the new Automat interface. Just need to write unit tests. Very ...

OK so I am done with the new Automat interface. Just need to write unit tests. Very happy with @state.transition(Protocol.method, other) def implementation(...):...

except, oops, it's tedious to keep writing out all these 'return None, but with an elaborate signature' implementations, I should have a shortcut for that…

Oh, it would be nice to do some method chaining, maybe? like state.to(other).upon(Protocol.method)? And then I could say state.to(other).upon(Protocol.method).returns(None)?
Author Public Key
npub1h5u94g9409m9c6yrckcwk9lg4c6sexyvvk23p0s7s3f42lhrs7zq75y2g4