Skip to content

Commit ba99aba

Browse files
authored
[stdlib] Correct IllegalMonthError, IllegalWeekdayError type stubs (#15050)
1 parent 6b4e7f1 commit ba99aba

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

stdlib/calendar.pyi

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,10 +56,12 @@ if sys.version_info >= (3, 12):
5656

5757
_LocaleType: TypeAlias = tuple[str | None, str | None]
5858

59-
class IllegalMonthError(ValueError):
59+
class IllegalMonthError(ValueError, IndexError):
60+
month: int
6061
def __init__(self, month: int) -> None: ...
6162

6263
class IllegalWeekdayError(ValueError):
64+
weekday: int
6365
def __init__(self, weekday: int) -> None: ...
6466

6567
def isleap(year: int) -> bool: ...

0 commit comments

Comments
 (0)