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

Method __str__

mongoengine/fields.py:1734–1737  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

1732 return f"<{self.__class__.__name__}: {self.grid_id}>"
1733
1734 def __str__(self):
1735 gridout = self.get()
1736 filename = gridout.filename if gridout else "<no file>"
1737 return f"<{self.__class__.__name__}: {filename} ({self.grid_id})>"
1738
1739 def __eq__(self, other):
1740 if isinstance(other, GridFSProxy):

Callers

nothing calls this directly

Calls 1

getMethod · 0.95

Tested by

no test coverage detected