diff options
author | 2020-03-20 22:48:32 +0100 | |
---|---|---|
committer | 2020-03-21 14:27:35 +0100 | |
commit | 1435a916bc760de40b2f000f97b1a7f11a9a9a12 (patch) | |
tree | ce1cd73e322abd87b544ab4de167ec993e27e619 /bot/utils | |
parent | Deseasonify: improve branding embed (diff) |
Deseasonify: define all seasons in one place
Defining seasons in seasonal packages' __init__.py files made more
sense when extensions were strictly tied to seasons. It introduces an
annoying circular dependency where a seasonal package must be imported
in order for the __init__.py file to run and register the season, but
it also imports SeasonBase from the parent directory so that it can
inherit from it.
I have made the decision to scrap the seasonal __init__.py files, and
instead define all seasons directly under SeasonBase. The classes are
no longer scattered around, we remove the above mentioned import
problem, and everything is more transparent and easier to digest.
Diffstat (limited to 'bot/utils')
0 files changed, 0 insertions, 0 deletions