Skip to content

Commit 6ace7ef

Browse files
fixing linting errors in pxi.in files (linting was broken)
1 parent 1811954 commit 6ace7ef

5 files changed

+13
-8
lines changed

pandas/_libs/algos_common_helper.pxi.in

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,7 @@ def get_dispatch(dtypes):
150150

151151
{{for name, c_type, dtype in get_dispatch(dtypes)}}
152152

153+
153154
def ensure_{{name}}(object arr, copy=True):
154155
if util.is_array(arr):
155156
if (<ndarray> arr).descr.type_num == NPY_{{c_type}}:

pandas/_libs/groupby_helper.pxi.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -351,6 +351,7 @@ def group_last_{{name}}(ndarray[{{dest_type2}}, ndim=2] out,
351351
else:
352352
out[i, j] = resx[i, j]
353353

354+
354355
@cython.wraparound(False)
355356
@cython.boundscheck(False)
356357
def group_nth_{{name}}(ndarray[{{dest_type2}}, ndim=2] out,
@@ -410,6 +411,8 @@ def group_nth_{{name}}(ndarray[{{dest_type2}}, ndim=2] out,
410411

411412

412413
{{if name != 'object'}}
414+
415+
413416
@cython.boundscheck(False)
414417
@cython.wraparound(False)
415418
def group_rank_{{name}}(ndarray[float64_t, ndim=2] out,

pandas/_libs/hashtable_class_helper.pxi.in

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -466,12 +466,12 @@ cdef class {{name}}HashTable(HashTable):
466466
@cython.boundscheck(False)
467467
def unique(self, const {{dtype}}_t[:] values):
468468
cdef:
469-
Py_ssize_t i, n = len(values)
470-
int ret = 0
471-
{{dtype}}_t val
472-
khiter_t k
473-
{{name}}Vector uniques = {{name}}Vector()
474-
{{name}}VectorData *ud
469+
Py_ssize_t i, n = len(values)
470+
int ret = 0
471+
{{dtype}}_t val
472+
khiter_t k
473+
{{name}}Vector uniques = {{name}}Vector()
474+
{{name}}VectorData *ud
475475

476476
ud = uniques.data
477477

pandas/_libs/hashtable_func_helper.pxi.in

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ cpdef value_count_{{dtype}}({{scalar}}[:] values, bint dropna):
128128
@cython.boundscheck(False)
129129
{{if dtype == 'object'}}
130130

131+
131132
def duplicated_{{dtype}}(ndarray[{{dtype}}] values, object keep='first'):
132133
{{else}}
133134

@@ -210,9 +211,11 @@ def duplicated_{{dtype}}({{scalar}}[:] values, object keep='first'):
210211
@cython.boundscheck(False)
211212
{{if dtype == 'object'}}
212213

214+
213215
def ismember_{{dtype}}(ndarray[{{scalar}}] arr, ndarray[{{scalar}}] values):
214216
{{else}}
215217

218+
216219
def ismember_{{dtype}}({{scalar}}[:] arr, {{scalar}}[:] values):
217220
{{endif}}
218221

@@ -236,7 +239,6 @@ def ismember_{{dtype}}({{scalar}}[:] arr, {{scalar}}[:] values):
236239
{{scalar}} val
237240
kh_{{ttype}}_t * table = kh_init_{{ttype}}()
238241

239-
240242
# construct the table
241243
n = len(values)
242244
kh_resize_{{ttype}}(table, min(n, len(values)))

pandas/_libs/join_func_helper.pxi.in

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ on_dtypes = ['uint8_t', 'uint16_t', 'uint32_t', 'uint64_t',
2525
}}
2626

2727

28-
2928
{{for table_type, by_dtype in by_dtypes}}
3029
{{for on_dtype in on_dtypes}}
3130

0 commit comments

Comments
 (0)