Skip to content

Commit a4bac18

Browse files
committed
Silence pyright warning for untyped decorator
1 parent cf3e392 commit a4bac18

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

pandas/core/_numba/executor.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def generate_apply_looper(func, decorator: Callable):
2525
numba = import_optional_dependency("numba")
2626
nb_compat_func = jit_user_function(func)
2727

28-
@decorator
28+
@decorator # pyright: ignore[reportUntypedFunctionDecorator]
2929
def nb_looper(values, axis, *args):
3030
# Operate on the first row/col in order to get
3131
# the output shape

pandas/core/apply.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -347,7 +347,7 @@ def generate_numba_apply_func(
347347

348348
jitted_udf = numba.extending.register_jitable(func)
349349

350-
@decorator
350+
@decorator # pyright: ignore[reportUntypedFunctionDecorator]
351351
def numba_func(values, col_names_index, index, *args):
352352
results = {}
353353
for i in range(values.shape[1 - axis]):

0 commit comments

Comments
 (0)