File tree Expand file tree Collapse file tree 3 files changed +7
-2
lines changed Expand file tree Collapse file tree 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(
122122 An asynchronous iterator of dictionary objects, each representing a dataset item after applying
123123 the specified filters and transformations.
124124 """
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
125130
126131 @abstractmethod
127132 async def get_items_as_bytes (
Original file line number Diff line number Diff line change @@ -203,7 +203,7 @@ async def list_items(
203203 )
204204
205205 @override
206- async def iterate_items ( # type: ignore
206+ async def iterate_items (
207207 self ,
208208 * ,
209209 offset : int = 0 ,
Original file line number Diff line number Diff line change @@ -402,7 +402,7 @@ async def iterate_items(
402402 Yields:
403403 Each item from the dataset as a dictionary.
404404 """
405- async for item in self ._resource_client .iterate_items ( # type: ignore
405+ async for item in self ._resource_client .iterate_items (
406406 offset = offset ,
407407 limit = limit ,
408408 clean = clean ,
You can’t perform that action at this time.
0 commit comments