chore: clear typehinting errors

This commit is contained in:
aclist committed 2026-05-05 23:37:31 +09:00
1 parent e64feac425
commit 25640751a5
23 files changed
+86 -105

No files matched your search

+2 -2
View File
@@ -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"