Skip to content

Commit d2a8b78

Browse files
authored
GH-46516: [CI][Python] Force Cython>3.1.1 for docs builds (#46770)
### Rationale for this change Due to a change of behaviour on Cython for 3.1 the docstrings generated fail when being tested with numpydoc. The issue was fixed on Cython==3.1.2. - cython/cython#6904 ### What changes are included in this PR? - Pin Cython>3.1.1 for the docs requirements (both conda and pip) - Fix doctest failure that was introduced in the interim when the CI job had been failing. ### Are these changes tested? Via CI. ### Are there any user-facing changes? No * GitHub Issue: #46516 Authored-by: Raúl Cumplido <[email protected]> Signed-off-by: Sutou Kouhei <[email protected]>
1 parent 494d0e3 commit d2a8b78

3 files changed

Lines changed: 3 additions & 1 deletion

File tree

‎ci/conda_env_sphinx.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
# Requirements for building the documentation
1919
breathe
20+
cython>3.1.1
2021
doxygen
2122
ipython
2223
linkify-it-py

‎docs/requirements.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
#
44

55
breathe
6+
cython>3.1.1
67
ipython
78
linuxdoc
89
myst-parser[linkify]

‎python/pyarrow/types.pxi‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4467,7 +4467,7 @@ def float16():
44674467
to a python list, the types of its elements will be ``np.float16``
44684468
44694469
>>> [type(val) for val in a.to_pylist()]
4470-
[<class 'numpy.float16'>, <class 'numpy.float16'>]
4470+
[<class 'float'>, <class 'float'>]
44714471
"""
44724472
return primitive_type(_Type_HALF_FLOAT)
44734473

0 commit comments

Comments
 (0)