Skip to content

Commit 65864ce

Browse files
authored
Since we are raising an error instead of returning a None, we can update the type hint.
1 parent e620b82 commit 65864ce

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
@@ -57,7 +57,7 @@ def __init__(self, record_batch_stream: df_internal.RecordBatchStream) -> None:
5757
"""This constructor is typically not called by the end user."""
5858
self.rbs = record_batch_stream
5959

60-
def next(self) -> RecordBatch | None:
60+
def next(self) -> RecordBatch:
6161
"""See :py:func:`__next__` for the iterator function."""
6262
return next(self)
6363

0 commit comments

Comments
 (0)