From 95ca11e98c47c3e8e57093c37134a6f51bcb6f30 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 29 Dec 2021 17:05:21 +0100 Subject: Add type hinting everywhere so we can enable strict mypy options Signed-off-by: Olivier Gayot --- swiftstory/game_manager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'swiftstory/game_manager.py') 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. """ -- cgit v1.2.3