Skip to content

Commit 71ceb53

Browse files
authored
resolve bugs
1 parent a4e90aa commit 71ceb53

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

discord/commands/commands.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,7 @@ def __init__(
580580
elif self.input_type == SlashCommandOptionType.number:
581581
minmax_types = (int, float)
582582
else:
583-
minmax_types = (None,)
583+
minmax_types = (type(None),)
584584
minmax_typehint = Optional[Union[minmax_types]]
585585

586586
self.min_value: minmax_typehint = kwargs.pop("min_value", None)

0 commit comments

Comments
 (0)