mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-03-01 12:56:51 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
import typing
|
||||
from typing import Any, Callable, Mapping, Pattern, Union
|
||||
from collections.abc import Callable, Mapping
|
||||
from typing import Any, Pattern, Union
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from parsimonious.exceptions import ParseError
|
||||
|
||||
@@ -1,6 +1,7 @@
|
||||
import typing
|
||||
from collections import OrderedDict
|
||||
from typing import Any, Callable, Mapping, NoReturn
|
||||
from collections.abc import Callable, Mapping
|
||||
from typing import Any, NoReturn
|
||||
|
||||
from parsimonious.expressions import _CALLABLE_TYPE, Expression, Literal, Lookahead, Not, OneOf, Regex, Sequence, TokenMatcher
|
||||
from parsimonious.nodes import Node, NodeVisitor
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Callable, Iterator, Match, NoReturn, Sequence, TypeVar
|
||||
from collections.abc import Callable, Iterator, Sequence
|
||||
from typing import Any, Match, NoReturn, TypeVar
|
||||
|
||||
from parsimonious.exceptions import VisitationError as VisitationError
|
||||
from parsimonious.expressions import Expression
|
||||
|
||||
Reference in New Issue
Block a user