Skip to content

Commit

Permalink
Merge pull request #955 from asottile/pre-commit-ci-update-config
Browse files Browse the repository at this point in the history
[pre-commit.ci] pre-commit autoupdate
  • Loading branch information
asottile authored Jul 28, 2024
2 parents a7a9e1b + 459acce commit bc45bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,6 @@ repos:
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.10.1
rev: v1.11.0
hooks:
- id: mypy
3 changes: 2 additions & 1 deletion pyupgrade/_data.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ class State(NamedTuple):
'typing_extensions',
))

FUNCS = collections.defaultdict(list)
FUNCS: ASTCallbackMapping # python/mypy#17566
FUNCS = collections.defaultdict(list) # type: ignore[assignment]


def register(tp: type[AST_T]) -> Callable[[ASTFunc[AST_T]], ASTFunc[AST_T]]:
Expand Down

0 comments on commit bc45bf1

Please sign in to comment.