Improve Callable annotations (#133050)

This commit is contained in:
Marc Mueller 2024-12-12 15:14:28 +01:00 committed by GitHub
parent 839312c65c
commit 0a748252e7
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -49,7 +49,7 @@ class BaseCrownstoneFlowHandler(ConfigEntryBaseFlow):
cloud: CrownstoneCloud
def __init__(
self, flow_type: str, create_entry_cb: Callable[..., ConfigFlowResult]
self, flow_type: str, create_entry_cb: Callable[[], ConfigFlowResult]
) -> None:
"""Set up flow instance."""
self.flow_type = flow_type

View File

@ -549,7 +549,7 @@ async def async_setup_entry(
dsmr_version = entry.data[CONF_DSMR_VERSION]
entities: list[DSMREntity] = []
initialized: bool = False
add_entities_handler: Callable[..., None] | None
add_entities_handler: Callable[[], None] | None
@callback
def init_async_add_entities(telegram: Telegram) -> None: