Skip to content

Commit

Permalink
style(typing): fix typing for defaultdicts
Browse files Browse the repository at this point in the history
  • Loading branch information
xaviml committed Apr 28, 2021
1 parent 3ee7e4e commit 529786d
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions apps/controllerx/cx_core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
Awaitable,
Callable,
Counter,
DefaultDict,
Dict,
List,
Optional,
Expand Down Expand Up @@ -85,15 +86,17 @@ class Controller(Hass, Mqtt):

integration: Integration
actions_mapping: ActionsMapping
action_handles: Dict[ActionEvent, Optional[Future]]
action_handles: DefaultDict[ActionEvent, Optional["Future[None]"]]
action_delay_handles: Dict[ActionEvent, Optional[float]]
multiple_click_actions: Set[ActionEvent]
action_delay: Dict[ActionEvent, int]
action_delta: Dict[ActionEvent, int]
action_times: Dict[str, float]
multiple_click_action_times: Dict[str, float]
click_counter: Counter[ActionEvent]
multiple_click_action_delay_tasks: Dict[ActionEvent, Optional[Future]]
multiple_click_action_delay_tasks: DefaultDict[
ActionEvent, Optional["Future[None]"]
]
multiple_click_delay: int

async def initialize(self) -> None:
Expand Down

0 comments on commit 529786d

Please sign in to comment.