Skip to content

Commit f9f381b

Browse files
committed
down version to 8 in annotations
1 parent ab77c2a commit f9f381b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

py_module_parser/parser.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def process_annotation(
5555
if isinstance(ann, ast.Name):
5656
_type = ann.id
5757
elif isinstance(ann, _ast.Subscript):
58-
if sys.version_info.minor <= 9:
58+
if sys.version_info.minor <= 8:
5959
_slice = ann.slice.value
6060
else:
6161
_slice = ann.slice.elts
@@ -64,7 +64,7 @@ def process_annotation(
6464
elif isinstance(_slice, ast.Attribute):
6565
_type_value = [self.process_full_attr_node_name(_slice, None)]
6666
else:
67-
if sys.version_info.minor <= 9:
67+
if sys.version_info.minor <= 8:
6868
slice_list = _slice.elts
6969
else:
7070
slice_list = _slice

0 commit comments

Comments
 (0)