tadeja opened a new issue, #55782: URL: https://github.com/apache/arrow/issues/55782
### Describe the enhancement requested Follow-up to #55264. Type annotations stubs should existing runtime behaviors: - `Array.take()`, `Array.filter()` and `Array.fill_null()` return a `ChunkedArray` when given chunked indices, a chunked mask or a chunked fill value. The stubs currently declare `Self`. - `RecordBatch.take()` raises `ArrowNotImplementedError` for chunked indices, but its stub accepts them. `Table.take()` supports chunked indices and should keep accepting them. - `metadata=` (on `pa.table()`, `pa.record_batch()`, `from_pydict()`, `from_pylist()`) and the `fields` argument of `pa.schema()` / `pa.struct()` reject variables typed as `dict[str, ...]` or `dict[bytes, ...]`, because `Mapping[str | bytes, ...]` is invariant in its key type (`_MetadataMapping` from `types.pyi` could be reused). Runtime accepts them. Update type annotation stubs and their regression tests. No runtime code change needed. ### Component(s) Python -- 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: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
