Skip to content

Commit e60fc6f

Browse files
committed
1 parent d3912b0 commit e60fc6f

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ repos:
5656
args:
5757
- --strict
5858
- --implicit-reexport
59+
- --no-warn-unused-ignores
5960
- repo: local
6061
hooks:
6162
- id: pylint-local

src/cloudformation_cli_python_lib/recast.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
import sys
21
import typing
32
from typing import Any, Dict, List, Mapping, Set
43

@@ -128,8 +127,5 @@ def get_forward_ref_type() -> Any:
128127
# introspection is valid:
129128
# https://docs.python.org/3/library/typing.html#typing.ForwardRef
130129
if "ForwardRef" in dir(typing):
131-
if sys.version_info > (3, 6):
132-
return typing.ForwardRef
133-
else:
134-
return typing.ForwardRef # type: ignore
130+
return typing.ForwardRef # type: ignore
135131
return typing._ForwardRef # type: ignore

0 commit comments

Comments
 (0)