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

Method copy_with

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

Source from the content-addressed store, hash-verified

1766
1767class _ConcatenateGenericAlias(_GenericAlias, _root=True):
1768 def copy_with(self, params):
1769 if isinstance(params[-1], (list, tuple)):
1770 return (*params[:-1], *params[-1])
1771 if isinstance(params[-1], _ConcatenateGenericAlias):
1772 params = (*params[:-1], *params[-1].__args__)
1773 return super().copy_with(params)
1774
1775
1776@_SpecialForm

Callers

nothing calls this directly

Calls 2

superClass · 0.85
copy_withMethod · 0.45

Tested by

no test coverage detected