Skip to content

Commit

Permalink
hack around python/mypy#17566
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Jul 28, 2024
1 parent d2bf447 commit 459acce
Showing 1 changed file with 2 additions and 1 deletion.
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 459acce

Please sign in to comment.