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
@@ -1,5 +1,5 @@
from collections.abc import MutableMapping
from typing import Any, Callable, Iterable, Iterator, Sequence, Text, TypeVar, overload
from collections.abc import Callable, Iterable, Iterator, MutableMapping, Sequence
from typing import Any, Text, TypeVar, overload
from typing_extensions import SupportsIndex
from google.protobuf.descriptor import Descriptor
@@ -1,4 +1,5 @@
from typing import Any, Callable
from collections.abc import Callable
from typing import Any
from typing_extensions import TypeAlias
from google.protobuf.descriptor import Descriptor, FieldDescriptor
@@ -1,4 +1,4 @@
from typing import Callable
from collections.abc import Callable
from typing_extensions import TypeAlias
from google.protobuf.descriptor import FieldDescriptor
@@ -1,4 +1,5 @@
from typing import Any, Generic, Iterator, Text, TypeVar
from collections.abc import Iterator
from typing import Any, Generic, Text, TypeVar
from google.protobuf.descriptor import FieldDescriptor
from google.protobuf.internal.containers import RepeatedCompositeFieldContainer, RepeatedScalarFieldContainer
+2 -1
View File
@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import Any, Sequence, TypeVar
from collections.abc import Sequence
from typing import Any, TypeVar
from .descriptor import Descriptor, FieldDescriptor
from .internal.extension_dict import _ExtensionDict, _ExtensionFieldDescriptor
@@ -1,4 +1,5 @@
from typing import Any, Iterable
from collections.abc import Iterable
from typing import Any
from google.protobuf.descriptor import Descriptor
from google.protobuf.descriptor_pb2 import FileDescriptorProto
+2 -1
View File
@@ -1,5 +1,6 @@
from collections.abc import Callable
from concurrent.futures import Future
from typing import Callable, Text
from typing import Text
from google.protobuf.descriptor import MethodDescriptor, ServiceDescriptor
from google.protobuf.message import Message
@@ -1,4 +1,4 @@
from typing import Iterable
from collections.abc import Iterable
from google.protobuf.descriptor import Descriptor, EnumDescriptor, FileDescriptor, ServiceDescriptor
from google.protobuf.message import Message
@@ -1,5 +1,6 @@
from _typeshed import SupportsWrite
from typing import Any, Callable, Iterable, Text, TypeVar
from collections.abc import Callable, Iterable
from typing import Any, Text, TypeVar
from typing_extensions import TypeAlias
from .descriptor import FieldDescriptor