mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-16 21:45:04 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
from typing import Mapping
|
||||
from collections.abc import Mapping
|
||||
|
||||
TAGS: Mapping[int, str]
|
||||
GPSTAGS: Mapping[int, str]
|
||||
|
||||
@@ -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 (
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user