mirror of
https://github.com/aclist/dztui.git
synced 2026-11-08 02:50:46 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
e64feac425
commit
25640751a5
23 files changed
+86
-105
No files matched your search
+2
-2
@@ -83,7 +83,7 @@ def find_user_id(path: Path) -> str | None:
|
||||
j = json.loads(vdf)
|
||||
for user in j["users"]:
|
||||
if j["users"][user]["MostRecent"] == "1":
|
||||
return user
|
||||
return str(user)
|
||||
return None
|
||||
except Exception as e:
|
||||
logger.warn(e)
|
||||
@@ -91,7 +91,7 @@ def find_user_id(path: Path) -> str | None:
|
||||
|
||||
|
||||
def vdf2json(path: Path) -> str:
|
||||
def _istr(indent, string):
|
||||
def _istr(indent: int, string: str):
|
||||
return (indent * " ") + string
|
||||
|
||||
jbuf = "{\n"
|
||||
|
||||
Reference in new issue
Block a user