Home Assistant Unofficial Reference 2024.12.1
homeassistant.backports.functools Namespace Reference

Variables

 __all__ = all_with_deprecated_constants(globals())
 
 __dir__
 
 __getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
 
 _DEPRECATED_cached_property
 

Detailed Description

Functools backports from standard lib.

This file contained the backport of the cached_property implementation of Python 3.12.

Since we have dropped support for Python 3.11, we can remove this backport.
This file is kept for now to avoid breaking custom components that might
import it.

Variable Documentation

◆ __all__

homeassistant.backports.functools.__all__ = all_with_deprecated_constants(globals())
private

Definition at line 31 of file functools.py.

◆ __dir__

homeassistant.backports.functools.__dir__
private
Initial value:
1 = partial(
2  dir_with_deprecated_constants, module_globals_keys=[*globals().keys()]
3 )

Definition at line 28 of file functools.py.

◆ __getattr__

homeassistant.backports.functools.__getattr__ = partial(check_if_deprecated_constant, module_globals=globals())
private

Definition at line 27 of file functools.py.

◆ _DEPRECATED_cached_property

homeassistant.backports.functools._DEPRECATED_cached_property
private
Initial value:
1 = DeprecatedAlias(
2  _cached_property, "functools.cached_property", "2025.5"
3 )

Definition at line 23 of file functools.py.