mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 21:14:48 +08:00
Use __new__ for datetime.time (#5530)
This commit is contained in:
@@ -59,9 +59,14 @@ class time:
|
||||
min: ClassVar[time]
|
||||
max: ClassVar[time]
|
||||
resolution: ClassVar[timedelta]
|
||||
def __init__(
|
||||
self, hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., tzinfo: Optional[_tzinfo] = ...
|
||||
) -> None: ...
|
||||
def __new__(
|
||||
cls: Type[_S],
|
||||
hour: int = ...,
|
||||
minute: int = ...,
|
||||
second: int = ...,
|
||||
microsecond: int = ...,
|
||||
tzinfo: Optional[_tzinfo] = ...,
|
||||
) -> _S: ...
|
||||
@property
|
||||
def hour(self) -> int: ...
|
||||
@property
|
||||
|
||||
Reference in New Issue
Block a user