A wild W504 linter error appeared! Fix those.

This commit is contained in:
Josh Klar committed 2019-07-24 21:25:10 -07:00
1 parent 5c8bd45615
commit a51d11f6e6
5 files changed
+17 -16

No files matched your search

+2 -4
View File
@@ -101,10 +101,8 @@ def tt_pressed(key, state, *args, **kwargs):
def tt_released(key, state, *args, **kwargs):
if (
state.start_time['tt'] is None or
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.
state.start_time['tt'] = None