Add __all__ to copyreg stubs (#7137)

This commit is contained in:
Alex Waygood
2022-02-05 15:28:15 +00:00
committed by GitHub
parent 004f12a1eb
commit 287c8c3d79
3 changed files with 3 additions and 3 deletions

View File

@@ -3,7 +3,7 @@ from typing import Any, Callable, Hashable, Optional, SupportsInt, TypeVar, Unio
_TypeT = TypeVar("_TypeT", bound=type)
_Reduce = Union[tuple[Callable[..., _TypeT], tuple[Any, ...]], tuple[Callable[..., _TypeT], tuple[Any, ...], Optional[Any]]]
__all__: list[str]
__all__ = ["pickle", "constructor", "add_extension", "remove_extension", "clear_extension_cache"]
def pickle(
ob_type: _TypeT,

View File

@@ -3,7 +3,7 @@ from typing import Any, Callable, Hashable, Optional, SupportsInt, TypeVar, Unio
_TypeT = TypeVar("_TypeT", bound=type)
_Reduce = Union[tuple[Callable[..., _TypeT], tuple[Any, ...]], tuple[Callable[..., _TypeT], tuple[Any, ...], Optional[Any]]]
__all__: list[str]
__all__ = ["pickle", "constructor", "add_extension", "remove_extension", "clear_extension_cache"]
def pickle(
ob_type: _TypeT,