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

Method _clone_base

pymongo/synchronous/cursor.py:303–305  ·  view source on GitHub ↗

Creates an empty Cursor object for information to be copied into.

(self, session: Optional[ClientSession])

Source from the content-addressed store, hash-verified

301 return base
302
303 def _clone_base(self, session: Optional[ClientSession]) -> Cursor: # type: ignore[type-arg]
304 """Creates an empty Cursor object for information to be copied into."""
305 return self.__class__(self._collection, session=session)
306
307 def _query_spec(self) -> Mapping[str, Any]:
308 """Get the spec to use for a query."""

Callers 1

_cloneMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected