diff --git a/stdlib/2/datetime.pyi b/stdlib/2/datetime.pyi index eb915410c..339eaf627 100644 --- a/stdlib/2/datetime.pyi +++ b/stdlib/2/datetime.pyi @@ -89,7 +89,7 @@ class time: def tzname(self) -> Optional[str]: ... def dst(self) -> Optional[int]: ... def replace(self, hour: int = ..., minute: int = ..., second: int = ..., - microsecond: int = ..., tzinfo: Union[_tzinfo, bool] = ...) -> time: ... + microsecond: int = ..., tzinfo: Optional[_tzinfo] = ...) -> time: ... _date = date _time = time @@ -185,7 +185,7 @@ class datetime(object): def timetz(self) -> _time: ... def replace(self, year: int = ..., month: int = ..., day: int = ..., hour: int = ..., minute: int = ..., second: int = ..., microsecond: int = ..., tzinfo: - Union[_tzinfo, bool] = ...) -> datetime: ... + Optional[_tzinfo] = ...) -> datetime: ... def astimezone(self, tz: _tzinfo) -> datetime: ... def ctime(self) -> str: ... def isoformat(self, sep: str = ...) -> str: ...