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

Function _element_to_dict

bson/__init__.py:536–547  ·  view source on GitHub ↗
(
        data: Any,
        view: Any,  # noqa: ARG001
        position: int,
        obj_end: int,
        opts: CodecOptions[Any],
        raw_array: bool = False,
    )

Source from the content-addressed store, hash-verified

534if _USE_C:
535
536 def _element_to_dict(
537 data: Any,
538 view: Any, # noqa: ARG001
539 position: int,
540 obj_end: int,
541 opts: CodecOptions[Any],
542 raw_array: bool = False,
543 ) -> Tuple[str, Any, int]:
544 return cast(
545 "Tuple[str, Any, int]",
546 _cbson._element_to_dict(data, position, obj_end, opts, raw_array),
547 )
548
549else:
550

Callers 1

_elements_to_dictFunction · 0.85

Calls 4

_get_c_stringFunction · 0.85
_get_object_sizeFunction · 0.85
_raise_unknown_typeFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected