1 """Enum backports from standard lib.
3 This file contained the backport of the StrEnum of Python 3.11.
5 Since we have dropped support for Python 3.10, we can remove this backport.
6 This file is kept for now to avoid breaking custom components that might
10 from __future__
import annotations
12 from enum
import StrEnum
as _StrEnum
13 from functools
import partial
17 all_with_deprecated_constants,
18 check_if_deprecated_constant,
19 dir_with_deprecated_constants,
25 __getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
27 dir_with_deprecated_constants, module_globals_keys=[*globals().keys()]
list[str] all_with_deprecated_constants(dict[str, Any] module_globals)