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 acf88d7 commit cf524cbCopy full SHA for cf524cb
tools/extract_pyi.py
@@ -64,18 +64,16 @@
64
if j.returns:
65
if 'Any' in j.returns.__dict__.values():
66
a += f"Missing return type: {j.__dict__['name']} on line {j.__dict__['lineno']}"
67
- if a:
68
- raise TypeError(a)
69
elif isinstance(j, astroid.node_classes.AnnAssign):
70
if 'Any' == j.__dict__['annotation'].__dict__['name']:
71
- raise TypeError(f"missing attribute type on line {j.__dict__['lineno']}")
+ a = f"missing attribute type on line {j.__dict__['lineno']}"
+ if a:
+ print(a)
72
73
ok += 1
74
except astroid.exceptions.AstroidSyntaxError as e:
75
e = e.__cause__
76
traceback.print_exception(type(e), e, e.__traceback__)
77
- except TypeError as err:
78
- print(err)
79
80
print(f"{ok} ok out of {total}")
81
0 commit comments