[stdlib] Correct IllegalMonthError, IllegalWeekdayError type stubs (#15050)

This commit is contained in:
Guo Ci
2025-11-18 14:46:39 -05:00
committed by GitHub
parent 6b4e7f1246
commit ba99abaf21
+3 -1
View File
@@ -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: ...