We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4050be7 commit 149e394Copy full SHA for 149e394
interactions/models/internal/application_commands.py
@@ -535,7 +535,7 @@ def _is_optional(anno: typing.Any) -> bool:
535
536
537
def _remove_optional(t: OptionType | type) -> Any:
538
- non_optional_args: tuple[type] = tuple(a for a in typing.get_args(t) if a is not types.NoneType) # noqa
+ non_optional_args: tuple[type] = tuple(a for a in typing.get_args(t) if a is not types.NoneType)
539
if len(non_optional_args) == 1:
540
return non_optional_args[0]
541
return typing.Union[non_optional_args] # type: ignore
0 commit comments