diff options
author | 2020-08-13 19:19:36 -0700 | |
---|---|---|
committer | 2020-08-14 09:43:40 -0700 | |
commit | 7e184c3b1921c6dc50659c158f427bd43b6a0791 (patch) | |
tree | df22b091879c85cede10942ef74533701ff1a0cc | |
parent | Extensions: support unqualified extension names (diff) |
Defer imports in extensions using __init__.py
Since `pkgutil.walk_packages` imports packages it comes across, it's
best to avoid potential side effects from imports.
-rw-r--r-- | bot/cogs/backend/sync/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/cogs/backend/sync/__init__.py b/bot/cogs/backend/sync/__init__.py index fb640a1cf..2541beaa8 100644 --- a/bot/cogs/backend/sync/__init__.py +++ b/bot/cogs/backend/sync/__init__.py @@ -1,7 +1,7 @@ from bot.bot import Bot -from ._cog import Sync def setup(bot: Bot) -> None: """Load the Sync cog.""" + from ._cog import Sync bot.add_cog(Sync(bot)) |