MCPcopy Index your code
hub / github.com/mongodb/mongo-python-driver / copy

Method copy

bson/son.py:91–94  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

89 dict.__delitem__(self, key)
90
91 def copy(self) -> SON[_Key, _Value]:
92 other: SON[_Key, _Value] = SON()
93 other.update(self)
94 return other
95
96 # TODO this is all from UserDict.DictMixin. it could probably be made more
97 # efficient.

Callers 15

get_mock_overload_errorFunction · 0.80
sanitize_cmdFunction · 0.80
sanitize_replyFunction · 0.80
run_scenarioMethod · 0.80
assertEqualWriteErrorMethod · 0.80
client_optionsMethod · 0.80
uriMethod · 0.80
_async_mongo_clientMethod · 0.80

Calls 2

updateMethod · 0.95
SONClass · 0.85

Tested by 15

get_mock_overload_errorFunction · 0.64
run_scenarioMethod · 0.64
assertEqualWriteErrorMethod · 0.64
test_pickleMethod · 0.64
test_constantsMethod · 0.64
session_idsFunction · 0.64
setUpMethod · 0.64
tearDownMethod · 0.64
_test_opsMethod · 0.64