MCPcopy Index your code
hub / github.com/RustPython/RustPython / copy_with

Method copy_with

Lib/typing.py:1732–1737  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

1730
1731class _ConcatenateGenericAlias(_GenericAlias, _root=True):
1732 def copy_with(self, params):
1733 if isinstance(params[-1], (list, tuple)):
1734 return (*params[:-1], *params[-1])
1735 if isinstance(params[-1], _ConcatenateGenericAlias):
1736 params = (*params[:-1], *params[-1].__args__)
1737 return super().copy_with(params)
1738
1739
1740@_SpecialForm

Callers

nothing calls this directly

Calls 3

isinstanceFunction · 0.85
superClass · 0.85
copy_withMethod · 0.45

Tested by

no test coverage detected