jorisvandenbossche commented on code in PR #55264: URL: https://github.com/apache/arrow/pull/55264#discussion_r4597460169
########## docs/source/developers/python/development.rst: ########## @@ -114,6 +114,18 @@ Running Type Checkers We support multiple type checkers. Their configurations are in ``pyproject.toml``. +The easiest way to run all of them is with ``pre-commit``, which installs +the same versions of the type checkers and stub packages for everyone. This +also lints and formats the stubs with ruff: + +.. code-block:: + + $ pre-commit run --hook-stage manual python-stubs --all-files Review Comment: Hmm, deleting the mypy cache in arrow/python does not seem to help. But, I am wondering, how is this actually supposed to work? Because we do not yet have a compute module typed, and `__init__.pyi` resolving to Any for anything undefined does not work for submodules? The other compute related objects are imported from `pyarrow._compute`, for which we do have a `_compute.pyi` file that defaults to Any for any access -- 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]
