Skip to content

Commit a33aa2d

Browse files
committed
hack around python/mypy#17566
1 parent 4e3dbdb commit a33aa2d

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

add_trailing_comma/_data.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ class State(NamedTuple):
2323
TokenFunc = Callable[[int, list[Token]], None]
2424
ASTFunc = Callable[[State, AST_T], Iterable[tuple[Offset, TokenFunc]]]
2525

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

2829

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

0 commit comments

Comments
 (0)