From 1b4bfb23726be076f2e4250a71e8c0b48f012261 Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sun, 13 Mar 2022 07:31:44 +0000 Subject: [PATCH] `parsimonious`: `re.Match` does not exist in Python 3.6 It has to be imported from `typing` in <3.7. Refs https://github.com/python/typeshed/pull/7478. --- stubs/parsimonious/parsimonious/nodes.pyi | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/stubs/parsimonious/parsimonious/nodes.pyi b/stubs/parsimonious/parsimonious/nodes.pyi index 841b04c4ba21..31e6c00d0861 100644 --- a/stubs/parsimonious/parsimonious/nodes.pyi +++ b/stubs/parsimonious/parsimonious/nodes.pyi @@ -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