File tree 3 files changed +7
-2
lines changed
3 files changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -122,6 +122,11 @@ async def iterate_items(
122
122
An asynchronous iterator of dictionary objects, each representing a dataset item after applying
123
123
the specified filters and transformations.
124
124
"""
125
+ # This syntax is to make mypy properly work with abstract AsyncIterator.
126
+ # https://mypy.readthedocs.io/en/stable/more_types.html#asynchronous-iterators
127
+ raise NotImplementedError
128
+ if False : # type: ignore[unreachable]
129
+ yield 0
125
130
126
131
@abstractmethod
127
132
async def get_items_as_bytes (
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ async def list_items(
203
203
)
204
204
205
205
@override
206
- async def iterate_items ( # type: ignore
206
+ async def iterate_items (
207
207
self ,
208
208
* ,
209
209
offset : int = 0 ,
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ async def iterate_items(
402
402
Yields:
403
403
Each item from the dataset as a dictionary.
404
404
"""
405
- async for item in self ._resource_client .iterate_items ( # type: ignore
405
+ async for item in self ._resource_client .iterate_items (
406
406
offset = offset ,
407
407
limit = limit ,
408
408
clean = clean ,
You can’t perform that action at this time.
0 commit comments