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

Method update

pymongo/common.py:1055–1061  ·  view source on GitHub ↗
(self, other: Mapping[str, Any])

Source from the content-addressed store, hash-verified

1053 return default
1054
1055 def update(self, other: Mapping[str, Any]) -> None: # type: ignore[override]
1056 if isinstance(other, _CaseInsensitiveDictionary):
1057 for key in other:
1058 self[other.cased_key(key)] = other[key]
1059 else:
1060 for key in other:
1061 self[key] = other[key]
1062
1063 def cased_key(self, key: str) -> Any:
1064 return self.__casedkeys[key.lower()]

Callers 15

__init__Method · 0.95
__init__Method · 0.45
_check_command_responseFunction · 0.45
_public_key_hashFunction · 0.45
_validate_uriFunction · 0.45
common.pyFile · 0.45
__init__Method · 0.45
_gen_find_commandFunction · 0.45
get_cursorMethod · 0.45
_commandMethod · 0.45
_list_collectionsMethod · 0.45

Calls 1

cased_keyMethod · 0.80

Tested by

no test coverage detected