1
0
mirror of https://github.com/home-assistant/core.git synced 2025-12-24 12:59:34 +00:00

Update mypy-dev to 1.10.0a3 (#114289)

* Update mypy-dev to 1.10.0a3

* Allow TypedDict init from Type
This commit is contained in:
Marc Mueller
2024-03-27 12:32:29 +01:00
committed by GitHub
parent 34cf0c5721
commit 24168dfba7
2 changed files with 3 additions and 3 deletions

View File

@@ -194,7 +194,7 @@ def _map_error_to_schema_errors(
class FlowManager(abc.ABC, Generic[_FlowResultT, _HandlerT]):
"""Manage all the flows that are in progress."""
_flow_result: Callable[..., _FlowResultT] = FlowResult # type: ignore[assignment]
_flow_result: type[_FlowResultT] = FlowResult # type: ignore[assignment]
def __init__(
self,
@@ -615,7 +615,7 @@ class FlowManager(abc.ABC, Generic[_FlowResultT, _HandlerT]):
class FlowHandler(Generic[_FlowResultT, _HandlerT]):
"""Handle a data entry flow."""
_flow_result: Callable[..., _FlowResultT] = FlowResult # type: ignore[assignment]
_flow_result: type[_FlowResultT] = FlowResult # type: ignore[assignment]
# Set by flow manager
cur_step: _FlowResultT | None = None