MCPcopy Create free account
hub / github.com/FastMAS/KVCOMM / __deepcopy__

Method __deepcopy__

KVCOMM/graph/graph.py:455–463  ·  view source on GitHub ↗
(self, memo)

Source from the content-addressed store, hash-verified

453 node.lock = asyncio.Lock()
454
455 def __deepcopy__(self, memo):
456 cls = self.__class__
457 result = cls.__new__(cls)
458 memo[id(self)] = result
459 state = self.__getstate__()
460
461 copied_state = copy.deepcopy(state, memo)
462 result.__setstate__(copied_state)
463 return result

Callers

nothing calls this directly

Calls 2

__getstate__Method · 0.95
__setstate__Method · 0.45

Tested by

no test coverage detected