Assign OS, NS in a single statement, not two lines.
1 files changed, 2 insertions(+), 2 deletions(-) M check.py
M check.py +2 -2
@@ 51,8 51,8 @@ class TerminalAndStyles: def update(state, key): - OS, NS = state, state.copy() # Old state and New State - NS = state.copy() + OS, NS = state, state.copy() # Old State and New State + if key == 'KEY_UP': NS['current_task_id'] = (OS['current_task_id'] - 1) % len(state['tasks']) elif key == 'KEY_DOWN':