Explicit is better than implicit 🐍🤓

This commit is contained in:
kramo
2023-10-14 20:32:22 +02:00
parent 89ba4aecaa
commit 815c1ec088
3 changed files with 8 additions and 6 deletions

View File

@@ -53,7 +53,7 @@ class FileManager(AsyncManager):
json.dump(
{attr: getattr(game, attr) for attr in attrs if attr},
(shared.games_dir / f"{game.game_id}.json").open("w"),
(shared.games_dir / f"{game.game_id}.json").open("w", encoding="utf-8"),
indent=4,
sort_keys=True,
)