Skip to content

Commit a6d30b0

Browse files
committed
Updated pre-commit modules
1 parent 9aa873a commit a6d30b0

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.0.282
17+
rev: v0.0.284
1818
hooks:
1919
- id: ruff
2020
args: [--fix, --show-fixes]
@@ -26,7 +26,7 @@ repos:
2626
exclude: "^tests/mypy/negative.py"
2727

2828
- repo: https://github.com/pre-commit/mirrors-mypy
29-
rev: v1.4.1
29+
rev: v1.5.0
3030
hooks:
3131
- id: mypy
3232
additional_dependencies: [ "typing_extensions" ]

src/typeguard/_checkers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -777,7 +777,7 @@ def check_type_internal(
777777
if isclass(origin_type):
778778
if not isinstance(value, origin_type):
779779
raise TypeCheckError(f"is not an instance of {qualified_name(origin_type)}")
780-
elif type(origin_type) is str:
780+
elif type(origin_type) is str: # noqa: E721
781781
warnings.warn(
782782
f"Skipping type check against {origin_type!r}; this looks like a "
783783
f"string-form forward reference imported from another module",

0 commit comments

Comments
 (0)