MCPcopy Index your code
hub / github.com/clips/pattern / MyObject

Class MyObject

test/test_graph.py:17–21  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

15 def test_deepcopy(self):
16 # Object with a copy() method are responsible for deep-copying themselves.
17 class MyObject:
18 def __init__(self, i):
19 self.i = i
20 def copy(self):
21 return MyObject(graph.deepcopy(self.i))
22 # Assert deep copy for different types.
23 for o1 in (
24 None, True, False,

Callers 2

copyMethod · 0.85
test_deepcopyMethod · 0.85

Calls

no outgoing calls

Tested by 2

copyMethod · 0.68
test_deepcopyMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…