mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-31 07:05:24 +08:00
Bump various test dependencies (#9549)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import sys
|
||||
from types import MappingProxyType
|
||||
from typing import ( # noqa: Y027,Y038
|
||||
from typing import ( # noqa: Y022,Y038
|
||||
AbstractSet as Set,
|
||||
AsyncGenerator as AsyncGenerator,
|
||||
AsyncIterable as AsyncIterable,
|
||||
|
||||
@@ -3,7 +3,7 @@ from _typeshed import ReadableBuffer, Self, SupportsRead, SupportsWrite
|
||||
from collections.abc import Iterable
|
||||
|
||||
# pytype crashes if array inherits from collections.abc.MutableSequence instead of typing.MutableSequence
|
||||
from typing import Any, Generic, MutableSequence, TypeVar, overload # noqa: Y027
|
||||
from typing import Any, Generic, MutableSequence, TypeVar, overload # noqa: Y022
|
||||
from typing_extensions import Literal, SupportsIndex, TypeAlias
|
||||
|
||||
_IntTypeCode: TypeAlias = Literal["b", "B", "h", "H", "i", "I", "l", "L", "q", "Q"]
|
||||
|
||||
@@ -32,7 +32,7 @@ from io import BufferedRandom, BufferedReader, BufferedWriter, FileIO, TextIOWra
|
||||
from types import CodeType, TracebackType, _Cell
|
||||
|
||||
# mypy crashes if any of {ByteString, Sequence, MutableSequence, Mapping, MutableMapping} are imported from collections.abc in builtins.pyi
|
||||
from typing import ( # noqa: Y027
|
||||
from typing import ( # noqa: Y022
|
||||
IO,
|
||||
Any,
|
||||
BinaryIO,
|
||||
|
||||
@@ -16,7 +16,7 @@ from collections.abc import (
|
||||
from importlib.machinery import ModuleSpec
|
||||
|
||||
# pytype crashes if types.MappingProxyType inherits from collections.abc.Mapping instead of typing.Mapping
|
||||
from typing import Any, ClassVar, Generic, Mapping, Protocol, TypeVar, overload # noqa: Y027
|
||||
from typing import Any, ClassVar, Generic, Mapping, Protocol, TypeVar, overload # noqa: Y022
|
||||
from typing_extensions import Literal, ParamSpec, final
|
||||
|
||||
__all__ = [
|
||||
|
||||
@@ -6,7 +6,7 @@ import typing
|
||||
from _collections_abc import dict_items, dict_keys, dict_values
|
||||
from _typeshed import IdentityFunction, Incomplete
|
||||
from collections.abc import Iterable
|
||||
from typing import ( # noqa: Y022,Y027,Y039
|
||||
from typing import ( # noqa: Y022,Y039
|
||||
TYPE_CHECKING as TYPE_CHECKING,
|
||||
Any as Any,
|
||||
AsyncContextManager as AsyncContextManager,
|
||||
|
||||
Reference in New Issue
Block a user