mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-09 13:34:58 +08:00
Use PEP 585 syntax wherever possible (#6717)
This commit is contained in:
@@ -1,11 +1,11 @@
|
||||
import sys
|
||||
from typing import Any, Callable, ClassVar, Iterable, Iterator, Mapping, Optional, Protocol, Tuple, Type, Union
|
||||
from typing import Any, Callable, ClassVar, Iterable, Iterator, Mapping, Optional, Protocol, Type, Union
|
||||
from typing_extensions import final
|
||||
|
||||
HIGHEST_PROTOCOL: int
|
||||
DEFAULT_PROTOCOL: int
|
||||
|
||||
bytes_types: Tuple[Type[Any], ...] # undocumented
|
||||
bytes_types: tuple[Type[Any], ...] # undocumented
|
||||
|
||||
class _ReadableFileobj(Protocol):
|
||||
def read(self, __n: int) -> bytes: ...
|
||||
@@ -58,10 +58,10 @@ class UnpicklingError(PickleError): ...
|
||||
|
||||
_reducedtype = Union[
|
||||
str,
|
||||
Tuple[Callable[..., Any], Tuple[Any, ...]],
|
||||
Tuple[Callable[..., Any], Tuple[Any, ...], Any],
|
||||
Tuple[Callable[..., Any], Tuple[Any, ...], Any, Optional[Iterator[Any]]],
|
||||
Tuple[Callable[..., Any], Tuple[Any, ...], Any, Optional[Iterator[Any]], Optional[Iterator[Any]]],
|
||||
tuple[Callable[..., Any], tuple[Any, ...]],
|
||||
tuple[Callable[..., Any], tuple[Any, ...], Any],
|
||||
tuple[Callable[..., Any], tuple[Any, ...], Any, Optional[Iterator[Any]]],
|
||||
tuple[Callable[..., Any], tuple[Any, ...], Any, Optional[Iterator[Any]], Optional[Iterator[Any]]],
|
||||
]
|
||||
|
||||
class Pickler:
|
||||
|
||||
Reference in New Issue
Block a user