aboutsummaryrefslogtreecommitdiffstats
path: root/bot/utils/decorators.py
diff options
context:
space:
mode:
authorGravatar arl <[email protected]>2022-07-09 16:05:03 -0400
committerGravatar GitHub <[email protected]>2022-07-09 16:05:03 -0400
commit065624e13dc4d08f97ba09adb637085f1a1a05a2 (patch)
treef0350d2486a590174c0817038aca41e0f97e5b6e /bot/utils/decorators.py
parentminor: remove print debugging statement (diff)
Apply suggestions from code review
Diffstat (limited to 'bot/utils/decorators.py')
-rw-r--r--bot/utils/decorators.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/utils/decorators.py b/bot/utils/decorators.py
index ed03c054..f39b52e2 100644
--- a/bot/utils/decorators.py
+++ b/bot/utils/decorators.py
@@ -201,7 +201,7 @@ def whitelist_check(**default_kwargs: Container[int]) -> Callable[[Context], boo
# determine which command's overrides we will use
# as we have groups, we want to ensure that group commands inherit from the parent
- overridden_command: Union[commands.Command, commands.Group] = None
+ overridden_command: Optional[commands.Command] = None
for command in [ctx.command, *ctx.command.parents]:
if hasattr(command.callback, "override"):
overridden_command = command