File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 :
You can’t perform that action at this time.
0 commit comments