diff --git a/third_party/2and3/pytz/__init__.pyi b/third_party/2and3/pytz/__init__.pyi index dc9c8fc4a332..6bc917e5e573 100644 --- a/third_party/2and3/pytz/__init__.pyi +++ b/third_party/2and3/pytz/__init__.pyi @@ -11,7 +11,7 @@ country_timezones = ... # type: Dict country_names = ... # type: Dict -class UTC(dt.tzinfo): +class _UTCclass(dt.tzinfo): zone = ... # type: str def fromutc(self, dt: dt.datetime) -> dt.datetime: ... def utcoffset(self, dt: Optional[dt.datetime]) -> dt.timedelta: ... # type: ignore @@ -20,6 +20,7 @@ class UTC(dt.tzinfo): def localize(self, dt: dt.datetime, is_dst: bool=...) -> dt.datetime: ... def normalize(self, dt: dt.datetime, is_dst: bool=...) -> dt.datetime: ... -utc = ... # type: UTC +utc = ... # type: _UTCclass +UTC = ... # type: _UTCclass -def timezone(zone: str) -> UTC: ... +def timezone(zone: str) -> dt.tzinfo: ...