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

Function _raw_document_class

bson/codec_options.py:47–50  ·  view source on GitHub ↗

Determine if a document_class is a RawBSONDocument class.

(document_class: Any)

Source from the content-addressed store, hash-verified

45
46
47def _raw_document_class(document_class: Any) -> bool:
48 """Determine if a document_class is a RawBSONDocument class."""
49 marker = getattr(document_class, "_type_marker", None)
50 return marker == _RAW_BSON_DOCUMENT_MARKER
51
52
53class TypeEncoder(abc.ABC):

Callers 7

_get_objectFunction · 0.90
_bson_to_dictFunction · 0.90
_encode_mappingFunction · 0.90
_dict_to_bsonFunction · 0.90
_decode_allFunction · 0.90
_decode_selectiveFunction · 0.90
__new__Method · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected