1
0
mirror of https://github.com/home-assistant/core.git synced 2026-07-08 07:15:09 +01:00
Files
core/homeassistant/util/hass_dict.py
T
2026-04-30 20:34:43 +02:00

26 lines
420 B
Python

"""Implementation for HassDict and custom HassKey types.
Custom for type checking. See stub file.
"""
class HassKey[_T](str):
"""Generic Hass key type.
At runtime this is a generic subclass of str.
"""
__slots__ = ()
class HassEntryKey[_T](str):
"""Key type for integrations with config entries.
At runtime this is a generic subclass of str.
"""
__slots__ = ()
HassDict = dict