From 14a66fd789350372baf5526f20a0c031dea26927 Mon Sep 17 00:00:00 2001 From: Avasis AI Date: Sun, 19 Apr 2026 21:53:14 +0530 Subject: [PATCH] docs: add safety warning to Array.from_buffers docstring --- python/pyarrow/array.pxi | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/pyarrow/array.pxi b/python/pyarrow/array.pxi index b7f3a46f9e1..339a5981717 100644 --- a/python/pyarrow/array.pxi +++ b/python/pyarrow/array.pxi @@ -1323,6 +1323,12 @@ cdef class Array(_PandasConvertible): The concrete type returned depends on the datatype. + .. warning:: + + The caller is responsible for ensuring that the buffers contain + valid Arrow data matching the given type. Passing invalid data + may lead to crashes or undefined behavior when using the result. + Parameters ---------- type : DataType