Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>
  • Loading branch information
wjones127 and jorisvandenbossche authored Sep 27, 2023
1 parent 3ae27e0 commit 6ec61ca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion docs/source/format/CDataInterface/PyCapsuleInterface.rst
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,7 @@ required to implement the protocol.
"""
Export array as a pair of PyCapsules for the ArrowSchema and ArrowArray.
The capsule will have a name of "arrowarray".
The ArrowArray capsule will have a name of "arrowarray".
If requested_schema is passed, the callee should attempt to provide the
data in the requested schema. However, this is best-effort, and the
Expand Down
2 changes: 1 addition & 1 deletion python/pyarrow/types.pxi
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ cdef class DataType(_Weakrefable):
shared_ptr[CDataType] c_type

if not cpython.PyCapsule_IsValid(schema, 'arrowschema'):
raise ValueError(
raise TypeError(
"Not an ArrowSchema object"
)
c_schema = <ArrowSchema*> cpython.PyCapsule_GetPointer(schema, 'arrowschema')
Expand Down

0 comments on commit 6ec61ca

Please sign in to comment.