diff options
author | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-29 19:29:59 +0100 |
---|---|---|
committer | Olivier Gayot <olivier.gayot@sigexec.com> | 2021-12-29 19:46:05 +0100 |
commit | 545fb5d5143b11320b768094410b162815cc4f75 (patch) | |
tree | 865db2231af5515ee5ac40d52a50b7c17172dc08 | |
parent | 95ca11e98c47c3e8e57093c37134a6f51bcb6f30 (diff) |
Make list_languages a static method since it does not use self
Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r-- | swiftstory/game_manager.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/swiftstory/game_manager.py b/swiftstory/game_manager.py index ef57e5d..56279a6 100644 --- a/swiftstory/game_manager.py +++ b/swiftstory/game_manager.py @@ -38,7 +38,8 @@ class GameManager: games={} ) - def list_languages(self) -> List[str]: + @staticmethod + def list_languages() -> List[str]: """ List available languages based on FS. """ return pkg_resources.resource_listdir(__name__, "data/lang") |