Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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
55
def
is_leap(year: int) -> bool:
56
return
year % 4 == 0 and (year % 100 != 0 or year % 400 == 0)
57
58
59
def
is_long_year(year: int) -> bool:
Callers
4
add_duration
Function · 0.90
parse_iso8601
Function · 0.90
days_in_year
Function · 0.85
precise_diff
Function · 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…