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

Function _parse_binary

bson/json_util.py:793–797  ·  view source on GitHub ↗
(doc: Any, json_options: JSONOptions)

Source from the content-addressed store, hash-verified

791
792
793def _parse_binary(doc: Any, json_options: JSONOptions) -> Union[Binary, uuid.UUID]:
794 if "$type" in doc:
795 return _parse_legacy_binary(doc, json_options)
796 else:
797 return _parse_canonical_binary(doc, json_options)
798
799
800def _parse_timestamp(doc: Any, dummy0: Any) -> Timestamp:

Callers

nothing calls this directly

Calls 2

_parse_legacy_binaryFunction · 0.85
_parse_canonical_binaryFunction · 0.85

Tested by

no test coverage detected