Created
October 24, 2018 14:59
-
-
Save mattdodge/ab50682b43dc4fee961eb6066811408f to your computer and use it in GitHub Desktop.
A proposed syntax for defining blocks
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
from nio.block import blockify | |
@blockify | |
def my_custom_block(signals): | |
for signal in signals: | |
setattr(signal, 'matt', 'dodge') | |
return signals |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment