MCPcopy Index your code
hub / github.com/python-pendulum/pendulum / is_leap

Function is_leap

src/pendulum/_helpers.py:55–56  ·  view source on GitHub ↗
(year: int)

Source from the content-addressed store, hash-verified

53
54
55def is_leap(year: int) -> bool:
56 return year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
57
58
59def is_long_year(year: int) -> bool:

Callers 4

add_durationFunction · 0.90
parse_iso8601Function · 0.90
days_in_yearFunction · 0.85
precise_diffFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…