mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-05-04 20:45:49 +08:00
[stdlib] Correct IllegalMonthError, IllegalWeekdayError type stubs (#15050)
This commit is contained in:
+3
-1
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user