From 545fb5d5143b11320b768094410b162815cc4f75 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Wed, 29 Dec 2021 19:29:59 +0100 Subject: Make list_languages a static method since it does not use self Signed-off-by: Olivier Gayot --- swiftstory/game_manager.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'swiftstory') 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") -- cgit v1.2.3