diff options
-rw-r--r-- | numpy/__init__.pxd | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/numpy/__init__.pxd b/numpy/__init__.pxd index fcc4fc8cb..c288ba223 100644 --- a/numpy/__init__.pxd +++ b/numpy/__init__.pxd @@ -835,6 +835,11 @@ cdef extern from "numpy/ndarrayobject.h": ctypedef int64_t npy_timedelta ctypedef int64_t npy_datetime +cdef extern from "numpy/ndarraytypes.h": + ctypedef struct PyArray_DatetimeMetaData: + NPY_DATETIMEUNIT base + int64_t num + cdef extern from "numpy/arrayscalars.h": ctypedef struct PyDatetimeScalarObject: # PyObject_HEAD @@ -846,11 +851,6 @@ cdef extern from "numpy/arrayscalars.h": npy_timedelta obval PyArray_DatetimeMetaData obmeta -cdef extern from "numpy/ndarraytypes.h": - ctypedef struct PyArray_DatetimeMetaData: - NPY_DATETIMEUNIT base - int64_t num - ctypedef enum NPY_DATETIMEUNIT: NPY_FR_Y NPY_FR_M |