Skip to content

Commit 8d67e77

Browse files
Backport PR #59836 on branch 2.2.x (BLD: Fix bad Cython annotation) (#59837)
Backport PR #59836: BLD: Fix bad Cython annotation Co-authored-by: Thomas Li <[email protected]>
1 parent f7b6378 commit 8d67e77

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/_libs/tslibs/np_datetime.pxd

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ cdef int string_to_dts(
8989
int* out_local,
9090
int* out_tzoffset,
9191
bint want_exc,
92-
format: str | None = *,
92+
str format = *,
9393
bint exact = *
9494
) except? -1
9595

pandas/_libs/tslibs/np_datetime.pyx

+1-1
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ cdef int string_to_dts(
331331
int* out_local,
332332
int* out_tzoffset,
333333
bint want_exc,
334-
format: str | None=None,
334+
str format=None,
335335
bint exact=True,
336336
) except? -1:
337337
cdef:

0 commit comments

Comments
 (0)