Skip to content

Commit def1c09

Browse files
authored
Fix remaining Ruff linter errors (PYI041, RUF100)
1 parent 0bf1d69 commit def1c09

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

other/age_controller.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55

66

7-
def validate_age(age: int | str | float) -> int:
7+
def validate_age(age: float | str) -> int:
88
"""Validate and process age input.
99
1010
This function validates that the provided age is a valid positive integer
@@ -58,7 +58,7 @@ def validate_age(age: int | str | float) -> int:
5858
raise ValueError(msg)
5959

6060
# Validate age is within reasonable range
61-
if age_int > 150: # noqa: PLR2004
61+
if age_int > 150:
6262
msg = "Age must be between 0 and 150 years"
6363
raise ValueError(msg)
6464

0 commit comments

Comments
 (0)