From 287c8c3d79f5481c8b45b229b696bd657087478a Mon Sep 17 00:00:00 2001 From: Alex Waygood Date: Sat, 5 Feb 2022 15:28:15 +0000 Subject: [PATCH] Add `__all__` to `copyreg` stubs (#7137) --- stdlib/@python2/copy_reg.pyi | 2 +- stdlib/@python2/copyreg.pyi | 2 +- stdlib/copyreg.pyi | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/stdlib/@python2/copy_reg.pyi b/stdlib/@python2/copy_reg.pyi index f6fe5cd28..5aec88298 100644 --- a/stdlib/@python2/copy_reg.pyi +++ b/stdlib/@python2/copy_reg.pyi @@ -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, diff --git a/stdlib/@python2/copyreg.pyi b/stdlib/@python2/copyreg.pyi index f6fe5cd28..5aec88298 100644 --- a/stdlib/@python2/copyreg.pyi +++ b/stdlib/@python2/copyreg.pyi @@ -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, diff --git a/stdlib/copyreg.pyi b/stdlib/copyreg.pyi index 609767083..401144a95 100644 --- a/stdlib/copyreg.pyi +++ b/stdlib/copyreg.pyi @@ -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,