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

Function wrapper

python/pyarrow/compute.py:246–254  ·  view source on GitHub ↗
(*args, memory_pool=None)

Source from the content-addressed store, hash-verified

244def _make_generic_wrapper(func_name, func, options_class, arity):
245 if options_class is None:
246 def wrapper(*args, memory_pool=None):
247 if arity is not Ellipsis and len(args) != arity:
248 raise TypeError(
249 f"{func_name} takes {arity} positional argument(s), "
250 f"but {len(args)} were given"
251 )
252 if args and isinstance(args[0], Expression):
253 return Expression._call(func_name, list(args))
254 return func.call(args, None, memory_pool)
255 else:
256 def wrapper(*args, memory_pool=None, options=None, **kwargs):
257 if arity is not Ellipsis:

Callers

nothing calls this directly

Calls 5

lenFunction · 0.85
listFunction · 0.85
_handle_optionsFunction · 0.85
callMethod · 0.80
TypeErrorFunction · 0.50

Tested by

no test coverage detected