mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 20:54:28 +08:00
Enable flake8-pyi's Y037 (#9686)
This commit is contained in:
@@ -1,31 +1,31 @@
|
||||
import builtins
|
||||
import types
|
||||
from _typeshed import ReadableBuffer, SupportsRead, SupportsWrite
|
||||
from typing import Any, Union
|
||||
from typing import Any
|
||||
from typing_extensions import TypeAlias
|
||||
|
||||
version: int
|
||||
|
||||
_Marshallable: TypeAlias = Union[
|
||||
_Marshallable: TypeAlias = (
|
||||
# handled in w_object() in marshal.c
|
||||
None,
|
||||
type[StopIteration],
|
||||
builtins.ellipsis,
|
||||
bool,
|
||||
None
|
||||
| type[StopIteration]
|
||||
| builtins.ellipsis
|
||||
| bool
|
||||
# handled in w_complex_object() in marshal.c
|
||||
int,
|
||||
float,
|
||||
complex,
|
||||
bytes,
|
||||
str,
|
||||
tuple[_Marshallable, ...],
|
||||
list[Any],
|
||||
dict[Any, Any],
|
||||
set[Any],
|
||||
frozenset[_Marshallable],
|
||||
types.CodeType,
|
||||
ReadableBuffer,
|
||||
]
|
||||
| int
|
||||
| float
|
||||
| complex
|
||||
| bytes
|
||||
| str
|
||||
| tuple[_Marshallable, ...]
|
||||
| list[Any]
|
||||
| dict[Any, Any]
|
||||
| set[Any]
|
||||
| frozenset[_Marshallable]
|
||||
| types.CodeType
|
||||
| ReadableBuffer
|
||||
)
|
||||
|
||||
def dump(__value: _Marshallable, __file: SupportsWrite[bytes], __version: int = 4) -> None: ...
|
||||
def load(__file: SupportsRead[bytes]) -> Any: ...
|
||||
|
||||
Reference in New Issue
Block a user