mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-11-01 17:22:17 +08:00
Import from collections.abc wherever possible (#7635)
This commit is contained in:
1 parent
a17b3afb16
commit
97a74bc1aa
230 files changed
+449
-348
No files matched your search
@@ -6,9 +6,10 @@ import array
|
||||
import ctypes
|
||||
import mmap
|
||||
import sys
|
||||
from collections.abc import Awaitable, Container, Iterable, Set as AbstractSet
|
||||
from os import PathLike
|
||||
from types import TracebackType
|
||||
from typing import AbstractSet, Any, Awaitable, Container, Generic, Iterable, Protocol, TypeVar, Union
|
||||
from typing import Any, Generic, Protocol, TypeVar, Union
|
||||
from typing_extensions import Final, Literal, TypeAlias, final
|
||||
|
||||
_KT = TypeVar("_KT")
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
|
||||
import sys
|
||||
from _typeshed import OptExcInfo
|
||||
from typing import Any, Callable, Iterable, Protocol
|
||||
from collections.abc import Callable, Iterable
|
||||
from typing import Any, Protocol
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
class _Readable(Protocol):
|
||||
|
||||
Reference in new issue
Block a user