Skip to content

Commit 58b07ec

Browse files
author
dherrada
committed
Removed a
1 parent 0fa5f6a commit 58b07ec

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

tools/extract_pyi.py

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -57,17 +57,14 @@ def convert_folder(top_level, stub_directory):
5757
print(i.__dict__['name'])
5858
for j in i.body:
5959
if isinstance(j, astroid.scoped_nodes.FunctionDef):
60-
a = ''
6160
if None in j.args.__dict__['annotations']:
62-
a += f"Missing parameter type: {j.__dict__['name']} on line {j.__dict__['lineno']}\n"
61+
print(f"Missing parameter type: {j.__dict__['name']} on line {j.__dict__['lineno']}\n")
6362
if j.returns:
6463
if 'Any' in j.returns.__dict__.values():
65-
a += f"Missing return type: {j.__dict__['name']} on line {j.__dict__['lineno']}"
64+
print(f"Missing return type: {j.__dict__['name']} on line {j.__dict__['lineno']}")
6665
elif isinstance(j, astroid.node_classes.AnnAssign):
6766
if 'Any' == j.__dict__['annotation'].__dict__['name']:
68-
a = f"missing attribute type on line {j.__dict__['lineno']}"
69-
if a:
70-
print(a)
67+
print(f"missing attribute type on line {j.__dict__['lineno']}")
7168

7269
ok += 1
7370
except astroid.exceptions.AstroidSyntaxError as e:

0 commit comments

Comments
 (0)