Now outputs class name

This commit is contained in:
dherrada 2020-05-15 13:33:20 -04:00
parent 49cd9ac36e
commit 416da442c0
No known key found for this signature in database
GPG Key ID: CE2ADBAB8775CE81

View File

@ -56,6 +56,7 @@ for module in modules:
try:
tree = astroid.parse(stub_contents)
for i in tree.body:
print(i.__dict__['name'])
for j in i.body:
if isinstance(j, astroid.scoped_nodes.FunctionDef):
if None in j.args.__dict__['annotations']:
@ -72,6 +73,7 @@ for module in modules:
missing_attribute_type += 1
print(f"attribute on line {j.__dict__['lineno']}")
total_3 += 1
print('\n')
ok += 1