Skip to content

Commit 89babbe

Browse files
committed
chore: Stupid import inside function definition, so I don't have to struggle with tests not running on github actions
1 parent ba9980e commit 89babbe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

game/utils/tui.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
from copy import deepcopy
33
from time import sleep
44

5-
from pynput import keyboard
65
from rich.console import Console
76
from rich.live import Live
87

@@ -26,6 +25,8 @@ def prepare_display(game_map: Map, state: dict) -> str:
2625

2726

2827
def detect_key_input(state: dict, lock):
28+
from pynput import keyboard
29+
2930
def on_press(key):
3031
try:
3132
if key.char == "p":

0 commit comments

Comments
 (0)