summaryrefslogtreecommitdiff
path: root/kvmd/tools.py
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2024-05-13 17:52:04 +0300
committerMaxim Devaev <[email protected]>2024-05-13 17:52:04 +0300
commit9158abfab4ca2a96d1bf9a80e09f9c696c0dc7d8 (patch)
treef71a59690a55d8a2e3179afa1310d13854316688 /kvmd/tools.py
parentbf87f036d36fb587ea2db88efd60ee7fefcdd1cf (diff)
lint fixes
Diffstat (limited to 'kvmd/tools.py')
-rw-r--r--kvmd/tools.py3
1 files changed, 1 insertions, 2 deletions
diff --git a/kvmd/tools.py b/kvmd/tools.py
index fca68e22..c96ff38f 100644
--- a/kvmd/tools.py
+++ b/kvmd/tools.py
@@ -26,7 +26,6 @@ import multiprocessing.queues
import queue
import shlex
-from typing import Hashable
from typing import TypeVar
@@ -45,7 +44,7 @@ def efmt(err: Exception) -> str:
# =====
-def rget(dct: dict, *keys: Hashable) -> dict:
+def rget(dct: dict, *keys: str) -> dict:
result = functools.reduce((lambda nxt, key: nxt.get(key, {})), keys, dct)
if not isinstance(result, dict):
raise TypeError(f"Not a dict as result: {result!r} from {dct!r} at {list(keys)}")