mirror of
https://github.com/aclist/dztui.git
synced 2026-10-30 06:32:53 +01:00
chore: clear typehinting errors
This commit is contained in:
1 parent
d57277f527
commit
41b3ad8eca
2 files changed
+3
-2
No files matched your search
+1
-1
@@ -12,7 +12,7 @@ def read_json(path: Path) -> Any:
|
||||
raise e
|
||||
|
||||
|
||||
def write_json(data: dict, path: Path) -> None:
|
||||
def write_json(data: dict[str, Any], path: Path) -> None:
|
||||
try:
|
||||
j = json.dumps(data, indent=2)
|
||||
path.write_text(j)
|
||||
|
||||
Reference in new issue
Block a user