Third-party stubs: import from collections.abc where possible (#7637)

This commit is contained in:
Alex Waygood
2022-04-16 14:52:57 +01:00
committed by GitHub
parent ee09d9eb19
commit 653f2c6ba4
146 changed files with 268 additions and 156 deletions
+2 -1
View File
@@ -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)
+2 -1
View File
@@ -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
+2 -1
View File
@@ -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