-
Notifications
You must be signed in to change notification settings - Fork 13
Open
Description
Please report bug at https://github.com/ilevkivskyi/com2ann/issues
Traceback (most recent call last):
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/bin/com2ann", line 12, in <module>
sys.exit(main())
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 878, in main
translate_file(args.infile, args.outfile, options)
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 814, in translate_file
result = com2ann(code,
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 781, in com2ann
new_code = com2ann_impl(data, drop_none, drop_ellipsis,
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 704, in com2ann_impl
process_func_def(item, data, wrap_sig)
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 654, in process_func_def
lines[i] = strip_type_comment(lines[i])
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 429, in strip_type_comment
_, sub_comment = split_sub_comment(typ)
File "/Users/kylefranz/.cache/uv/archive-v0/F5ORHx75Qwn_umZJI2UQj/lib/python3.8/site-packages/com2ann.py", line 349, in split_sub_comment
tokens = list(tokenize.tokenize(rl))
File "/Users/kylefranz/.local/share/uv/python/cpython-3.8.20-macos-aarch64-none/lib/python3.8/tokenize.py", line 521, in _tokenize
raise TokenError("EOF in multi-line statement", (lnum, 0))
tokenize.TokenError: ('EOF in multi-line statement', (2, 0))
As best as I can tell it failed on # type: List[float)]
- which is indeed invalid
Metadata
Metadata
Assignees
Labels
No labels