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]
424
424
return raw_response # type: ignore[return-value]
425
425
426
426
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__(
242
242
self ._exhaust_checked = True
243
243
self ._supports_exhaust () # type: ignore[unused-coroutine]
244
244
else :
245
+ self ._exhaust = cursor_type == CursorType .EXHAUST
245
246
self ._exhaust_checked = False
246
247
247
248
async def _supports_exhaust (self ) -> None :
@@ -1318,4 +1319,4 @@ async def explain(self) -> _DocumentType:
1318
1319
return await clone .explain ()
1319
1320
1320
1321
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]
424
424
return raw_response # type: ignore[return-value]
425
425
426
426
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__(
242
242
self ._exhaust_checked = True
243
243
self ._supports_exhaust () # type: ignore[unused-coroutine]
244
244
else :
245
+ self ._exhaust = cursor_type == CursorType .EXHAUST
245
246
self ._exhaust_checked = False
246
247
247
248
def _supports_exhaust (self ) -> None :
You can’t perform that action at this time.
0 commit comments