Skip to content

Commit 427733a

Browse files
committed
More tweaks to extract_pyi.py
1 parent 627ecad commit 427733a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tools/extract_pyi.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ def convert_folder(top_level, stub_directory):
7676
elif isinstance(j, astroid.node_classes.AnnAssign):
7777
if 'name' in j.__dict__['annotation'].__dict__:
7878
if j.__dict__['annotation'].__dict__['name'] == 'Any':
79-
print(f"missing attribute type on line {j.__dict__['lineno']}")
79+
print(f"missing attribute type: {j.__dict__['target'].name} on line {j.__dict__['lineno']}")
8080

8181
ok += 1
8282
except astroid.exceptions.AstroidSyntaxError as e:

0 commit comments

Comments
 (0)