MCPcopy Index your code
hub / github.com/MongoEngine/mongoengine / __init__

Method __init__

mongoengine/fields.py:714–725  ·  view source on GitHub ↗
(self, document_type, **kwargs)

Source from the content-addressed store, hash-verified

712 """
713
714 def __init__(self, document_type, **kwargs):
715 if not (
716 isinstance(document_type, str)
717 or issubclass(document_type, EmbeddedDocument)
718 ):
719 self.error(
720 "Invalid embedded document class provided to an "
721 "EmbeddedDocumentField"
722 )
723
724 self.document_type_obj = document_type
725 super().__init__(**kwargs)
726
727 @property
728 def document_type(self):

Callers

nothing calls this directly

Calls 2

errorMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected