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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user