Skip to content

Commit d3df6da

Browse files
authored
parsimonious: re.Match does not exist in Python 3.6 (#7482)
It has to be imported from `typing` in <3.7. Refs #7478.
1 parent bd449c9 commit d3df6da

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

stubs/parsimonious/parsimonious/nodes.pyi

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
1-
from re import Match
2-
from typing import Any, Callable, Iterator, NoReturn, Sequence, TypeVar
1+
from typing import Any, Callable, Iterator, Match, NoReturn, Sequence, TypeVar
32

43
from parsimonious.exceptions import VisitationError as VisitationError
54
from parsimonious.expressions import Expression

0 commit comments

Comments
 (0)