aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Numerlor <[email protected]>2021-08-23 21:39:32 +0200
committerGravatar Numerlor <[email protected]>2021-08-23 21:39:32 +0200
commitbe9bc9c814c4e43bdb6850e871678e9281958091 (patch)
tree898f8c267d4399e2f998db57e4661b8450cd5186
parentMerge remote-tracking branch 'upstream/main' into converter-typehints (diff)
Prevent import cycle when importing EXTENSIONS
-rw-r--r--bot/errors.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/bot/errors.py b/bot/errors.py
index 08396ec3e..2633390a8 100644
--- a/bot/errors.py
+++ b/bot/errors.py
@@ -1,6 +1,8 @@
-from typing import Hashable
+from __future__ import annotations
-from bot.converters import MemberOrUser
+from typing import Hashable, TYPE_CHECKING
+if TYPE_CHECKING:
+ from bot.converters import MemberOrUser
class LockedResourceError(RuntimeError):