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

Function wrapper

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

Source from the content-addressed store, hash-verified

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