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 ab77c2a commit f9f381bCopy full SHA for f9f381b
py_module_parser/parser.py
@@ -55,7 +55,7 @@ def process_annotation(
55
if isinstance(ann, ast.Name):
56
_type = ann.id
57
elif isinstance(ann, _ast.Subscript):
58
- if sys.version_info.minor <= 9:
+ if sys.version_info.minor <= 8:
59
_slice = ann.slice.value
60
else:
61
_slice = ann.slice.elts
@@ -64,7 +64,7 @@ def process_annotation(
64
elif isinstance(_slice, ast.Attribute):
65
_type_value = [self.process_full_attr_node_name(_slice, None)]
66
67
68
slice_list = _slice.elts
69
70
slice_list = _slice
0 commit comments