Skip to content

Commit 4862d9c

Browse files
committed
use __anext__
1 parent df6c6bf commit 4862d9c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/datafusion/record_batch.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ def next(self) -> RecordBatch | None:
6363

6464
async def __anext__(self) -> RecordBatch:
6565
"""Async iterator function."""
66-
next_batch = anext(self.rbs)
66+
next_batch = self.rbs.__anext__()
6767
return RecordBatch(next_batch)
6868

6969
def __next__(self) -> RecordBatch:

0 commit comments

Comments
 (0)