Skip to content

Commit 25a3e48

Browse files
committed
Annotate datetime.strptime()
1 parent f656dbb commit 25a3e48

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/datetime.pyi

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -386,7 +386,7 @@ class datetime(date, Generic[_TzInfoT]):
386386
def astimezone(self, tz: _TzInfo | None = None) -> datetime[_TzInfo]: ...
387387
def isoformat(self, sep: str = ..., timespec: str = ...) -> str: ...
388388
@classmethod
389-
def strptime(cls, date_string: str, format: str, /) -> Self: ...
389+
def strptime(cls, date_string: str, format: str, /) -> datetime[_TzInfo | None]: ...
390390
def utcoffset(self) -> timedelta | None: ...
391391
def tzname(self) -> str | None: ...
392392
def dst(self) -> timedelta | None: ...

0 commit comments

Comments
 (0)