mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-10 05:51:52 +08:00
Import from collections.abc wherever possible (#7635)
This commit is contained in:
@@ -3,7 +3,7 @@ import sys
|
||||
import types
|
||||
from _typeshed import Self
|
||||
from collections import OrderedDict
|
||||
from collections.abc import Awaitable, Callable, Generator, Mapping, Sequence, Set as AbstractSet
|
||||
from collections.abc import Awaitable, Callable, Coroutine, Generator, Mapping, Sequence, Set as AbstractSet
|
||||
from types import (
|
||||
AsyncGeneratorType,
|
||||
BuiltinFunctionType,
|
||||
@@ -30,7 +30,7 @@ if sys.version_info >= (3, 7):
|
||||
MethodWrapperType,
|
||||
)
|
||||
|
||||
from typing import Any, ClassVar, Coroutine, NamedTuple, Protocol, TypeVar, Union
|
||||
from typing import Any, ClassVar, NamedTuple, Protocol, TypeVar, Union
|
||||
from typing_extensions import Literal, ParamSpec, TypeGuard
|
||||
|
||||
if sys.version_info >= (3, 11):
|
||||
|
||||
Reference in New Issue
Block a user