Skip to content

Commit

Permalink
bounded_number() also only needs to accept str
Browse files Browse the repository at this point in the history
  • Loading branch information
rouge8 committed Feb 8, 2024
1 parent 85f3e01 commit ce3a1dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/klein/_form.py
Original file line number Diff line number Diff line change
Expand Up @@ -267,7 +267,7 @@ def number(
An integer within the range [minimum, maximum].
"""

def bounded_number(text: AnyStr) -> Any:
def bounded_number(text: str) -> Any:
try:
value = kind(text)
except (ValueError, ArithmeticError):
Expand Down

0 comments on commit ce3a1dd

Please sign in to comment.