Skip to content

Commit a4e90aa

Browse files
authored
resolve typo
1 parent 704861b commit a4e90aa

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

discord/commands/commands.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -586,10 +586,10 @@ def __init__(
586586
self.min_value: minmax_typehint = kwargs.pop("min_value", None)
587587
self.max_value: minmax_typehint = kwargs.pop("max_value", None)
588588

589-
if not isinstance(self.min_value, minmax_typehint) or self.min_value is not None:
590-
raise TypeError(f"Expected {minmax_types} for min_value, got \"{type(self.min_value).__name__}\"")
591-
if not isinstance(self.max_value, minmax_typehint) or self.max_value is not None:
592-
raise TypeError(f"Expected {minmax_types} for max_value, got \"{type(self.max_value).__name__}\"")
589+
if not isinstance(self.min_value, minmax_types) or self.min_value is None:
590+
raise TypeError(f"Expected {minmax_typehint} for min_value, got \"{type(self.min_value).__name__}\"")
591+
if not isinstance(self.max_value, minmax_types) or self.max_value is None:
592+
raise TypeError(f"Expected {minmax_typehint} for max_value, got \"{type(self.max_value).__name__}\"")
593593

594594
def to_dict(self) -> Dict:
595595
as_dict = {

0 commit comments

Comments
 (0)