rok opened a new pull request, #55592: URL: https://github.com/apache/arrow/pull/55592
### Rationale for this change Closes: #55590 ### What changes are included in this PR? Adds type annotation stubs for the scalar module: `Scalar`, its subclasses, `NA` and `pyarrow.scalar()`. Indexing an `Array` or `ChunkedArray` now returns a `Scalar` for an index and an array for a slice. Includes annotation tests for scalars. ### Are these changes tested? Yes, by the type annotation tests in `pyarrow-stubs-tests` and by CI. ### Are there any user-facing changes? Scalars will be type annotated. ### Was AI used for this PR? **PR code and description written by:** - [x] Human - [x] AI **Reviewed before submission by:** - [x] Human - [x] AI - [ ] Not reviewed * GitHub Issue: #55590 -- 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]
