Import from collections.abc wherever possible (#7635)

This commit is contained in:
Alex Waygood
2022-04-18 11:50:37 +01:00
committed by GitHub
parent a17b3afb16
commit 97a74bc1aa
230 changed files with 449 additions and 348 deletions

View File

@@ -22,29 +22,31 @@ from _typeshed import (
SupportsTrunc,
SupportsWrite,
)
from collections.abc import Callable
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
from types import CodeType, TracebackType, _Cell
from typing import (
IO,
AbstractSet,
Any,
from collections.abc import (
Awaitable,
BinaryIO,
ByteString,
ClassVar,
Generic,
Callable,
Iterable,
Iterator,
Mapping,
MutableMapping,
MutableSequence,
MutableSet,
Reversible,
Set as AbstractSet,
Sized,
)
from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWrapper
from types import CodeType, TracebackType, _Cell
from typing import (
IO,
Any,
BinaryIO,
ByteString,
ClassVar,
Generic,
MutableSequence,
NoReturn,
Protocol,
Reversible,
Sequence,
Sized,
SupportsAbs,
SupportsBytes,
SupportsComplex,