diff --git a/stdlib/2.7/datetime.pyi b/stdlib/2.7/datetime.pyi index ef4f9a622ce8..5c4485db1d01 100644 --- a/stdlib/2.7/datetime.pyi +++ b/stdlib/2.7/datetime.pyi @@ -94,7 +94,7 @@ class time: def isoformat(self) -> str: ... def strftime(self, fmt: str) -> str: ... def __format__(self, fmt: str) -> str: ... - def utcoffset(self) -> Optional[int]: ... + def utcoffset(self) -> Optional[timedelta]: ... def tzname(self) -> Optional[str]: ... def dst(self) -> Optional[int]: ... def replace(self, hour: int = ..., minute: int = ..., second: int = ..., @@ -203,7 +203,7 @@ class datetime(object): def isoformat(self, sep: str = ...) -> str: ... @classmethod def strptime(cls, date_string: str, format: str) -> datetime: ... - def utcoffset(self) -> Optional[int]: ... + def utcoffset(self) -> Optional[timedelta]: ... def tzname(self) -> Optional[str]: ... def dst(self) -> Optional[int]: ... def __le__(self, other: datetime) -> bool: ... diff --git a/stdlib/3/datetime.pyi b/stdlib/3/datetime.pyi index 382a587b980a..600bf22f6ca9 100644 --- a/stdlib/3/datetime.pyi +++ b/stdlib/3/datetime.pyi @@ -93,7 +93,7 @@ class time: def isoformat(self) -> str: ... def strftime(self, fmt: str) -> str: ... def __format__(self, fmt: str) -> str: ... - def utcoffset(self) -> Optional[int]: ... + def utcoffset(self) -> Optional[timedelta]: ... def tzname(self) -> Optional[str]: ... def dst(self) -> Optional[int]: ... def replace(self, hour: int = ..., minute: int = ..., second: int = ..., @@ -203,7 +203,7 @@ class datetime: def isoformat(self, sep: str = ...) -> str: ... @classmethod def strptime(cls, date_string: str, format: str) -> datetime: ... - def utcoffset(self) -> Optional[int]: ... + def utcoffset(self) -> Optional[timedelta]: ... def tzname(self) -> Optional[str]: ... def dst(self) -> Optional[int]: ... def __le__(self, other: datetime) -> bool: ...