diff options
| author | dherrada <dylan.herrada@adafruit.com> | 2020-07-02 12:01:28 -0400 |
|---|---|---|
| committer | dherrada <dylan.herrada@adafruit.com> | 2020-07-02 12:02:21 -0400 |
| commit | e169da3532f646e2498f2b326a52aeff896ae170 (patch) | |
| tree | ae19c817759ce244cc887322e9a02ff75c14791e /tools | |
| parent | e114b31a7ab8a75dac542bdab0d4d1fb64246a06 (diff) | |
More extract_pyi tweaks
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/extract_pyi.py | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/tools/extract_pyi.py b/tools/extract_pyi.py index 1781cbd10..f504e634e 100644 --- a/tools/extract_pyi.py +++ b/tools/extract_pyi.py @@ -59,6 +59,7 @@ def convert_folder(top_level, stub_directory): tree = astroid.parse(stub_contents) for i in tree.body: if 'name' in i.__dict__: + print() print(i.__dict__['name']) for j in i.body: if isinstance(j, astroid.scoped_nodes.FunctionDef): @@ -66,10 +67,10 @@ def convert_folder(top_level, stub_directory): # K is type, l is name if l.name != 'self': if not k: - print(f"Missing parameter type: {j.__dict__['name']} on line {j.__dict__['lineno']}\n") + print(f"Missing parameter type: {j.__dict__['name']} on line {j.__dict__['lineno']}") elif str(type(k)) == "<class 'astroid.node_classes.Name'>": if k.name == 'Any': - print(f"'Any' parameter type: {j.__dict__['name']} on line {j.__dict__['lineno']}\n") + print(f"'Any' parameter type: {j.__dict__['name']} on line {j.__dict__['lineno']}") if j.returns: if 'Any' in j.returns.__dict__.values(): print(f"Missing return type: {j.__dict__['name']} on line {j.__dict__['lineno']}") |
