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

@@ -1,5 +1,5 @@
import sys
from typing import Callable
from collections.abc import Callable
from xml.etree.ElementTree import Element
XINCLUDE: str

View File

@@ -1,4 +1,5 @@
from typing import Callable, Generator, Pattern, TypeVar
from collections.abc import Callable, Generator
from typing import Pattern, TypeVar
from typing_extensions import TypeAlias
from xml.etree.ElementTree import Element

View File

@@ -1,19 +1,7 @@
import sys
from _typeshed import FileDescriptor, StrOrBytesPath, SupportsRead, SupportsWrite
from typing import (
Any,
Callable,
Generator,
ItemsView,
Iterable,
Iterator,
KeysView,
Mapping,
MutableSequence,
Sequence,
TypeVar,
overload,
)
from collections.abc import Callable, Generator, ItemsView, Iterable, Iterator, KeysView, Mapping, MutableSequence, Sequence
from typing import Any, TypeVar, overload
from typing_extensions import Literal, SupportsIndex, TypeAlias, TypeGuard
if sys.version_info >= (3, 9):