Skip to content

Commit 23bbc2d

Browse files
committed
1 parent 8d62c87 commit 23bbc2d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/cloudformation_cli_python_lib/recast.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,8 @@ def get_forward_ref_type() -> Any:
127127
# introspection is valid:
128128
# https://docs.python.org/3/library/typing.html#typing.ForwardRef
129129
if "ForwardRef" in dir(typing):
130-
return typing.ForwardRef # type: ignore
130+
if sys.version_info > (3, 6):
131+
return typing.ForwardRef
132+
else:
133+
return typing.ForwardRef # type: ignore
131134
return typing._ForwardRef # type: ignore

0 commit comments

Comments
 (0)