(*args, memory_pool=None)
| 244 | def _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: |
nothing calls this directly
no test coverage detected