Add a __new__ method to datetime.datetime. (#1417)

This commit is contained in:
rchen152
2017-06-19 17:05:34 -07:00
committed by Matthias Kramm
parent 4a8a20f04e
commit 945527dbc0

View File

@@ -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: ...