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

Method partial

pythonwhat/probe.py:124–127  ·  view source on GitHub ↗

Return partial of original function call

(self)

Source from the content-addressed store, hash-verified

122 yield c
123
124 def partial(self):
125 """Return partial of original function call"""
126 ba = self.data["bound_args"]
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"""

Callers 2

update_child_callsMethod · 0.45
partialMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected