mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-10-19 20:27:05 +08:00
Use __new__ for datetime.time (#5530)
This commit is contained in:
1 parent
9b2f158fdb
commit
a32d24cae0
3 files changed
+15
-10
No files matched your search
+4
-4
@@ -274,13 +274,13 @@ MAXYEAR: int
|
||||
MINYEAR: int
|
||||
|
||||
class date:
|
||||
def __init__(self, year: int, month: int, day: int) -> None: ...
|
||||
def __new__(cls: Type[_S], year: int, month: int, day: int) -> _S: ...
|
||||
@classmethod
|
||||
def fromtimestamp(cls, timestamp: float) -> date: ...
|
||||
def fromtimestamp(cls: Type[_S], __timestamp: float) -> _S: ...
|
||||
@classmethod
|
||||
def today(cls) -> date: ...
|
||||
def today(cls: Type[_S]) -> _S: ...
|
||||
@classmethod
|
||||
def fromordinal(cls, ordinal: int) -> date: ...
|
||||
def fromordinal(cls: Type[_S], n: int) -> _S: ...
|
||||
@property
|
||||
def year(self) -> int: ...
|
||||
def replace(self, year: int = ..., month: int = ..., day: int = ...) -> date: ...
|
||||
|
||||
Reference in new issue
Block a user