Skip to content

Commit

Permalink
Updated pre-commit modules
Browse files Browse the repository at this point in the history
  • Loading branch information
agronholm committed Aug 15, 2023
1 parent 9aa873a commit a6d30b0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ repos:
- id: trailing-whitespace

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.5.0
hooks:
- id: mypy
additional_dependencies: [ "typing_extensions" ]
Expand Down
2 changes: 1 addition & 1 deletion src/typeguard/_checkers.py
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ def check_type_internal(
if isclass(origin_type):
if not isinstance(value, origin_type):
raise TypeCheckError(f"is not an instance of {qualified_name(origin_type)}")
elif type(origin_type) is str:
elif type(origin_type) is str: # noqa: E721
warnings.warn(
f"Skipping type check against {origin_type!r}; this looks like a "
f"string-form forward reference imported from another module",
Expand Down

0 comments on commit a6d30b0

Please sign in to comment.