tadeja commented on code in PR #55264:
URL: https://github.com/apache/arrow/pull/55264#discussion_r4599129774


##########
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:
   `pyarrow-stubs` had to be removed from wheel build because they were/are 
still incomplete:  
https://github.com/apache/arrow/blob/a092214ba329872794b951afef3c522cd0e01155/python/CMakeLists.txt#L1077-L1089
   and
   
https://github.com/apache/arrow/blob/a092214ba329872794b951afef3c522cd0e01155/python/pyproject.toml#L94
   
   
   Currently this PR's `development.rst` has a note about it at the top of the 
[Type Checking section 
(preview-docs)](https://s3.amazonaws.com/arrow-data/pr_docs/55264/developers/python/development.html#type-checking)
   "The stubs aren’t included in the distributed wheel packages until they are 
complete (see [GH-49831](https://github.com/apache/arrow/issues/49831))."
   
   Plus subsequent: "The stub files will be automatically copied into the built 
wheel  ... **(once issue #32609 is sufficiently resolved)**".



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