Home Assistant Unofficial Reference
2024.12.1
event_type.py
Go to the documentation of this file.
1
"""Implementation for EventType.
2
3
Custom for type checking. See stub file.
4
"""
5
6
from
__future__
import
annotations
7
8
from
collections.abc
import
Mapping
9
from
typing
import
Any, Generic
10
11
from
typing_extensions
import
TypeVar
12
13
_DataT = TypeVar(
"_DataT"
, bound=Mapping[str, Any], default=Mapping[str, Any])
14
15
16
class
EventType
(
str
, Generic[_DataT]):
17
"""Custom type for Event.event_type.
18
19
At runtime this is a generic subclass of str.
20
"""
21
22
__slots__ = ()
homeassistant.util.event_type.EventType
Definition:
event_type.py:16
homeassistant.components.bond.const.str
str
Definition:
const.py:7
core
homeassistant
util
event_type.py
Generated by
1.9.1