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

Function _wrap_function

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

Source from the content-addressed store, hash-verified

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