Skip to content

Commit 09bc3ba

Browse files
committed
Fixed versioning check
1 parent 60a21f2 commit 09bc3ba

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/asthelper.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ def _handle_functions(self, node):
9191
type_hint = None
9292
if arg.annotation is not None:
9393
# ast.unparse doesn't work for python <= 3.8
94-
if sys.version_info[0] == 3 and sys.version_info[1] == 8:
94+
if sys.version_info[0] == 3 and sys.version_info[1] <= 8:
9595
from unparse import Unparser
9696
from io import StringIO
9797
v = StringIO()

0 commit comments

Comments
 (0)