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

Method __new__

bson/codec_options.py:257–267  ·  view source on GitHub ↗
(
            cls: Type[CodecOptions[_DocumentType]],
            document_class: Optional[Type[_DocumentType]] = ...,
            tz_aware: bool = ...,
            uuid_representation: Optional[int] = ...,
            unicode_decode_error_handler: Optional[str] = ...,
            tzinfo: Optional[datetime.tzinfo] = ...,
            type_registry: Optional[TypeRegistry] = ...,
            datetime_conversion: Optional[int] = ...,
        )

Source from the content-addressed store, hash-verified

255 datetime_conversion: Optional[int]
256
257 def __new__(
258 cls: Type[CodecOptions[_DocumentType]],
259 document_class: Optional[Type[_DocumentType]] = ...,
260 tz_aware: bool = ...,
261 uuid_representation: Optional[int] = ...,
262 unicode_decode_error_handler: Optional[str] = ...,
263 tzinfo: Optional[datetime.tzinfo] = ...,
264 type_registry: Optional[TypeRegistry] = ...,
265 datetime_conversion: Optional[int] = ...,
266 ) -> CodecOptions[_DocumentType]:
267 ...
268
269 # CodecOptions API
270 def with_options(self, **kwargs: Any) -> CodecOptions[Any]:

Callers

nothing calls this directly

Calls 2

_raw_document_classFunction · 0.85
TypeRegistryClass · 0.85

Tested by

no test coverage detected