summaryrefslogtreecommitdiff
path: root/swiftstory/game_manager.py
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2021-12-29 17:05:21 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2021-12-29 17:06:29 +0100
commit95ca11e98c47c3e8e57093c37134a6f51bcb6f30 (patch)
tree4c10504aee30dab96e6d5836f0f35f9d6a6a9810 /swiftstory/game_manager.py
parent8d242a5e6c090ee8165b36fea6520d533269518e (diff)
Add type hinting everywhere so we can enable strict mypy options
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
Diffstat (limited to 'swiftstory/game_manager.py')
-rw-r--r--swiftstory/game_manager.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/swiftstory/game_manager.py b/swiftstory/game_manager.py
index 2429d92..ef57e5d 100644
--- a/swiftstory/game_manager.py
+++ b/swiftstory/game_manager.py
@@ -42,7 +42,7 @@ class GameManager:
""" List available languages based on FS. """
return pkg_resources.resource_listdir(__name__, "data/lang")
- def find_by_name(self, game_name: str, lang: str, create=True) -> Game:
+ def find_by_name(self, game_name: str, lang: str, create: bool = True) -> Game:
""" Find and return the game that matches the name and language
specified. If the game does not exist but create is set to True, a new
game will be created. """