Skip to content

Commit dc12757

Browse files
pilkibunquintusdias
pilkibun
authored andcommitted
CLN: fix build warning in c_timestamp.pyx (pandas-dev#27423)
1 parent 29e14c0 commit dc12757

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/c_timestamp.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ from cpython cimport (PyObject_RichCompareBool, PyObject_RichCompare,
1919

2020
import numpy as np
2121
cimport numpy as cnp
22-
from numpy cimport int64_t, int8_t
22+
from numpy cimport int64_t, int8_t, uint8_t, ndarray
2323
cnp.import_array()
2424

2525
from cpython.datetime cimport (datetime,
@@ -320,7 +320,7 @@ cdef class _Timestamp(datetime):
320320
cdef:
321321
int64_t val
322322
dict kwds
323-
int8_t out[1]
323+
ndarray[uint8_t, cast=True] out
324324
int month_kw
325325

326326
freq = self.freq

0 commit comments

Comments
 (0)