Update typing-extensions to 4.11.0rc1 (#114116)

This commit is contained in:
Marc Mueller 2024-03-25 11:27:47 +01:00 committed by GitHub
parent e88ade716d
commit 188dbfbd2a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 12 additions and 12 deletions

View File

@ -183,7 +183,7 @@ class BaseZwaveJSFlow(ConfigEntryBaseFlow, ABC):
@property
@abstractmethod
def flow_manager(self) -> FlowManager[ConfigFlowResult, str]:
def flow_manager(self) -> FlowManager[ConfigFlowResult]:
"""Return the flow manager of the flow."""
async def async_step_install_addon(

View File

@ -1071,7 +1071,7 @@ class FlowCancelledError(Exception):
"""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."""
_flow_result = ConfigFlowResult
@ -1197,7 +1197,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str
async def async_finish_flow(
self,
flow: data_entry_flow.FlowHandler[ConfigFlowResult, str],
flow: data_entry_flow.FlowHandler[ConfigFlowResult],
result: ConfigFlowResult,
) -> ConfigFlowResult:
"""Finish a config flow and add an entry."""
@ -1319,7 +1319,7 @@ class ConfigEntriesFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str
async def async_post_init(
self,
flow: data_entry_flow.FlowHandler[ConfigFlowResult, str],
flow: data_entry_flow.FlowHandler[ConfigFlowResult],
result: ConfigFlowResult,
) -> None:
"""After a flow is initialised trigger new flow notifications."""
@ -1987,7 +1987,7 @@ def _async_abort_entries_match(
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."""
_flow_result = ConfigFlowResult
@ -2339,7 +2339,7 @@ class ConfigFlow(ConfigEntryBaseFlow):
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_result = ConfigFlowResult
@ -2369,7 +2369,7 @@ class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str]):
async def async_finish_flow(
self,
flow: data_entry_flow.FlowHandler[ConfigFlowResult, str],
flow: data_entry_flow.FlowHandler[ConfigFlowResult],
result: ConfigFlowResult,
) -> ConfigFlowResult:
"""Finish an options flow and update options for configuration entry.
@ -2391,7 +2391,7 @@ class OptionsFlowManager(data_entry_flow.FlowManager[ConfigFlowResult, str]):
return result
async def _async_setup_preview(
self, flow: data_entry_flow.FlowHandler[ConfigFlowResult, str]
self, flow: data_entry_flow.FlowHandler[ConfigFlowResult]
) -> None:
"""Set up preview for an option flow handler."""
entry = self._async_get_config_entry(flow.handler)

View File

@ -18,7 +18,7 @@ from . import config_validation as cv
_FlowManagerT = TypeVar(
"_FlowManagerT",
bound="data_entry_flow.FlowManager[Any]",
bound=data_entry_flow.FlowManager[Any],
default=data_entry_flow.FlowManager,
)

View File

@ -53,7 +53,7 @@ pyudev==0.23.2
PyYAML==6.0.1
requests==2.31.0
SQLAlchemy==2.0.28
typing-extensions>=4.10.0,<5.0
typing-extensions>=4.11.0rc1,<5.0
ulid-transform==0.9.0
urllib3>=1.26.5,<2
voluptuous-serialize==2.6.0

View File

@ -59,7 +59,7 @@ dependencies = [
"PyYAML==6.0.1",
"requests==2.31.0",
"SQLAlchemy==2.0.28",
"typing-extensions>=4.10.0,<5.0",
"typing-extensions>=4.11.0rc1,<5.0",
"ulid-transform==0.9.0",
# 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

View File

@ -34,7 +34,7 @@ python-slugify==8.0.4
PyYAML==6.0.1
requests==2.31.0
SQLAlchemy==2.0.28
typing-extensions>=4.10.0,<5.0
typing-extensions>=4.11.0rc1,<5.0
ulid-transform==0.9.0
urllib3>=1.26.5,<2
voluptuous==0.13.1