tadeja opened a new pull request, #55803:
URL: https://github.com/apache/arrow/pull/55803

   ### Rationale for this change
   Closes #55782, follow-up to #55782. Some type annotations don't match 
runtime behavior.
   
   ### What changes are included in this PR?
   - `Array.take()/filter()/fill_null()` return `ChunkedArray` for chunked 
`indices`, `mask` or `fill_value` -> overloads
   - `RecordBatch.take()` no longer accepts chunked indices but `Table.take()` 
still does as it should
   - `metadata` and `fields` arguments of `pa.schema()/struct()` accept 
mappings with only `str` or only `bytes` keys. metadata alias is now 
`MetadataMapping`
   
   ### Are these changes tested?
   New test cases added in `pyarrow-stubs-tests/`
   
   ### Are there any user-facing changes?
   No, just improved type annotation stubs.
   
   ### Was AI used for this PR?
   
   In accordance to the [AI generation 
guidelines](https://arrow.apache.org/docs/dev/developers/overview.html#ai-generated-code),
 please disclose below whether and how AI was used in this PR.
   
   **PR code and description written by:**
   
   - [X] Human
   - [X] AI
   
   **Reviewed before submission by:**
   
   - [X] Human
   - [X] AI
   - [ ] Not reviewed
   
   * GitHub Issue: (filled in automatically from the PR title)
   


-- 
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]

Reply via email to