MCPcopy Index your code
hub / github.com/danielgtaylor/python-betterproto / __deepcopy__

Method __deepcopy__

src/betterproto/__init__.py:885–891  ·  view source on GitHub ↗
(self: T, _: Any = {})

Source from the content-addressed store, hash-verified

883 )
884
885 def __deepcopy__(self: T, _: Any = {}) -> T:
886 kwargs = {}
887 for name in self._betterproto.sorted_field_names:
888 value = self.__raw_get(name)
889 if value is not PLACEHOLDER:
890 kwargs[name] = deepcopy(value)
891 return self.__class__(**kwargs) # type: ignore
892
893 def __copy__(self: T, _: Any = {}) -> T:
894 kwargs = {}

Callers

nothing calls this directly

Calls 1

__raw_getMethod · 0.95

Tested by

no test coverage detected