Commits


Joris Van den Bossche authored and GitHub committed b852b720d43
GH-43388: [Python] Give precedence to pycapsule interface in pa.schema(..) (#43486) ### Rationale for this change When converting an object to a pyarrow.Schema with `pa.schema(..)`, first check the capsule interface before checking for mappings. This allows other schema-like objects that expose the capsule interface to also be mappings. ### Are these changes tested? Yes * GitHub Issue: #43388 Authored-by: Joris Van den Bossche <jorisvandenbossche@gmail.com> Signed-off-by: Joris Van den Bossche <jorisvandenbossche@gmail.com>