Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/MongoEngine/mongoengine
/ __set__
Method
__set__
mongoengine/fields.py:1655–1656 ·
view source on GitHub ↗
(self, instance, value)
Source
from the content-addressed store, hash-verified
1653
return
value
1654
1655
def
__set__(self, instance, value):
1656
return
super().__set__(instance, self.to_python(value))
1657
1658
def
to_mongo(self, value):
1659
if
isinstance(value, self._enum_cls):
Callers
3
__set__
Method · 0.45
__set__
Method · 0.45
__set__
Method · 0.45
Calls
1
to_python
Method · 0.95
Tested by
no test coverage detected