mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
Add a __new__ method to datetime.datetime. (#1417)
This commit is contained in:
@@ -143,6 +143,9 @@ class datetime(object):
|
||||
def __init__(self, year: int, month: int, day: int, hour: int = ...,
|
||||
minute: int = ..., second: int = ..., microseconds: int = ...,
|
||||
tzinfo: tzinfo = ...) -> None: ...
|
||||
def __new__(cls, year: int, month: int, day: int, hour: int = ...,
|
||||
minute: int = ..., second: int = ..., microseconds: int = ...,
|
||||
tzinfo: tzinfo = ...) -> datetime: ...
|
||||
|
||||
@property
|
||||
def year(self) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user