mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Re-organize directory structure (#4971)
See discussion in #2491 Co-authored-by: Ivan Levkivskyi <ilevkivskyi@dropbox.com>
This commit is contained in:
16
stdlib/copyreg.pyi
Normal file
16
stdlib/copyreg.pyi
Normal file
@@ -0,0 +1,16 @@
|
||||
from typing import Any, Callable, Hashable, List, Optional, SupportsInt, Tuple, TypeVar, Union
|
||||
|
||||
_TypeT = TypeVar("_TypeT", bound=type)
|
||||
_Reduce = Union[Tuple[Callable[..., _TypeT], Tuple[Any, ...]], Tuple[Callable[..., _TypeT], Tuple[Any, ...], Optional[Any]]]
|
||||
|
||||
__all__: List[str]
|
||||
|
||||
def pickle(
|
||||
ob_type: _TypeT,
|
||||
pickle_function: Callable[[_TypeT], Union[str, _Reduce[_TypeT]]],
|
||||
constructor_ob: Optional[Callable[[_Reduce[_TypeT]], _TypeT]] = ...,
|
||||
) -> None: ...
|
||||
def constructor(object: Callable[[_Reduce[_TypeT]], _TypeT]) -> None: ...
|
||||
def add_extension(module: Hashable, name: Hashable, code: SupportsInt) -> None: ...
|
||||
def remove_extension(module: Hashable, name: Hashable, code: int) -> None: ...
|
||||
def clear_extension_cache() -> None: ...
|
||||
Reference in New Issue
Block a user