We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9613cdd commit 49cd9acCopy full SHA for 49cd9ac
tools/extract_types.py
@@ -60,14 +60,17 @@
60
if isinstance(j, astroid.scoped_nodes.FunctionDef):
61
if None in j.args.__dict__['annotations']:
62
missing_parameter_type += 1
63
+ print(f"Parameter: {j.__dict__['name']} on line {j.__dict__['lineno']}")
64
total_1 += 1
65
if j.returns:
66
if 'Any' in j.returns.__dict__.values():
- missing_return_type += 1
67
+ print(f"Return: {j.__dict__['name']} on line {j.__dict__['lineno']}")
68
+ missing_return_type += 1
69
total_2 += 1
70
elif isinstance(j, astroid.node_classes.AnnAssign):
71
if 'Any' == j.__dict__['annotation'].__dict__['name']:
72
missing_attribute_type += 1
73
+ print(f"attribute on line {j.__dict__['lineno']}")
74
total_3 += 1
75
76
0 commit comments