mirror of
https://github.com/aclist/dztui.git
synced 2026-11-03 16:42:13 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
ea1b9facd2
commit
2ebe8cad84
9 files changed
+35
-27
No files matched your search
@@ -23,7 +23,7 @@ def lookup(path: Path, enum: Preferences) -> Any:
|
||||
return None
|
||||
|
||||
|
||||
def get_config(path: Path) -> dict:
|
||||
def get_config(path: Path) -> Any:
|
||||
# TODO: is this being called multiple times?
|
||||
try:
|
||||
json = read_json(path)
|
||||
@@ -37,7 +37,7 @@ def get_favorites(path: Path) -> list[str]:
|
||||
conf = get_config(path)
|
||||
except Exception:
|
||||
pass
|
||||
return conf["ip_list"]
|
||||
return list(conf["ip_list"])
|
||||
|
||||
|
||||
# def is_in_favs(record: str, path: Path) -> bool:
|
||||
|
||||
Reference in new issue
Block a user