diff --git a/pandas/_libs/parsers.pyx b/pandas/_libs/parsers.pyx index 5f51f48b43ca9..f4e82a729f13c 100644 --- a/pandas/_libs/parsers.pyx +++ b/pandas/_libs/parsers.pyx @@ -228,7 +228,7 @@ cdef extern from "pandas/parser/tokenizer.h": # pick one, depending on whether the converter requires GIL double (*double_converter)(const char *, char **, char, char, char, - int, int *, int *) nogil + int, int *, int *) noexcept nogil # error handling char *warn_msg @@ -1605,7 +1605,7 @@ cdef _categorical_convert(parser_t *parser, int64_t col, # -> ndarray[f'|S{width}'] cdef _to_fw_string(parser_t *parser, int64_t col, int64_t line_start, - int64_t line_end, int64_t width): + int64_t line_end, int64_t width) noexcept: cdef: char *data ndarray result @@ -1621,7 +1621,7 @@ cdef _to_fw_string(parser_t *parser, int64_t col, int64_t line_start, cdef void _to_fw_string_nogil(parser_t *parser, int64_t col, int64_t line_start, int64_t line_end, - size_t width, char *data) nogil: + size_t width, char *data) noexcept nogil: cdef: int64_t i coliter_t it @@ -1677,7 +1677,7 @@ cdef _try_double(parser_t *parser, int64_t col, cdef int _try_double_nogil(parser_t *parser, float64_t (*double_converter)( const char *, char **, char, - char, char, int, int *, int *) nogil, + char, char, int, int *, int *) noexcept nogil, int64_t col, int64_t line_start, int64_t line_end, bint na_filter, kh_str_starts_t *na_hashset, bint use_na_flist,