MCPcopy Create free account
hub / github.com/apache/arrow / _wrap_function

Function _wrap_function

python/pyarrow/compute.py:298–311  ·  view source on GitHub ↗
(name, func)

Source from the content-addressed store, hash-verified

296
297
298def _wrap_function(name, func):
299 options_class = _get_options_class(func)
300 arg_names = _get_arg_names(func)
301 has_vararg = arg_names and arg_names[-1].startswith('*')
302 if has_vararg:
303 var_arg_names = [arg_names.pop().lstrip('*')]
304 else:
305 var_arg_names = []
306
307 wrapper = _make_generic_wrapper(
308 name, func, options_class, arity=func.arity)
309 wrapper.__signature__ = _make_signature(arg_names, var_arg_names,
310 options_class)
311 return _decorate_compute_function(wrapper, name, func, options_class)
312
313
314def _make_global_functions():

Callers 1

_make_global_functionsFunction · 0.85

Calls 5

_get_options_classFunction · 0.85
_get_arg_namesFunction · 0.85
_make_generic_wrapperFunction · 0.85
_make_signatureFunction · 0.85

Tested by

no test coverage detected