Run black against source tree

This commit is contained in:
Josh Klar
2019-07-24 22:57:11 -07:00
parent 5c0c13e8d0
commit aaeaa74a0c
19 changed files with 126 additions and 166 deletions

View File

@@ -114,7 +114,9 @@ def tt_pressed(key, state, *args, **kwargs):
def tt_released(key, state, *args, **kwargs):
tap_timed_out = ticks_diff(ticks_ms(), state.start_time['tt']) >= state.config.tap_time
tap_timed_out = (
ticks_diff(ticks_ms(), state.start_time['tt']) >= state.config.tap_time
)
if state.start_time['tt'] is None or tap_timed_out:
# On first press, works like MO. On second press, does nothing unless let up within
# time window, then acts like TG.