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 0bf1d69 commit def1c09Copy full SHA for def1c09
other/age_controller.py
@@ -4,7 +4,7 @@
4
"""
5
6
7
-def validate_age(age: int | str | float) -> int:
+def validate_age(age: float | str) -> int:
8
"""Validate and process age input.
9
10
This function validates that the provided age is a valid positive integer
@@ -58,7 +58,7 @@ def validate_age(age: int | str | float) -> int:
58
raise ValueError(msg)
59
60
# Validate age is within reasonable range
61
- if age_int > 150: # noqa: PLR2004
+ if age_int > 150:
62
msg = "Age must be between 0 and 150 years"
63
64
0 commit comments