We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
IllegalMonthError
IllegalWeekdayError
1 parent 6b4e7f1 commit ba99abaCopy full SHA for ba99aba
stdlib/calendar.pyi
@@ -56,10 +56,12 @@ if sys.version_info >= (3, 12):
56
57
_LocaleType: TypeAlias = tuple[str | None, str | None]
58
59
-class IllegalMonthError(ValueError):
+class IllegalMonthError(ValueError, IndexError):
60
+ month: int
61
def __init__(self, month: int) -> None: ...
62
63
class IllegalWeekdayError(ValueError):
64
+ weekday: int
65
def __init__(self, weekday: int) -> None: ...
66
67
def isleap(year: int) -> bool: ...
0 commit comments