diff --git a/discord/ext/commands/core.py b/discord/ext/commands/core.py index 4adb27cad0..c2282d28bf 100644 --- a/discord/ext/commands/core.py +++ b/discord/ext/commands/core.py @@ -565,7 +565,7 @@ async def dispatch_error(self, ctx: Context, error: Exception) -> None: async def transform(self, ctx: Context, param: inspect.Parameter) -> Any: if isinstance(param.annotation, Option): default = param.annotation.default - required = param.annotation.required or default is None + required = param.annotation.required else: default = param.default required = default is param.empty diff --git a/requirements/dev.txt b/requirements/dev.txt index 801aa1d698..3c71378e73 100644 --- a/requirements/dev.txt +++ b/requirements/dev.txt @@ -1,5 +1,5 @@ -r _.txt -pylint~=3.0.2 +pylint~=3.0.3 pytest~=7.4.3 pytest-asyncio~=0.23.2 # pytest-order~=1.0.1 @@ -7,5 +7,5 @@ mypy~=1.7.1 coverage~=7.3 pre-commit==3.5.0 codespell==2.2.6 -bandit==1.7.5 +bandit==1.7.6 flake8==6.1.0