Fixed indent

This commit is contained in:
Profitroll 2023-05-11 21:35:42 +02:00
parent 8f23c5cab7
commit 459092c2ed

View File

@ -29,7 +29,9 @@ async def json_write(data: Any, path: Union[str, Path]) -> None:
* path (`Union[str, Path]`): Path-like object or path as a string of a destination
"""
async with aiofiles.open(str(path), mode="w", encoding="utf-8") as f:
await f.write(dumps(data, ensure_ascii=False, escape_forward_slashes=False))
await f.write(
dumps(data, ensure_ascii=False, escape_forward_slashes=False, indent=4)
)
async def config_get(