mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-18 06:19:47 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
from _typeshed import Self
|
||||
from collections.abc import Coroutine, Generator, Iterator
|
||||
from types import CodeType, FrameType, TracebackType, coroutine
|
||||
from typing import Any, Coroutine, Generator, Generic, Iterator, TypeVar
|
||||
from typing import Any, Generic, TypeVar
|
||||
|
||||
_T = TypeVar("_T")
|
||||
_T_co = TypeVar("_T_co", covariant=True)
|
||||
|
||||
@@ -1,8 +1,9 @@
|
||||
import sys
|
||||
from _typeshed import StrOrBytesPath
|
||||
from asyncio.events import AbstractEventLoop
|
||||
from collections.abc import Sequence
|
||||
from os import stat_result
|
||||
from typing import Any, Sequence, overload
|
||||
from typing import Any, overload
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from . import ospath as path
|
||||
|
||||
@@ -7,7 +7,8 @@ from _typeshed import (
|
||||
StrOrBytesPath,
|
||||
)
|
||||
from asyncio import AbstractEventLoop
|
||||
from typing import Any, Callable, overload
|
||||
from collections.abc import Callable
|
||||
from typing import Any, overload
|
||||
from typing_extensions import Literal, TypeAlias
|
||||
|
||||
from ..base import AiofilesContextManager
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import ReadableBuffer, StrOrBytesPath, WriteableBuffer
|
||||
from collections.abc import Iterable
|
||||
from io import FileIO
|
||||
from typing import Iterable
|
||||
|
||||
from ..base import AsyncBase
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import StrOrBytesPath
|
||||
from typing import BinaryIO, Iterable
|
||||
from collections.abc import Iterable
|
||||
from typing import BinaryIO
|
||||
|
||||
from ..base import AsyncBase
|
||||
|
||||
|
||||
Reference in New Issue
Block a user