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

Method copy_with

typing_extensions/src/typing_extensions.py:909–912  ·  view source on GitHub ↗
(self, params)

Source from the content-addressed store, hash-verified

907 self.__metadata__ = metadata
908
909 def copy_with(self, params):
910 assert len(params) == 1
911 new_type = params[0]
912 return _AnnotatedAlias(new_type, self.__metadata__)
913
914 def __repr__(self):
915 return (f"typing_extensions.Annotated[{typing._type_repr(self.__origin__)}, "

Callers 1

_strip_extrasFunction · 0.80

Calls 1

_AnnotatedAliasClass · 0.85

Tested by

no test coverage detected