We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 52a8cd2 commit 2935843Copy full SHA for 2935843
game/utils/tui.py
@@ -2,7 +2,6 @@
2
from copy import deepcopy
3
from time import sleep
4
5
-from pynput import keyboard
6
from rich.console import Console
7
from rich.live import Live
8
@@ -26,6 +25,10 @@ def prepare_display(game_map: Map, state: dict) -> str:
26
25
27
28
def detect_key_input(state: dict, lock):
+ from pynput import (
29
+ keyboard, # todo: fix this, this is placed here to avoid errors when running tests on github actions
30
+ )
31
+
32
def on_press(key):
33
try:
34
if key.char == "p":
0 commit comments