MCPcopy Create free account
hub / github.com/ScrapeGraphAI/Scrapegraph-ai / WithoutDict

Class WithoutDict

tests/utils/copy_utils_test.py:26–36  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

24
25
26class WithoutDict:
27 __slots__ = ["value"]
28
29 def __init__(self, value):
30 self.value = value
31
32 def __deepcopy__(self, memo):
33 raise TypeError("Forcing shallow copy fallback")
34
35 def __copy__(self):
36 return self
37
38
39class NonCopyableObject:

Callers 1

Calls

no outgoing calls

Tested by 1