parsimonious: re.Match does not exist in Python 3.6 (#7482)

It has to be imported from `typing` in <3.7.
Refs https://github.com/python/typeshed/pull/7478.
This commit is contained in:
Alex Waygood authored and GitHub committed 2022-03-13 00:23:31 -08:00
1 parent bd449c983a
commit d3df6da103
1 file changed
+1 -2
+1 -2
View File
@@ -1,5 +1,4 @@
from re import Match
from typing import Any, Callable, Iterator, NoReturn, Sequence, TypeVar
from typing import Any, Callable, Iterator, Match, NoReturn, Sequence, TypeVar
from parsimonious.exceptions import VisitationError as VisitationError
from parsimonious.expressions import Expression