(func)
return wrapper
Decorator. Set pyarrow cpu_count the same as NUMBA_NUM_THREADS.
Decorator. Set pyarrow cpu_count the same as NUMBA_NUM_THREADS.
Decorator . Set pyarrow cpu_count the same as NUMBA_NUM_THREADS .
def pyarrow_cpu_count_equal_numba_num_treads(func):
    """Decorator. Set pyarrow cpu_count the same as NUMBA_NUM_THREADS."""

    @functools.wraps(func)
    def wrapper(*args, **kwargs):
        with pyarrow_cpu_count(numba.config.NUMBA_NUM_THREADS):
            return func(*args, **kwargs)

    return wrapper
def pyarrow_cpu_count_equal_numba_num_treads ( func ) : @ functools . wraps ( func ) def wrapper ( * args , * * kwargs ) : with pyarrow_cpu_count ( numba . config . NUMBA_NUM_THREADS ) : return func ( * args , * * kwargs ) return wrapper