MCPcopy Index your code
hub / github.com/hyperopt/hyperopt / apply

Function apply

hyperopt/pyll/base.py:524–528  ·  view source on GitHub ↗
(name, *args, **kwargs)

Source from the content-addressed store, hash-verified

522
523
524def apply(name, *args, **kwargs):
525 pos_args = [as_apply(a) for a in args]
526 named_args = [(k, as_apply(v)) for (k, v) in list(kwargs.items())]
527 named_args.sort()
528 return Apply(name, pos_args=pos_args, named_args=named_args, o_len=None)
529
530
531class Literal(Apply):

Callers 1

partialFunction · 0.85

Calls 3

as_applyFunction · 0.85
ApplyClass · 0.85
itemsMethod · 0.80

Tested by

no test coverage detected