Skip to content

Commit df2a842

Browse files
committed
enhance mistune types for mypy 1.7.0
1 parent 0bffcf7 commit df2a842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

mypy-stubs/mistune/scanner.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ from typing import (
1616
from mistune._types import State
1717
from typing_extensions import TypeAlias
1818

19-
MethodFunc: TypeAlias = Callable[["ScannerParser", Match, State], Any]
19+
MethodFunc: TypeAlias = Callable[["ScannerParser", Match[str], State], Any]
2020
RuleMethod = Tuple[Pattern[str], MethodFunc]
2121
Lexicon = List[Tuple[Pattern[str], Tuple[str, RuleMethod]]]
2222
TextParser = Callable[[str, State], str]

0 commit comments

Comments
 (0)