Skip to content

Instantly share code, notes, and snippets.

@mattdodge
Created October 24, 2018 14:59
Show Gist options
  • Save mattdodge/ab50682b43dc4fee961eb6066811408f to your computer and use it in GitHub Desktop.
Save mattdodge/ab50682b43dc4fee961eb6066811408f to your computer and use it in GitHub Desktop.
A proposed syntax for defining blocks
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