Skip to content

Commit

Permalink
Improve Callable annotations (home-assistant#133050)
Browse files Browse the repository at this point in the history
  • Loading branch information
cdce8p authored Dec 12, 2024
1 parent 839312c commit 0a74825
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion homeassistant/components/crownstone/config_flow.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion homeassistant/components/dsmr/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 0a74825

Please sign in to comment.