Skip to content

Commit 669d99b

Browse files
committed
Fix linting errors re: line length
1 parent 1f24847 commit 669d99b

File tree

1 file changed

+21
-11
lines changed

1 file changed

+21
-11
lines changed

pandas/_libs/parsers.pyx

+21-11
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ cdef extern from "parser/tokenizer.h":
143143
int64_t *line_start # position in words for start of line
144144
int64_t *line_fields # Number of fields in each line
145145
int64_t lines # Number of lines observed
146-
int64_t file_lines # Number of file lines observed (with bad/skipped)
146+
int64_t file_lines # Number of lines observed (with bad/skipped)
147147
int64_t lines_cap # Vector capacity
148148

149149
# Tokenizing stuff
@@ -210,7 +210,8 @@ cdef extern from "parser/tokenizer.h":
210210
void uint_state_init(uint_state *self)
211211
int uint64_conflict(uint_state *self)
212212

213-
void coliter_setup(coliter_t *it, parser_t *parser, int64_t i, int64_t start) nogil
213+
void coliter_setup(coliter_t *it, parser_t *parser,
214+
int64_t i, int64_t start) nogil
214215
void COLITER_NEXT(coliter_t, const char *) nogil
215216

216217
parser_t* parser_new()
@@ -1702,7 +1703,8 @@ cdef char* cinf = b'inf'
17021703
cdef char* cposinf = b'+inf'
17031704
cdef char* cneginf = b'-inf'
17041705

1705-
cdef _try_double(parser_t *parser, int64_t col, int64_t line_start, int64_t line_end,
1706+
cdef _try_double(parser_t *parser, int64_t col,
1707+
int64_t line_start, int64_t line_end,
17061708
bint na_filter, kh_str_t *na_hashset, object na_flist):
17071709
cdef:
17081710
int error, na_count = 0
@@ -1811,7 +1813,8 @@ cdef inline int _try_double_nogil(parser_t *parser,
18111813

18121814
return 0
18131815

1814-
cdef _try_uint64(parser_t *parser, int64_t col, int64_t line_start, int64_t line_end,
1816+
cdef _try_uint64(parser_t *parser, int64_t col,
1817+
int64_t line_start, int64_t line_end,
18151818
bint na_filter, kh_str_t *na_hashset):
18161819
cdef:
18171820
int error
@@ -1845,7 +1848,8 @@ cdef _try_uint64(parser_t *parser, int64_t col, int64_t line_start, int64_t line
18451848

18461849
return result
18471850

1848-
cdef inline int _try_uint64_nogil(parser_t *parser, int64_t col, int64_t line_start,
1851+
cdef inline int _try_uint64_nogil(parser_t *parser, int64_t col,
1852+
int64_t line_start,
18491853
int64_t line_end, bint na_filter,
18501854
const kh_str_t *na_hashset,
18511855
uint64_t *data, uint_state *state) nogil:
@@ -1882,7 +1886,8 @@ cdef inline int _try_uint64_nogil(parser_t *parser, int64_t col, int64_t line_st
18821886

18831887
return 0
18841888

1885-
cdef _try_int64(parser_t *parser, int64_t col, int64_t line_start, int64_t line_end,
1889+
cdef _try_int64(parser_t *parser, int64_t col,
1890+
int64_t line_start, int64_t line_end,
18861891
bint na_filter, kh_str_t *na_hashset):
18871892
cdef:
18881893
int error, na_count = 0
@@ -1909,7 +1914,8 @@ cdef _try_int64(parser_t *parser, int64_t col, int64_t line_start, int64_t line_
19091914

19101915
return result, na_count
19111916

1912-
cdef inline int _try_int64_nogil(parser_t *parser, int64_t col, int64_t line_start,
1917+
cdef inline int _try_int64_nogil(parser_t *parser, int64_t col,
1918+
int64_t line_start,
19131919
int64_t line_end, bint na_filter,
19141920
const kh_str_t *na_hashset, int64_t NA,
19151921
int64_t *data, int *na_count) nogil:
@@ -1947,7 +1953,8 @@ cdef inline int _try_int64_nogil(parser_t *parser, int64_t col, int64_t line_sta
19471953

19481954
return 0
19491955

1950-
cdef _try_bool(parser_t *parser, int64_t col, int64_t line_start, int64_t line_end,
1956+
cdef _try_bool(parser_t *parser, int64_t col,
1957+
int64_t line_start, int64_t line_end,
19511958
bint na_filter, kh_str_t *na_hashset):
19521959
cdef:
19531960
int na_count
@@ -1969,7 +1976,8 @@ cdef _try_bool(parser_t *parser, int64_t col, int64_t line_start, int64_t line_e
19691976
return None, None
19701977
return result.view(np.bool_), na_count
19711978

1972-
cdef inline int _try_bool_nogil(parser_t *parser, int64_t col, int64_t line_start,
1979+
cdef inline int _try_bool_nogil(parser_t *parser, int64_t col,
1980+
int64_t line_start,
19731981
int64_t line_end, bint na_filter,
19741982
const kh_str_t *na_hashset, uint8_t NA,
19751983
uint8_t *data, int *na_count) nogil:
@@ -2009,7 +2017,8 @@ cdef inline int _try_bool_nogil(parser_t *parser, int64_t col, int64_t line_star
20092017
data += 1
20102018
return 0
20112019

2012-
cdef _try_bool_flex(parser_t *parser, int64_t col, int64_t line_start, int64_t line_end,
2020+
cdef _try_bool_flex(parser_t *parser, int64_t col,
2021+
int64_t line_start, int64_t line_end,
20132022
bint na_filter, const kh_str_t *na_hashset,
20142023
const kh_str_t *true_hashset,
20152024
const kh_str_t *false_hashset):
@@ -2035,7 +2044,8 @@ cdef _try_bool_flex(parser_t *parser, int64_t col, int64_t line_start, int64_t l
20352044
return None, None
20362045
return result.view(np.bool_), na_count
20372046

2038-
cdef inline int _try_bool_flex_nogil(parser_t *parser, int64_t col, int64_t line_start,
2047+
cdef inline int _try_bool_flex_nogil(parser_t *parser, int64_t col,
2048+
int64_t line_start,
20392049
int64_t line_end, bint na_filter,
20402050
const kh_str_t *na_hashset,
20412051
const kh_str_t *true_hashset,

0 commit comments

Comments
 (0)