You are viewing a plain text version of this content. The canonical link for it is here.
Posted to github@arrow.apache.org by "nph (via GitHub)" <gi...@apache.org> on 2023/11/08 22:08:32 UTC

Re: [I] [Python] Incorrect return type for FlightStreamReader.read_chunk() [arrow]

nph commented on issue #34017:
URL: https://github.com/apache/arrow/issues/34017#issuecomment-1802756782

   @lidavidm @jjerphan FYI the [docs](https://arrow.apache.org/docs/python/generated/pyarrow.flight.FlightStreamReader.html#pyarrow.flight.FlightStreamReader.read_chunk) for `FlightStreamReader.read_chunk` are still wrong. They currently show that `read_chunk` returns `tuple[FlightStreamChunk, Buffer | None]`, however it returns only a `FlightStreamChunk` instance. The `FlightStreamChunk` class supports tuple [unpacking](https://github.com/apache/arrow/blob/db19a358cdf2b550b741fc7574dea38a6e32261b/python/pyarrow/_flight.pyx#L973) into a `tuple[RecordBatch, Buffer | None]`, which is presumably why the original docstring showed this as the return type.
   
   Shall I open a new issue for this?


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: github-unsubscribe@arrow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org