From 6a2f7a634795838c9302859673a22b527a2cf11c Mon Sep 17 00:00:00 2001 From: Marc Mueller <30130371+cdce8p@users.noreply.github.com> Date: Sat, 9 Mar 2024 07:37:59 +0100 Subject: [PATCH] Use Mapping as default for Event data (#112769) --- homeassistant/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/homeassistant/core.py b/homeassistant/core.py index 21a7de4311d..b906f458bf3 100644 --- a/homeassistant/core.py +++ b/homeassistant/core.py @@ -125,7 +125,7 @@ _P = ParamSpec("_P") # Internal; not helpers.typing.UNDEFINED due to circular dependency _UNDEF: dict[Any, Any] = {} _CallableT = TypeVar("_CallableT", bound=Callable[..., Any]) -_DataT = TypeVar("_DataT", bound=Mapping[str, Any], default=dict[str, Any]) +_DataT = TypeVar("_DataT", bound=Mapping[str, Any], default=Mapping[str, Any]) CALLBACK_TYPE = Callable[[], None] CORE_STORAGE_KEY = "core.config"