Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b5b9a39
commit b112c20
Showing
3 changed files
with
29 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
from typing import TypeVar, Callable, Union, Tuple, Any, Optional, SupportsInt, Hashable, List | ||
|
||
|
||
_Type = TypeVar("_Type", bound=type) | ||
_Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]] | ||
|
||
__all__: List[str] | ||
|
||
def pickle(ob_type: _Type, pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]], constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...) -> None: ... | ||
def constructor(object: Callable[[_Reduce[_Type]], _Type]) -> 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: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,14 @@ | ||
|
||
from typing import TypeVar, Callable, Union, Tuple, Any, Optional, SupportsInt, Hashable, List | ||
|
||
|
||
_Type = TypeVar("_Type", bound=type) | ||
_Reduce = Union[Tuple[Callable[..., _Type], Tuple[Any, ...]], Tuple[Callable[..., _Type], Tuple[Any, ...], Optional[Any]]] | ||
|
||
__all__: List[str] | ||
|
||
def pickle(ob_type: _Type, pickle_function: Callable[[_Type], Union[str, _Reduce[_Type]]], constructor_ob: Optional[Callable[[_Reduce[_Type]], _Type]] = ...) -> None: ... | ||
def constructor(object: Callable[[_Reduce[_Type]], _Type]) -> 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: ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters