From cd7344780bc67d9ed566141a5a37694641ed3762 Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Mon, 6 Nov 2023 03:00:31 +0000 Subject: [PATCH] style(pre-commit): auto fixes from pre-commit.com hooks --- discord/ext/commands/core.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 6d7f198189..cd1b274004 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -45,11 +45,11 @@ from ...commands import ( ApplicationCommand, + Option, _BaseCommand, message_command, slash_command, user_command, - Option ) from ...enums import ChannelType from ...errors import * @@ -567,7 +567,7 @@ async def transform(self, ctx: Context, param: inspect.Parameter) -> Any: required = param.annotation.required or param.annotation.default is None default = param.annotation.default else: - required = (param.default is param.empty) + required = param.default is param.empty default = param.default converter = get_converter(param)