MCPcopy Index your code
hub / github.com/datacamp/pythonwhat / update_child_calls

Method update_child_calls

pythonwhat/probe.py:129–134  ·  view source on GitHub ↗

Replace child nodes on original function call with their partials

(self)

Source from the content-addressed store, hash-verified

127 return state_partial(self.data["func"], *ba.args[1:], **ba.kwargs)
128
129 def update_child_calls(self):
130 """Replace child nodes on original function call with their partials"""
131
132 for node in filter(lambda n: len(n.arg_name), self.child_list):
133 self.data["bound_args"].arguments[node.arg_name] = node.partial()
134 self.updated = True
135
136 def remove_child(self, node):
137 index = self.child_list.index(node)

Callers 2

wrapperFunction · 0.45
__call__Method · 0.45

Calls 1

partialMethod · 0.45

Tested by

no test coverage detected