ViktorBystrov72 opened a new pull request, #55674:
URL: https://github.com/apache/arrow/pull/55674

   ### Rationale for this change
   
   Fixes #55652. The cast APIs use `safe=None` in their signatures. Their 
docstrings list `True` as the default.
   
   ### What changes are included in this PR?
   
   Document the `None` default on the compute function and six cast methods. 
Explain that omitting `CastOptions` makes `None` request a safe cast.
   
   ### Are these changes tested?
   
   Checked the seven source docstrings against their signatures and exercised 
the default and explicit unsafe modes on PyArrow 26.0.1. The compute function 
and expression method were also checked with explicit `CastOptions`.
   
   ### Are there any user-facing changes?
   
   The API documentation now shows the signature default and explains how it 
affects a cast.
   
   ### Was AI used for this PR?
   
   Codex drafted and reviewed the docstring edits and this description.
   
   **PR code and description written by**
   
   - [ ] Human
   - [x] AI
   
   **Reviewed before submission by**
   
   - [ ] Human
   - [x] AI
   - [ ] Not reviewed
   


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