summaryrefslogtreecommitdiff
path: root/swiftstory/game_manager.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-12-23 15:47:13 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-12-23 23:15:21 +0100
commit96eaa6555ae44e30b3784576a6ecd0941523691f (patch)
tree4fa06a1a7c1b434085f2e015b5928bd91be01cd8 /swiftstory/game_manager.py
parentc8d99bb33f21991a6c3e7539806f2bc73659b896 (diff)
Add required annotations to make sure mypy succeeds
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/game_manager.py')
-rw-r--r--swiftstory/game_manager.py3
1 files changed, 2 insertions, 1 deletions
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] = {}