diff options
| author | 2020-08-19 11:58:51 -0700 | |
|---|---|---|
| committer | 2020-08-19 12:00:55 -0700 | |
| commit | a66df2917b08f91f5e3decc87ef6ca9b55dd66a4 (patch) | |
| tree | 71e85553d9ea8a1ac6c620cc13ce6a035f1842eb | |
| parent | Rename "cogs" directory to "exts" (diff) | |
Add comment to explain why import is deferred
| -rw-r--r-- | bot/exts/backend/sync/__init__.py | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/bot/exts/backend/sync/__init__.py b/bot/exts/backend/sync/__init__.py index 2541beaa8..e628b958b 100644 --- a/bot/exts/backend/sync/__init__.py +++ b/bot/exts/backend/sync/__init__.py @@ -3,5 +3,6 @@ from bot.bot import Bot def setup(bot: Bot) -> None: """Load the Sync cog.""" + # Defer import to reduce side effects from importing the sync package. from ._cog import Sync bot.add_cog(Sync(bot)) |