MCPcopy
hub / github.com/pallets/werkzeug / deepcopy

Method deepcopy

src/werkzeug/datastructures/structures.py:396–398  ·  view source on GitHub ↗

Return a deep copy of this object.

(self, memo: t.Any = None)

Source from the content-addressed store, hash-verified

394 return self.__class__(self)
395
396 def deepcopy(self, memo: t.Any = None) -> te.Self:
397 """Return a deep copy of this object."""
398 return self.__class__(deepcopy(self.to_dict(flat=False), memo))
399
400 @t.overload
401 def to_dict(self, flat: t.Literal[True] = ...) -> dict[K, V]: ...

Callers 3

__deepcopy__Method · 0.95
test_proxy_copyFunction · 0.80
test_basic_interfaceMethod · 0.80

Calls 1

to_dictMethod · 0.95

Tested by 2

test_proxy_copyFunction · 0.64
test_basic_interfaceMethod · 0.64