Skip to content

Commit

Permalink
disabling --warn-unused-ignores
Browse files Browse the repository at this point in the history
  • Loading branch information
PatMyron committed Dec 15, 2020
1 parent 474895e commit 130d988
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ repos:
args:
- --strict
- --implicit-reexport
- --no-warn-unused-ignores
- repo: local
hooks:
- id: pylint-local
Expand Down
6 changes: 1 addition & 5 deletions src/cloudformation_cli_python_lib/recast.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
import sys
import typing
from typing import Any, Dict, List, Mapping, Set

Expand Down Expand Up @@ -128,8 +127,5 @@ def get_forward_ref_type() -> Any:
# introspection is valid:
# https://docs.python.org/3/library/typing.html#typing.ForwardRef
if "ForwardRef" in dir(typing):
if sys.version_info > (3, 6):
return typing.ForwardRef
else:
return typing.ForwardRef # type: ignore
return typing.ForwardRef # type: ignore
return typing._ForwardRef # type: ignore

0 comments on commit 130d988

Please sign in to comment.