Skip to content

Commit

Permalink
Update: Refined docstring to include additional AssertionError cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Khusro-S committed Dec 29, 2024
1 parent db329b8 commit 55f1392
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions solutions/is_leap_year.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,11 @@ def is_leap_year(year) -> bool:
Returns:
bool: True if the year is a leap year, False otherwise.
Raises:
AssertionError: if the argument is not an integer
AssertionError: if the argument is less than 0
Raises:
AssertionError: If the input is a string.
AssertionError: If the input is a negative year.
AssertionError: If the input is None.
AssertionError: If the input is a float.
>>> is_leap(2000)
True
Expand Down

0 comments on commit 55f1392

Please sign in to comment.