mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-07 12:44:28 +08:00
Simplify __all__ definitions in modules beginning with 'a' to 'l' (#8026)
This commit is contained in:
@@ -8,52 +8,25 @@ from typing_extensions import Literal, TypeAlias, final
|
||||
if sys.version_info >= (3, 9):
|
||||
from types import GenericAlias
|
||||
|
||||
__all__ = [
|
||||
"update_wrapper",
|
||||
"wraps",
|
||||
"WRAPPER_ASSIGNMENTS",
|
||||
"WRAPPER_UPDATES",
|
||||
"total_ordering",
|
||||
"cache",
|
||||
"cmp_to_key",
|
||||
"lru_cache",
|
||||
"reduce",
|
||||
"partial",
|
||||
"partialmethod",
|
||||
"singledispatch",
|
||||
"singledispatchmethod",
|
||||
"cached_property",
|
||||
]
|
||||
elif sys.version_info >= (3, 8):
|
||||
__all__ = [
|
||||
"update_wrapper",
|
||||
"wraps",
|
||||
"WRAPPER_ASSIGNMENTS",
|
||||
"WRAPPER_UPDATES",
|
||||
"total_ordering",
|
||||
"cmp_to_key",
|
||||
"lru_cache",
|
||||
"reduce",
|
||||
"partial",
|
||||
"partialmethod",
|
||||
"singledispatch",
|
||||
"singledispatchmethod",
|
||||
"cached_property",
|
||||
]
|
||||
else:
|
||||
__all__ = [
|
||||
"update_wrapper",
|
||||
"wraps",
|
||||
"WRAPPER_ASSIGNMENTS",
|
||||
"WRAPPER_UPDATES",
|
||||
"total_ordering",
|
||||
"cmp_to_key",
|
||||
"lru_cache",
|
||||
"reduce",
|
||||
"partial",
|
||||
"partialmethod",
|
||||
"singledispatch",
|
||||
]
|
||||
__all__ = [
|
||||
"update_wrapper",
|
||||
"wraps",
|
||||
"WRAPPER_ASSIGNMENTS",
|
||||
"WRAPPER_UPDATES",
|
||||
"total_ordering",
|
||||
"cmp_to_key",
|
||||
"lru_cache",
|
||||
"reduce",
|
||||
"partial",
|
||||
"partialmethod",
|
||||
"singledispatch",
|
||||
]
|
||||
|
||||
if sys.version_info >= (3, 8):
|
||||
__all__ += ["cached_property", "singledispatchmethod"]
|
||||
|
||||
if sys.version_info >= (3, 9):
|
||||
__all__ += ["cache"]
|
||||
|
||||
_AnyCallable: TypeAlias = Callable[..., Any]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user