MCPcopy Index your code
hub / github.com/pyinvoke/invoke / clone_data

Method clone_data

invoke/tasks.py:445–456  ·  view source on GitHub ↗

Return keyword args suitable for cloning this call into another. .. versionadded:: 1.1

(self)

Source from the content-addressed store, hash-verified

443 return Context(config=config, remainder=core_parse_result.remainder)
444
445 def clone_data(self) -> Dict[str, Any]:
446 """
447 Return keyword args suitable for cloning this call into another.
448
449 .. versionadded:: 1.1
450 """
451 return dict(
452 task=self.task,
453 called_as=self.called_as,
454 args=deepcopy(self.args),
455 kwargs=deepcopy(self.kwargs),
456 )
457
458 def clone(
459 self,

Callers 1

cloneMethod · 0.95

Calls 1

deepcopyClass · 0.85

Tested by

no test coverage detected