Skip to content

Commit f528fed

Browse files
author
MarcoGorelli
committed
reuse enum from C definition
1 parent bc8e0a0 commit f528fed

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

pandas/_libs/tslibs/np_datetime.pxd

+6-5
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,6 @@ from numpy cimport (
99
)
1010

1111

12-
cdef enum Exact:
13-
INEXACT_MATH
14-
EXACT_MATCH
15-
NO_MATCH
16-
1712
# TODO(cython3): most of these can be cimported directly from numpy
1813
cdef extern from "numpy/ndarrayobject.h":
1914
ctypedef int64_t npy_timedelta
@@ -125,3 +120,9 @@ cdef int64_t convert_reso(
125120
NPY_DATETIMEUNIT to_reso,
126121
bint round_ok,
127122
) except? -1
123+
124+
cdef extern from "src/datetime/np_datetime_strings.h":
125+
cdef enum Exact:
126+
INEXACT_MATCH
127+
EXACT_MATCH
128+
NO_MATCH

0 commit comments

Comments
 (0)