From 96eaa6555ae44e30b3784576a6ecd0941523691f Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 23 Dec 2021 15:47:13 +0100 Subject: Add required annotations to make sure mypy succeeds Signed-off-by: Olivier Gayot --- swiftstory/game_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'swiftstory/game_manager.py') diff --git a/swiftstory/game_manager.py b/swiftstory/game_manager.py index a87f67e..e7b3305 100644 --- a/swiftstory/game_manager.py +++ b/swiftstory/game_manager.py @@ -1,5 +1,6 @@ import logging import os +from typing import Dict, List from swiftstory.exception import UnsupportedLanguage from swiftstory.game import Game @@ -8,7 +9,7 @@ from swiftstory.cards import Cards class GameManager: def __init__(self): - self.langs = {} + self.langs: Dict[str, dict] = {} for filename in next(os.walk('usr/share/swiftstory/lang'))[1]: self.langs[filename] = {} -- cgit v1.2.3