diff --git a/python/pyarrow/ipc.pxi b/python/pyarrow/ipc.pxi index 5d20a4f8b72cb..ae52f5cf34e8b 100644 --- a/python/pyarrow/ipc.pxi +++ b/python/pyarrow/ipc.pxi @@ -823,10 +823,12 @@ cdef class RecordBatchReader(_Weakrefable): Parameters ---------- - requested_schema: Schema, default None - The schema to which the stream should be casted. Currently, this is - not supported and will raise a NotImplementedError if the schema - doesn't match the current schema. + requested_schema : PyCapsule, default None + The schema to which the stream should be casted, passed as a + PyCapsule containing a C ArrowSchema representation of the + requested schema. + Currently, this is not supported and will raise a + NotImplementedError if the schema doesn't match the current schema. Returns ------- diff --git a/python/pyarrow/table.pxi b/python/pyarrow/table.pxi index e55a0d1dd54cb..0fa913a21995b 100644 --- a/python/pyarrow/table.pxi +++ b/python/pyarrow/table.pxi @@ -3039,9 +3039,12 @@ cdef class RecordBatch(_Tabular): Parameters ---------- - requested_schema : pyarrow.lib.Schema, default None - A schema to attempt to cast the streamed data to. This is currently - unsupported and will raise an error. + requested_schema : PyCapsule, default None + The schema to which the stream should be casted, passed as a + PyCapsule containing a C ArrowSchema representation of the + requested schema. + Currently, this is not supported and will raise a + NotImplementedError if the schema doesn't match the current schema. Returns ------- @@ -4859,9 +4862,12 @@ cdef class Table(_Tabular): Parameters ---------- - requested_schema : pyarrow.lib.Schema, default None - A schema to attempt to cast the streamed data to. This is currently - unsupported and will raise an error. + requested_schema : PyCapsule, default None + The schema to which the stream should be casted, passed as a + PyCapsule containing a C ArrowSchema representation of the + requested schema. + Currently, this is not supported and will raise a + NotImplementedError if the schema doesn't match the current schema. Returns -------