Skip to content

Commit

Permalink
Backport PR #59836 on branch 2.2.x (BLD: Fix bad Cython annotation) (#…
Browse files Browse the repository at this point in the history
…59837)

Backport PR #59836: BLD: Fix bad Cython annotation

Co-authored-by: Thomas Li <[email protected]>
  • Loading branch information
meeseeksmachine and lithomas1 authored Sep 18, 2024
1 parent f7b6378 commit 8d67e77
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/np_datetime.pxd
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ cdef int string_to_dts(
int* out_local,
int* out_tzoffset,
bint want_exc,
format: str | None = *,
str format = *,
bint exact = *
) except? -1

Expand Down
2 changes: 1 addition & 1 deletion pandas/_libs/tslibs/np_datetime.pyx
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ cdef int string_to_dts(
int* out_local,
int* out_tzoffset,
bint want_exc,
format: str | None=None,
str format=None,
bint exact=True,
) except? -1:
cdef:
Expand Down

0 comments on commit 8d67e77

Please sign in to comment.