mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-25 17:58:40 +08:00
Third-party stubs: import from collections.abc where possible (#7637)
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
from typing import Any, Iterable
|
||||
from collections.abc import Iterable
|
||||
from typing import Any
|
||||
|
||||
class FormatChecker:
|
||||
checkers: Any
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, ItemsView
|
||||
from collections.abc import ItemsView
|
||||
from typing import Any
|
||||
|
||||
def ignore_ref_siblings(schema) -> list[tuple[str, Any]] | ItemsView[str, Any]: ...
|
||||
def dependencies_draft3(validator, dependencies, instance, schema) -> None: ...
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
from typing import Callable, Iterable, Mapping
|
||||
from collections.abc import Callable, Iterable, Mapping
|
||||
|
||||
def is_array(checker, instance) -> bool: ...
|
||||
def is_bool(checker, instance) -> bool: ...
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
from _typeshed import SupportsKeysAndGetItem
|
||||
from typing import Any, Generator, Iterable, Iterator, Mapping, MutableMapping, Sized
|
||||
from collections.abc import Generator, Iterable, Iterator, Mapping, MutableMapping, Sized
|
||||
from typing import Any
|
||||
|
||||
class URIDict(MutableMapping[str, str]):
|
||||
def normalize(self, uri: str) -> str: ...
|
||||
|
||||
@@ -1,4 +1,5 @@
|
||||
from typing import Any, ClassVar, Iterator, Protocol
|
||||
from collections.abc import Iterator
|
||||
from typing import Any, ClassVar, Protocol
|
||||
|
||||
from jsonschema._format import FormatChecker
|
||||
from jsonschema._types import TypeChecker
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
from _typeshed import SupportsKeysAndGetItem
|
||||
from collections.abc import Callable, Generator, Iterable
|
||||
from typing import Any, ClassVar, Mapping
|
||||
from collections.abc import Callable, Generator, Iterable, Mapping
|
||||
from typing import Any, ClassVar
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
from ._utils import URIDict
|
||||
|
||||
Reference in New Issue
Block a user