jorisvandenbossche commented on code in PR #55264:
URL: https://github.com/apache/arrow/pull/55264#discussion_r4536078028
##########
docs/source/developers/python/development.rst:
##########
@@ -136,6 +150,12 @@ To run mypy on the PyArrow codebase:
$ mypy
The mypy configuration is in the ``[tool.mypy]`` section of ``pyproject.toml``.
+mypy only uses the stubs when it checks them too, so pass ``pyarrow-stubs``
+along with any other files you check:
+
+.. code-block::
+
+ $ mypy pyarrow-stubs pyarrow/tests/test_array.py
Review Comment:
That is not what I see locally. Running eg `mypy
pyarrow/tests/test_table.py` works just fine and finds the same issues whether
I add `pyarrow-stubs` or not.
(assuming I pass `--follow-untyped-imports --check-untyped-defs`, otherwise
it finds nothing related to pyarrow anyhow)
--
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]