Skip to content

Commit 457de68

Browse files
committed
fix ignored exception, closes pandas-dev#22067
1 parent ce98e8e commit 457de68

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/_libs/tslibs/period.pyx

+2-2
Original file line numberDiff line numberDiff line change
@@ -1920,8 +1920,8 @@ class Period(_Period):
19201920
return cls._from_ordinal(ordinal, freq)
19211921

19221922

1923-
cdef int64_t _ordinal_from_fields(year, month, quarter, day,
1924-
hour, minute, second, freq):
1923+
cdef int64_t _ordinal_from_fields(int year, int month, quarter, int day,
1924+
int hour, int minute, int second, freq):
19251925
base, mult = get_freq_code(freq)
19261926
if quarter is not None:
19271927
year, month = quarter_to_myear(year, quarter, freq)

0 commit comments

Comments
 (0)