AlenkaF opened a new issue, #55652: URL: https://github.com/apache/arrow/issues/55652
`cast` methods have `safe=None` in their signatures, but the docstrings specify the default as `True`: https://github.com/apache/arrow/blob/a6dc1c9b07a1544d7050984b2110703d4e88fd64/python/pyarrow/compute.py#L348-L359 Same in `Array.cast`, `ChunkedArray.cast`, `RecordBatch.cast`, `Table.cast`, `Scalar.cast` and `Expression.cast`. `None` does get turned into `True` unless `options` is given but I would think the default should still match. Maybe we could use `None` in the docstring also and add "None behaves like True." note? Found this while reviewing https://github.com/apache/arrow/pull/55264. -- 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]
