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