Add __all__ for modules beginning with 'e', 'f' and 'g' (#7325)

This commit is contained in:
Alex Waygood
2022-02-20 23:08:14 +00:00
committed by GitHub
parent 3ead05f277
commit 2fe519c3a7
13 changed files with 192 additions and 1 deletions

View File

@@ -7,6 +7,37 @@ from collections.abc import Iterable, Iterator, Mapping
from typing import Any, TypeVar, Union, overload
from typing_extensions import Literal
if sys.version_info >= (3, 11):
__all__ = [
"EnumType",
"EnumMeta",
"Enum",
"IntEnum",
"StrEnum",
"Flag",
"IntFlag",
"ReprEnum",
"auto",
"unique",
"property",
"verify",
"FlagBoundary",
"STRICT",
"CONFORM",
"EJECT",
"KEEP",
"global_flag_repr",
"global_enum_repr",
"global_str",
"global_enum",
"EnumCheck",
"CONTINUOUS",
"NAMED_FLAGS",
"UNIQUE",
]
else:
__all__ = ["EnumMeta", "Enum", "IntEnum", "Flag", "IntFlag", "auto", "unique"]
_T = TypeVar("_T")
_S = TypeVar("_S", bound=type[Enum])