MCPcopy Index your code
hub / github.com/dataease/SQLBot / deepcopy_ignore_extra

Function deepcopy_ignore_extra

backend/common/utils/utils.py:46–53  ·  view source on GitHub ↗
(src, dest)

Source from the content-addressed store, hash-verified

44
45
46def deepcopy_ignore_extra(src, dest):
47 import copy
48 for attr in vars(src):
49 if hasattr(dest, attr):
50 src_value = getattr(src, attr)
51 dest_value = copy.deepcopy(src_value) # deep copy
52 setattr(dest, attr, dest_value)
53 return dest
54
55
56def extract_nested_json(text):

Callers 1

create_dsFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected