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

Function days_in_year

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

Source from the content-addressed store, hash-verified

83
84
85def days_in_year(year: int) -> int:
86 if is_leap(year):
87 return DAYS_PER_L_YEAR
88
89 return DAYS_PER_N_YEAR
90
91
92def local_time(

Callers 2

_get_iso_8601_weekFunction · 0.90
test_days_in_yearsFunction · 0.90

Calls 1

is_leapFunction · 0.85

Tested by 1

test_days_in_yearsFunction · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…