diff --git a/stdlib/2/datetime.pyi b/stdlib/2/datetime.pyi index 2a804b213..725aee3d8 100644 --- a/stdlib/2/datetime.pyi +++ b/stdlib/2/datetime.pyi @@ -141,10 +141,10 @@ class datetime(object): resolution = ... # type: timedelta def __init__(self, year: int, month: int, day: int, hour: int = ..., - minute: int = ..., second: int = ..., microseconds: int = ..., + minute: int = ..., second: int = ..., microsecond: int = ..., tzinfo: tzinfo = ...) -> None: ... def __new__(cls, year: int, month: int, day: int, hour: int = ..., - minute: int = ..., second: int = ..., microseconds: int = ..., + minute: int = ..., second: int = ..., microsecond: int = ..., tzinfo: tzinfo = ...) -> datetime: ... @property diff --git a/stdlib/3/datetime.pyi b/stdlib/3/datetime.pyi index 2f7cd32f9..6ff3adab2 100644 --- a/stdlib/3/datetime.pyi +++ b/stdlib/3/datetime.pyi @@ -1,11 +1,10 @@ import sys +from time import struct_time from typing import Optional, SupportsAbs, Tuple, overload MINYEAR = 0 MAXYEAR = 0 -_TimeTuple = Tuple[int, int, int, int, int, int, int, int, int] - class tzinfo: def tzname(self, dt: Optional[datetime]) -> str: ... def utcoffset(self, dt: Optional[datetime]) -> Optional[timedelta]: ... @@ -188,9 +187,9 @@ class datetime: def strftime(self, fmt: str) -> str: ... def __format__(self, fmt: str) -> str: ... def toordinal(self) -> int: ... - def timetuple(self) -> _TimeTuple: ... + def timetuple(self) -> struct_time: ... def timestamp(self) -> float: ... - def utctimetuple(self) -> _TimeTuple: ... + def utctimetuple(self) -> struct_time: ... def date(self) -> _date: ... def time(self) -> _time: ... def timetz(self) -> _time: ...