Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Nov 27, 2023
1 parent 159654b commit 365d9e4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions apps/controllerx/cx_core/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -152,7 +152,7 @@ async def init(self) -> None:
custom=self.args.get("action_delta"),
default=DEFAULT_ACTION_DELTA,
)
self.action_times = defaultdict(lambda: 0.0)
self.action_times = defaultdict(float)

# Previous state
self.previous_states = self.get_mapping_per_action(
Expand All @@ -168,7 +168,7 @@ async def init(self) -> None:
self.multiple_click_delay = self.args.get(
"multiple_click_delay", DEFAULT_MULTIPLE_CLICK_DELAY
)
self.multiple_click_action_times = defaultdict(lambda: 0.0)
self.multiple_click_action_times = defaultdict(float)
self.click_counter = Counter()
self.multiple_click_action_delay_tasks = defaultdict(lambda: None)

Expand Down
2 changes: 1 addition & 1 deletion tests/unit_tests/cx_core/controller_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -413,7 +413,7 @@ async def test_handle_action(
fake_action_type: ActionType,
) -> None:
sut.action_delta = {action_called: action_delta}
sut.action_times = defaultdict(lambda: 0)
sut.action_times = defaultdict(int)

sut.actions_mapping = {action: [fake_action_type] for action in actions_input}
sut.previous_states = defaultdict(lambda: None)
Expand Down

0 comments on commit 365d9e4

Please sign in to comment.