More tweaks to extract_pyi.py

This commit is contained in:
dherrada 2020-07-02 11:30:42 -04:00
parent 627ecadb3f
commit 427733af04
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ def convert_folder(top_level, stub_directory):
elif isinstance(j, astroid.node_classes.AnnAssign):
if 'name' in j.__dict__['annotation'].__dict__:
if j.__dict__['annotation'].__dict__['name'] == 'Any':
print(f"missing attribute type on line {j.__dict__['lineno']}")
print(f"missing attribute type: {j.__dict__['target'].name} on line {j.__dict__['lineno']}")
ok += 1
except astroid.exceptions.AstroidSyntaxError as e: