Skip to content

Commit bd8bdea

Browse files
committed
noqa without type ignore
1 parent 035804f commit bd8bdea

File tree

2 files changed

+1
-2
lines changed

2 files changed

+1
-2
lines changed

.pre-commit-config.yaml

-1
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,6 @@ repos:
4040
- repo: https://github.com/pre-commit/pygrep-hooks
4141
rev: v1.3.0
4242
hooks:
43-
- id: python-check-blanket-noqa
4443
- id: python-check-mock-methods
4544
- id: python-no-log-warn
4645
- 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 # type: ignore
130+
return typing.ForwardRef # noqa
131131
return typing._ForwardRef # type: ignore

0 commit comments

Comments
 (0)