Skip to content

Commit fe5f2ab

Browse files
committed
Update docstring for utility function with correct type annotation
1 parent 26abd85 commit fe5f2ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

adafruit_datetime.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -153,8 +153,8 @@ def _check_tzinfo_arg(time_zone: Optional["tzinfo"]):
153153

154154

155155
# Utility functions - date
156-
"year -> 1 if leap year, else 0."
157156
def _is_leap(year: int) -> bool:
157+
"year -> True if leap year, else False."
158158
return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
159159

160160

0 commit comments

Comments
 (0)