You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Traceback (most recent call last):
[...snip...]
File "/lib/python3.7/lib2to3/refactor.py", line 282, in refactor
self.refactor_file(dir_or_file, write, doctests_only)
File "/lib/python3.7/site-packages/pyannotate_tools/annotations/__main__.py", line 57, in refactor_file
filename, write=write, doctests_only=doctests_only)
File "/lib/python3.7/lib2to3/refactor.py", line 728, in refactor_file
*args, **kwargs)
File "/lib/python3.7/lib2to3/refactor.py", line 335, in refactor_file
tree = self.refactor_string(input, filename)
File "/lib/python3.7/lib2to3/refactor.py", line 367, in refactor_string
self.refactor_tree(tree, name)
File "/lib/python3.7/lib2to3/refactor.py", line 441, in refactor_tree
new = fixer.transform(node, results)
File "/lib/python3.7/site-packages/pyannotate_tools/fixes/fix_annotate.py", line 181, in transform
self.add_py2_annot(argtypes, restype, node, results)
File "/lib/python3.7/site-packages/pyannotate_tools/fixes/fix_annotate.py", line 276, in add_py2_annot
self.insert_long_form(node, results, argtypes)
File "/lib/python3.7/site-packages/pyannotate_tools/fixes/fix_annotate.py", line 342, in insert_long_form
assert not argtypes, argtypes
AssertionError: ['**Any']
Couple notes on triggering the crash:
It must be a method, not function
The signature must be long
The text was updated successfully, but these errors were encountered:
Trying to annotate this code:
triggers a crash with following traceback:
Couple notes on triggering the crash:
The text was updated successfully, but these errors were encountered: