From 065624e13dc4d08f97ba09adb637085f1a1a05a2 Mon Sep 17 00:00:00 2001 From: arl Date: Sat, 9 Jul 2022 16:05:03 -0400 Subject: Apply suggestions from code review --- bot/utils/decorators.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bot/utils/decorators.py') 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 -- cgit v1.2.3