We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4e3dbdb commit a33aa2dCopy full SHA for a33aa2d
add_trailing_comma/_data.py
@@ -23,7 +23,8 @@ class State(NamedTuple):
23
TokenFunc = Callable[[int, list[Token]], None]
24
ASTFunc = Callable[[State, AST_T], Iterable[tuple[Offset, TokenFunc]]]
25
26
-FUNCS = collections.defaultdict(list)
+FUNCS: ASTCallbackMapping # python/mypy#17566
27
+FUNCS = collections.defaultdict(list) # type: ignore[assignment]
28
29
30
def register(tp: type[AST_T]) -> Callable[[ASTFunc[AST_T]], ASTFunc[AST_T]]:
0 commit comments