MCPcopy Create free account
hub / github.com/mongodb/mongo-python-driver / __exit__

Method __exit__

pymongo/synchronous/cursor_base.py:92–93  ·  view source on GitHub ↗
(self, exc_type: Any, exc_val: Any, exc_tb: Any)

Source from the content-addressed store, hash-verified

90 self._die_lock()
91
92 def __exit__(self, exc_type: Any, exc_val: Any, exc_tb: Any) -> None:
93 self.close()
94
95 @_csot.apply
96 def to_list(self, length: Optional[int] = None) -> list[_DocumentType]:

Callers

nothing calls this directly

Calls 1

closeMethod · 0.95

Tested by

no test coverage detected