Skip to content

Commit e6417fb

Browse files
committed
Revert "noqa without type ignore"
This reverts commit bd8bdea.
1 parent bd8bdea commit e6417fb

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.pre-commit-config.yaml

+1
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ repos:
4040
- repo: https://github.com/pre-commit/pygrep-hooks
4141
rev: v1.3.0
4242
hooks:
43+
- id: python-check-blanket-noqa
4344
- id: python-check-mock-methods
4445
- id: python-no-log-warn
4546
- repo: https://github.com/PyCQA/bandit

src/cloudformation_cli_python_lib/recast.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -127,5 +127,5 @@ 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 # noqa
130+
return typing.ForwardRef # type: ignore
131131
return typing._ForwardRef # type: ignore

0 commit comments

Comments
 (0)