rok opened a new pull request, #47609: URL: https://github.com/apache/arrow/pull/47609
This proposes adding type annotation to pyarrow by adopting pyarrow-stubs into pyarrow. To do so we copy pyarrow-stubs's stubfiles into `arrow/python/pyarrow-stubs/`. We remove docstrings from annotations and provide a script to include them into stubfiles at wheel-build-time. We also remove overloads from annotations to simplify this PR. We then add annotation checks for stubsfiles and some test files. We make sure `mypy` and `pyright` annotation checks pass on stubfiles. Annotation checks should be expanded until all (or most) project files are covered. PR introduces: 1. adds [pyarrow-stubs](https://github.com/zen-xu/pyarrow-stubs) into `arrow/python/pyarrow/` 1. fixes pyarrow-stubs to pass mypy and pyright check 1. adds mypy and pyright check to CI (crudely) 1. adds a tool (update_stub_docstrings.py) to insert annotation docstrings into stubfiles -- 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-unsubscr...@arrow.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org