Skip to content

Commit 61896fd

Browse files
committed
change isoformat and add type ignore
1 parent 1bf85c2 commit 61896fd

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

pandas-stubs/_libs/tslibs/timestamps.pyi

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -157,10 +157,18 @@ class Timestamp(datetime, SupportsIndex):
157157
) -> Timestamp: ...
158158
def astimezone(self, tz: _tzinfo | None = ...) -> Self: ...
159159
def ctime(self) -> str: ...
160-
def isoformat(
160+
def isoformat( # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]
161161
self,
162162
sep: str = "T",
163-
timespec: str = "auto",
163+
timespec: Literal[
164+
"auto",
165+
"hours",
166+
"minutes",
167+
"seconds",
168+
"milliseconds",
169+
"microseconds",
170+
"nanoseconds",
171+
] = "auto",
164172
) -> str: ...
165173
@classmethod
166174
def strptime(cls, date_string: Never, format: Never) -> Never: ... # type: ignore[override] # pyright: ignore[reportIncompatibleMethodOverride]

0 commit comments

Comments
 (0)