import scannerpy
from scannerpy import FrameType
db = scannerpy.Database()
@scannerpy.register_python_op()
def foobar(x: FrameType) -> bytes: pass
Raises error
Traceback (most recent call last):
File "/tmp/test.py", line 5, in <module>
def foobar(x: FrameType) -> bytes: pass
File "/home/will/.local/lib/python3.5/site-packages/scannerpy/op.py", line 350, in dec
column_type = parse_annotation_to_column_type(typ)
File "/home/will/.local/lib/python3.5/site-packages/scannerpy/op.py", line 282, in parse_annotation_to_column_type
if typ == param.empty:
NameError: free variable 'param' referenced before assignment in enclosing scope
Raises error
https://github.com/scanner-research/scanner/blob/master/python/scannerpy/op.py#L282