diff --git a/stdlib/calendar.pyi b/stdlib/calendar.pyi index d00f0d5d2bce..0d3a0a7490a3 100644 --- a/stdlib/calendar.pyi +++ b/stdlib/calendar.pyi @@ -56,10 +56,12 @@ if sys.version_info >= (3, 12): _LocaleType: TypeAlias = tuple[str | None, str | None] -class IllegalMonthError(ValueError): +class IllegalMonthError(ValueError, IndexError): + month: int def __init__(self, month: int) -> None: ... class IllegalWeekdayError(ValueError): + weekday: int def __init__(self, weekday: int) -> None: ... def isleap(year: int) -> bool: ...