dropbox / pyannotate

Auto-generate PEP-484 annotations
Apache License 2.0
1.42k stars 59 forks source link

Exception ignored in: <async_generator object _ag at 0x7f9979703938> #50

Closed amal-khailtash closed 6 years ago

amal-khailtash commented 6 years ago

Trying to collect type annotations, but I get this exception

Exception ignored in: <async_generator object _ag at 0x7f9979703938> Traceback (most recent call last): File ".../python/3.6.3/lib/python3.6/types.py", line 27, in _ag File ".../.venv/lib/python3.6/site-packages/pyannotate_runtime/collect_types.py", line 752, in _trace_dispatch File ".../.venv/lib/python3.6/site-packages/pyannotate_runtime/collect_types.py", line 698, in default_filter_filename TypeError: startswith first arg must be str or a tuple of str, not NoneType

gvanrossum commented 6 years ago

Is the code you are trying to run public?

On Dec 4, 2017 7:03 AM, "Amal Khailtash" notifications@github.com wrote:

Trying to collect type annotations, but I get this exception

Exception ignored in: <async_generator object _ag at 0x7f9979703938> Traceback (most recent call last): File ".../python/3.6.3/lib/python3.6/types.py", line 27, in _ag File ".../.venv/lib/python3.6/site-packages/pyannotate_runtime/collect_types.py", line 752, in _trace_dispatch File ".../.venv/lib/python3.6/site-packages/pyannotate_runtime/collect_types.py", line 698, in default_filter_filename TypeError: startswith first arg must be str or a tuple of str, not NoneType

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/dropbox/pyannotate/issues/50, or mute the thread https://github.com/notifications/unsubscribe-auth/ACwrMih3sJRiyrKxgrvYuOXa_3nzkaX0ks5s9AmhgaJpZM4Q0ydT .

amal-khailtash commented 6 years ago

Unfortunately it is not. I might be able to share snippets, but not sure what to capture.

gvanrossum commented 6 years ago

Hm, it sounds like it's possible for a code object to have None for a filename. I'll think of a fix for that.