MCPcopy
hub / github.com/lutzroeder/netron / checkApplyNumInputsRange

Method checkApplyNumInputsRange

source/python.js:17805–17813  ·  view source on GitHub ↗
(apply, min_expected_inputs, max_expected_inputs)

Source from the content-addressed store, hash-verified

17803 }
17804 }
17805 checkApplyNumInputsRange(apply, min_expected_inputs, max_expected_inputs) {
17806 const position_arg_size = apply.args.length;
17807 if (position_arg_size < min_expected_inputs || position_arg_size > max_expected_inputs) {
17808 throw new python.Error('Invalid number of arguments.');
17809 }
17810 if (apply.keywords.length > 0) {
17811 throw new python.Error('Invalid number of keyword arguments.');
17812 }
17813 }
17814 validateAssignLhsExpr(lhs /*, r */) {
17815 let num_normal_assign = 0;
17816 let num_starred = 0;

Callers 1

emitApplySpecialFormMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected