MCPcopy Index your code
hub / github.com/python/cpython / copy

Method copy

Tools/clinic/libclinic/function.py:186–192  ·  view source on GitHub ↗
(self, **overrides: Any)

Source from the content-addressed store, hash-verified

184 return f'<clinic.Function {self.name!r}>'
185
186 def copy(self, **overrides: Any) -> Function:
187 f = dc.replace(self, **overrides)
188 f.parameters = {
189 name: value.copy(function=f)
190 for name, value in f.parameters.items()
191 }
192 return f
193
194
195@dc.dataclass(repr=False, slots=True)

Callers 5

create_parser_namespaceFunction · 0.45
render_parametersMethod · 0.45
copyMethod · 0.45
directive_outputMethod · 0.45
parse_cloned_functionMethod · 0.45

Calls 2

replaceMethod · 0.45
itemsMethod · 0.45

Tested by

no test coverage detected