diff options
author | 2020-03-07 13:12:42 +0100 | |
---|---|---|
committer | 2020-03-07 13:12:42 +0100 | |
commit | 7423db8a9f2b51577dff225b6cf75c5fe4899b8d (patch) | |
tree | c122eea831cbbc36dc47ee2e98079b6cbbb07a7a | |
parent | Deseasonify: remove `get_season` utility function (diff) |
Deseasonify: remove `get_season_class` utility function
-rw-r--r-- | bot/seasons/season.py | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/bot/seasons/season.py b/bot/seasons/season.py index c69f99cc..c5009d6b 100644 --- a/bot/seasons/season.py +++ b/bot/seasons/season.py @@ -29,13 +29,6 @@ def get_seasons() -> List[str]: return seasons -def get_season_class(season_name: str) -> Type["SeasonBase"]: - """Gets the season class of the season module.""" - season_lib = importlib.import_module(f"bot.seasons.{season_name}") - class_name = season_name.replace("_", " ").title().replace(" ", "") - return getattr(season_lib, class_name) - - class SeasonBase: """Base class for Seasonal classes.""" |