Skip to content

enh: improve coercion to scalar dunders, unify error messages#12

Open
nicola-bastianello wants to merge 21 commits into
team-decent:mainfrom
nicola-bastianello:coercion-2
Open

enh: improve coercion to scalar dunders, unify error messages#12
nicola-bastianello wants to merge 21 commits into
team-decent:mainfrom
nicola-bastianello:coercion-2

Conversation

@nicola-bastianello

Copy link
Copy Markdown
Member

this PR adds a .item() method to array, backed by _Backend.to_scalar(), and makes use of this in all coercion dunders.

the PR also unifies error messaging across backends

(the PR is branched from PR #11, hence it includes all commits from that branch)

closes #9 closes #10

@Simpag

Simpag commented Jul 9, 2026

Copy link
Copy Markdown
Collaborator

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Unify error messaging Improve coercion dunders

2 participants