mirror of
https://github.com/home-assistant/core.git
synced 2025-07-17 02:07:09 +00:00
Update typing extensions to 4.11.0 (#114985)
This commit is contained in:
parent
856567d674
commit
81d682874f
@ -183,7 +183,7 @@ class BaseZwaveJSFlow(ConfigEntryBaseFlow, ABC):
|
|||||||
|
|
||||||
@property
|
@property
|
||||||
@abstractmethod
|
@abstractmethod
|
||||||
def flow_manager(self) -> FlowManager[ConfigFlowResult, str]:
|
def flow_manager(self) -> FlowManager[ConfigFlowResult]:
|
||||||
"""Return the flow manager of the flow."""
|
"""Return the flow manager of the flow."""
|
||||||
|
|
||||||
async def async_step_install_addon(
|
async def async_step_install_addon(
|
||||||
|
@ -1111,7 +1111,7 @@ class FlowCancelledError(Exception):
|
|||||||
"""Error to indicate that a flow has been cancelled."""
|
"""Error to indicate that a flow has been cancelled."""
|
||||||
|
|
||||||
|
|
||||||
class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str]):
|
class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult]):
|
||||||
"""Manage all the config entry flows that are in progress."""
|
"""Manage all the config entry flows that are in progress."""
|
||||||
|
|
||||||
_flow_result = ConfigFlowResult
|
_flow_result = ConfigFlowResult
|
||||||
@ -1237,7 +1237,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str
|
|||||||
|
|
||||||
async def async_finish_flow(
|
async def async_finish_flow(
|
||||||
self,
|
self,
|
||||||
flow: data_entry_flow.FlowHandler[ConfigFlowResult, str],
|
flow: data_entry_flow.FlowHandler[ConfigFlowResult],
|
||||||
result: ConfigFlowResult,
|
result: ConfigFlowResult,
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Finish a config flow and add an entry."""
|
"""Finish a config flow and add an entry."""
|
||||||
@ -1359,7 +1359,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str
|
|||||||
|
|
||||||
async def async_post_init(
|
async def async_post_init(
|
||||||
self,
|
self,
|
||||||
flow: data_entry_flow.FlowHandler[ConfigFlowResult, str],
|
flow: data_entry_flow.FlowHandler[ConfigFlowResult],
|
||||||
result: ConfigFlowResult,
|
result: ConfigFlowResult,
|
||||||
) -> None:
|
) -> None:
|
||||||
"""After a flow is initialised trigger new flow notifications."""
|
"""After a flow is initialised trigger new flow notifications."""
|
||||||
@ -2027,7 +2027,7 @@ def _async_abort_entries_match(
|
|||||||
raise data_entry_flow.AbortFlow("already_configured")
|
raise data_entry_flow.AbortFlow("already_configured")
|
||||||
|
|
||||||
|
|
||||||
class ConfigEntryBaseFlow(data_entry_flow.FlowHandler[ConfigFlowResult, str]):
|
class ConfigEntryBaseFlow(data_entry_flow.FlowHandler[ConfigFlowResult]):
|
||||||
"""Base class for config and option flows."""
|
"""Base class for config and option flows."""
|
||||||
|
|
||||||
_flow_result = ConfigFlowResult
|
_flow_result = ConfigFlowResult
|
||||||
@ -2379,7 +2379,7 @@ class ConfigFlow(ConfigEntryBaseFlow):
|
|||||||
return self.async_abort(reason=reason)
|
return self.async_abort(reason=reason)
|
||||||
|
|
||||||
|
|
||||||
class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str]):
|
class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult]):
|
||||||
"""Flow to set options for a configuration entry."""
|
"""Flow to set options for a configuration entry."""
|
||||||
|
|
||||||
_flow_result = ConfigFlowResult
|
_flow_result = ConfigFlowResult
|
||||||
@ -2409,7 +2409,7 @@ class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str]):
|
|||||||
|
|
||||||
async def async_finish_flow(
|
async def async_finish_flow(
|
||||||
self,
|
self,
|
||||||
flow: data_entry_flow.FlowHandler[ConfigFlowResult, str],
|
flow: data_entry_flow.FlowHandler[ConfigFlowResult],
|
||||||
result: ConfigFlowResult,
|
result: ConfigFlowResult,
|
||||||
) -> ConfigFlowResult:
|
) -> ConfigFlowResult:
|
||||||
"""Finish an options flow and update options for configuration entry.
|
"""Finish an options flow and update options for configuration entry.
|
||||||
@ -2431,7 +2431,7 @@ class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str]):
|
|||||||
return result
|
return result
|
||||||
|
|
||||||
async def _async_setup_preview(
|
async def _async_setup_preview(
|
||||||
self, flow: data_entry_flow.FlowHandler[ConfigFlowResult, str]
|
self, flow: data_entry_flow.FlowHandler[ConfigFlowResult]
|
||||||
) -> None:
|
) -> None:
|
||||||
"""Set up preview for an option flow handler."""
|
"""Set up preview for an option flow handler."""
|
||||||
entry = self._async_get_config_entry(flow.handler)
|
entry = self._async_get_config_entry(flow.handler)
|
||||||
|
@ -18,7 +18,7 @@ from . import config_validation as cv
|
|||||||
|
|
||||||
_FlowManagerT = TypeVar(
|
_FlowManagerT = TypeVar(
|
||||||
"_FlowManagerT",
|
"_FlowManagerT",
|
||||||
bound="data_entry_flow.FlowManager[Any]",
|
bound=data_entry_flow.FlowManager[Any],
|
||||||
default=data_entry_flow.FlowManager,
|
default=data_entry_flow.FlowManager,
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -54,7 +54,7 @@ pyudev==0.24.1
|
|||||||
PyYAML==6.0.1
|
PyYAML==6.0.1
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
SQLAlchemy==2.0.29
|
SQLAlchemy==2.0.29
|
||||||
typing-extensions>=4.10.0,<5.0
|
typing-extensions>=4.11.0,<5.0
|
||||||
ulid-transform==0.9.0
|
ulid-transform==0.9.0
|
||||||
urllib3>=1.26.5,<2
|
urllib3>=1.26.5,<2
|
||||||
voluptuous-serialize==2.6.0
|
voluptuous-serialize==2.6.0
|
||||||
|
@ -60,7 +60,7 @@ dependencies = [
|
|||||||
"PyYAML==6.0.1",
|
"PyYAML==6.0.1",
|
||||||
"requests==2.31.0",
|
"requests==2.31.0",
|
||||||
"SQLAlchemy==2.0.29",
|
"SQLAlchemy==2.0.29",
|
||||||
"typing-extensions>=4.10.0,<5.0",
|
"typing-extensions>=4.11.0,<5.0",
|
||||||
"ulid-transform==0.9.0",
|
"ulid-transform==0.9.0",
|
||||||
# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
|
# Constrain urllib3 to ensure we deal with CVE-2020-26137 and CVE-2021-33503
|
||||||
# Temporary setting an upper bound, to prevent compat issues with urllib3>=2
|
# Temporary setting an upper bound, to prevent compat issues with urllib3>=2
|
||||||
|
@ -35,7 +35,7 @@ python-slugify==8.0.4
|
|||||||
PyYAML==6.0.1
|
PyYAML==6.0.1
|
||||||
requests==2.31.0
|
requests==2.31.0
|
||||||
SQLAlchemy==2.0.29
|
SQLAlchemy==2.0.29
|
||||||
typing-extensions>=4.10.0,<5.0
|
typing-extensions>=4.11.0,<5.0
|
||||||
ulid-transform==0.9.0
|
ulid-transform==0.9.0
|
||||||
urllib3>=1.26.5,<2
|
urllib3>=1.26.5,<2
|
||||||
voluptuous==0.13.1
|
voluptuous==0.13.1
|
||||||
|
Loading…
x
Reference in New Issue
Block a user