File tree Expand file tree Collapse file tree 8 files changed +2017
-195
lines changed Expand file tree Collapse file tree 8 files changed +2017
-195
lines changed Original file line number Diff line number Diff line change @@ -424,4 +424,4 @@ def _unpack_response( # type: ignore[override]
424424 return raw_response # type: ignore[return-value]
425425
426426 def __getitem__ (self , index : int ) -> NoReturn :
427- raise InvalidOperation ("Cannot call __getitem__ on RawBatchCursor " )
427+ raise InvalidOperation ("Cannot call __getitem__ on AsyncRawBatchCommandCursor " )
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ def __init__(
242242 self ._exhaust_checked = True
243243 self ._supports_exhaust () # type: ignore[unused-coroutine]
244244 else :
245+ self ._exhaust = cursor_type == CursorType .EXHAUST
245246 self ._exhaust_checked = False
246247
247248 async def _supports_exhaust (self ) -> None :
@@ -1318,4 +1319,4 @@ async def explain(self) -> _DocumentType:
13181319 return await clone .explain ()
13191320
13201321 def __getitem__ (self , index : Any ) -> NoReturn :
1321- raise InvalidOperation ("Cannot call __getitem__ on RawBatchCursor " )
1322+ raise InvalidOperation ("Cannot call __getitem__ on AsyncRawBatchCursor " )
Original file line number Diff line number Diff line change @@ -424,4 +424,4 @@ def _unpack_response( # type: ignore[override]
424424 return raw_response # type: ignore[return-value]
425425
426426 def __getitem__ (self , index : int ) -> NoReturn :
427- raise InvalidOperation ("Cannot call __getitem__ on RawBatchCursor " )
427+ raise InvalidOperation ("Cannot call __getitem__ on RawBatchCommandCursor " )
Original file line number Diff line number Diff line change @@ -242,6 +242,7 @@ def __init__(
242242 self ._exhaust_checked = True
243243 self ._supports_exhaust () # type: ignore[unused-coroutine]
244244 else :
245+ self ._exhaust = cursor_type == CursorType .EXHAUST
245246 self ._exhaust_checked = False
246247
247248 def _supports_exhaust (self ) -> None :
You can’t perform that action at this time.
0 commit comments