MCPcopy Index your code
hub / github.com/data-apis/python-record-api / process

Method process

record_api/core.py:362–370  ·  view source on GitHub ↗
(
        self, keyed_args: Tuple, fn: Callable, args: Iterable, kwargs: Mapping = {}
    )

Source from the content-addressed store, hash-verified

360 return l
361
362 def process(
363 self, keyed_args: Tuple, fn: Callable, args: Iterable, kwargs: Mapping = {}
364 ) -> None:
365 # Note: This take args as an iterable, instead of as a varargs, so that if we don't trace we don't have to expand the iterable
366 if self.tracer.should_trace(*keyed_args):
367 filename = self.frame.f_code.co_filename
368 line = self.frame.f_lineno
369 # Don't pass kwargs if not used, so we can more easily test mock calls
370 log_call(f"{filename}:{line}", fn, tuple(args), *((kwargs,) if kwargs else ()))
371
372 def __call__(self) -> None:
373 """

Callers 14

__call__Method · 0.95
op_BINARY_SUBSCRMethod · 0.95
op_STORE_SUBSCRMethod · 0.95
op_DELETE_SUBSCRMethod · 0.95
op_LOAD_ATTRMethod · 0.95
op_STORE_ATTRMethod · 0.95
op_DELETE_ATTRMethod · 0.95
op_BUILD_TUPLE_UNPACKMethod · 0.95
op_COMPARE_OPMethod · 0.95
op_CALL_FUNCTIONMethod · 0.95
op_CALL_FUNCTION_KWMethod · 0.95

Calls 2

log_callFunction · 0.85
should_traceMethod · 0.80

Tested by

no test coverage detected