raulcd opened a new issue, #46516:
URL: https://github.com/apache/arrow/issues/46516

   ### Describe the bug, including details regarding any error messages, 
version, and platform.
   
   It seems that the new version of Cython (3.1.1) released yesterday breaks 
our code to validate docstrings from the Cython generated code. Our code:
   
https://github.com/apache/arrow/blob/a1707dba7c9ec4265c048586c485c526048cf162/dev/archery/archery/lang/python.py#L164-L175
   
   
   I've been able to reproduce locally the failures on 
https://github.com/apache/arrow/actions/runs/15135088392/job/42544918301?pr=46511
 via installing the newer Cython, building pyarrow and running:
   `archery numpydoc --allow-rule GL10,PR01,PR03,PR04,PR05,PR10,RT03,YD01`
   with the following failure:
   ```
   ...
   pyarrow.lib.FixedSizeBufferWriter.set_memcopy_blocksize
   -> pyarrow.lib.FixedSizeBufferWriter.set_memcopy_blocksize(self, int64_t 
blocksize)
   PR01: Parameters {'blocksize'} not documented
   
   pyarrow._json.ReadOptions.equals
   -> pyarrow._json.ReadOptions.equals(self, ReadOptions other)
   PR01: Parameters {'other'} not documented
   
   pyarrow._json.ParseOptions.equals
   -> pyarrow._json.ParseOptions.equals(self, ParseOptions other)
   PR01: Parameters {'other'} not documented
   
   Total number of docstring violations: 39
   ```
   
   While debugging I can see that our check is not working anymore:
   ```
   > /home/raulcd/code/arrow/dev/archery/archery/lang/python.py(172)traverse()
   -> if hasattr(member, '__objclass__'):
   (Pdb) hasattr(member, '__objclass__')
   False
   (Pdb) module
   'pyarrow._csv'
   (Pdb) name
   'ReadOptions'
   (Pdb) member
   <class 'pyarrow._csv.ReadOptions'>
   ```
   
   ### Component(s)
   
   Continuous Integration, Documentation, Archery


-- 
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: issues-unsubscr...@arrow.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to