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

This commit is contained in:
Alex Waygood authored and GitHub committed 2022-04-16 14:52:57 +01:00
1 parent ee09d9eb19
commit 653f2c6ba4
146 files changed
+268 -156

No files matched your search

+1 -1
View File
@@ -1,4 +1,4 @@
from typing import Mapping
from collections.abc import Mapping
TAGS: Mapping[int, str]
GPSTAGS: Mapping[int, str]
+2 -2
View File
@@ -1,7 +1,7 @@
from _typeshed import Self, SupportsRead, SupportsWrite
from collections.abc import Iterable, Iterator, MutableMapping
from collections.abc import Callable, Iterable, Iterator, MutableMapping, Sequence
from pathlib import Path
from typing import Any, Callable, ClassVar, Protocol, Sequence, SupportsBytes, Union
from typing import Any, ClassVar, Protocol, SupportsBytes, Union
from typing_extensions import Literal, TypeAlias
from ._imaging import (
+2 -2
View File
@@ -1,5 +1,5 @@
from collections.abc import Container
from typing import Any, Sequence, overload
from collections.abc import Container, Sequence
from typing import Any, overload
from typing_extensions import Literal, TypeAlias
from .Image import Image
+2 -1
View File
@@ -1,5 +1,6 @@
from _typeshed import Self
from typing import Any, Callable, Iterable, Sequence
from collections.abc import Callable, Iterable, Sequence
from typing import Any
from typing_extensions import Literal, TypeAlias
from .Image import Image
+2 -1
View File
@@ -1,4 +1,5 @@
from typing import Any, Iterable, Protocol, Union
from collections.abc import Iterable
from typing import Any, Protocol, Union
from typing_extensions import TypeAlias
from .Image import Image, _Resample, _Size