Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/mongodb/mongo-python-driver
/ __getitem__
Method
__getitem__
pymongo/synchronous/cursor.py:536–537 ·
view source on GitHub ↗
(self, index: int)
Source
from the content-addressed store, hash-verified
534
535
@overload
536
def
__getitem__(self, index: int) -> _DocumentType:
537
...
538
539
@overload
540
def
__getitem__(self, index: slice) -> Cursor[_DocumentType]:
Callers
nothing calls this directly
Calls
4
_check_okay_to_chain
Method · 0.95
clone
Method · 0.95
skip
Method · 0.45
limit
Method · 0.45
Tested by
no test coverage detected