diff --git a/stdlib/2.7/datetime.pyi b/stdlib/2.7/datetime.pyi index 5c4485db1..e7f4b44fd 100644 --- a/stdlib/2.7/datetime.pyi +++ b/stdlib/2.7/datetime.pyi @@ -14,16 +14,7 @@ class tzinfo(object): def dst(self, dt: Optional[datetime]) -> Optional[timedelta]: ... def fromutc(self, dt: datetime) -> datetime: ... -class timezone(tzinfo): - utc = ... # type: tzinfo - min = ... # type: tzinfo - max = ... # type: tzinfo - - def __init__(self, offset: timedelta, name: str = ...) -> None: ... - def __hash__(self) -> int: ... - _tzinfo = tzinfo -_timezone = timezone class date(object): min = ... # type: date @@ -173,7 +164,7 @@ class datetime(object): def tzinfo(self) -> _tzinfo: ... @classmethod - def fromtimestamp(cls, t: float, tz: timezone = ...) -> datetime: ... + def fromtimestamp(cls, t: float, tz: _tzinfo = ...) -> datetime: ... @classmethod def utcfromtimestamp(cls, t: float) -> datetime: ... @classmethod diff --git a/stdlib/3/datetime.pyi b/stdlib/3/datetime.pyi index 600bf22f6..3d2a58fc9 100644 --- a/stdlib/3/datetime.pyi +++ b/stdlib/3/datetime.pyi @@ -14,9 +14,9 @@ class tzinfo: def fromutc(self, dt: datetime) -> datetime: ... class timezone(tzinfo): - utc = ... # type: tzinfo - min = ... # type: tzinfo - max = ... # type: tzinfo + utc = ... # type: timezone + min = ... # type: timezone + max = ... # type: timezone def __init__(self, offset: timedelta, name: str = ...) -> None: ... def __hash__(self) -> int: ...