File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -57,17 +57,14 @@ def convert_folder(top_level, stub_directory):
57
57
print (i .__dict__ ['name' ])
58
58
for j in i .body :
59
59
if isinstance (j , astroid .scoped_nodes .FunctionDef ):
60
- a = ''
61
60
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 " )
63
62
if j .returns :
64
63
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' ]} " )
66
65
elif isinstance (j , astroid .node_classes .AnnAssign ):
67
66
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' ]} " )
71
68
72
69
ok += 1
73
70
except astroid .exceptions .AstroidSyntaxError as e :
You can’t perform that action at this time.
0 commit comments