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

Method get

bson/son.py:178–184  ·  view source on GitHub ↗
(  # type: ignore[override]
        self, key: _Key, default: Optional[Union[_Value, _T]] = None
    )

Source from the content-addressed store, hash-verified

176 self.update(kwargs)
177
178 def get( # type: ignore[override]
179 self, key: _Key, default: Optional[Union[_Value, _T]] = None
180 ) -> Union[_Value, _T, None]:
181 try:
182 return self[key]
183 except KeyError:
184 return default
185
186 def __eq__(self, other: Any) -> bool:
187 """Comparison to another SON is order-sensitive while comparison to a

Callers 14

runMethod · 0.45
build_extensionMethod · 0.45
_setup.pyFile · 0.45
_arguments_reprMethod · 0.45
_get_objectFunction · 0.45
_get_arrayFunction · 0.45
_element_to_dictFunction · 0.45
_name_value_to_bsonFunction · 0.45
__new__Method · 0.45
with_optionsMethod · 0.45
_parse_legacy_regexFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected