We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8d62c87 commit 23bbc2dCopy full SHA for 23bbc2d
src/cloudformation_cli_python_lib/recast.py
@@ -127,5 +127,8 @@ def get_forward_ref_type() -> Any:
127
# introspection is valid:
128
# https://docs.python.org/3/library/typing.html#typing.ForwardRef
129
if "ForwardRef" in dir(typing):
130
- return typing.ForwardRef # type: ignore
+ if sys.version_info > (3, 6):
131
+ return typing.ForwardRef
132
+ else:
133
+ return typing.ForwardRef # type: ignore
134
return typing._ForwardRef # type: ignore
0 commit comments