PR # 32422 added support for brier metrics, but missed array API support when doing checking `pos_label` here: https://github.com/lucyleeow/scikit-learn/blob/d3cd3619f47be684426a17331b1ba98702d7136e/sklearn/metrics/_classification.py#L3543 `np` here should be `xp` Also add tests for this.