diff options
author | 2022-07-09 16:05:03 -0400 | |
---|---|---|
committer | 2022-07-09 16:05:03 -0400 | |
commit | 065624e13dc4d08f97ba09adb637085f1a1a05a2 (patch) | |
tree | f0350d2486a590174c0817038aca41e0f97e5b6e /bot/utils | |
parent | minor: remove print debugging statement (diff) |
Apply suggestions from code review
Diffstat (limited to 'bot/utils')
-rw-r--r-- | bot/utils/decorators.py | 2 |
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 |