MCPcopy Index your code
hub / github.com/RustPython/RustPython / _validate_month

Function _validate_month

Lib/calendar.py:163–165  ·  view source on GitHub ↗
(month)

Source from the content-addressed store, hash-verified

161
162
163def _validate_month(month):
164 if not 1 <= month <= 12:
165 raise IllegalMonthError(month)
166
167def monthrange(year, month):
168 """Return weekday of first day of month (0-6 ~ Mon-Sun)

Callers 4

monthrangeFunction · 0.85
formatmonthnameMethod · 0.85
formatmonthnameMethod · 0.85
mainFunction · 0.85

Calls 1

IllegalMonthErrorClass · 0.85

Tested by

no test coverage detected