Skip to content

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

Merged
nicola-bastianello merged 22 commits into
team-decent:mainfrom
nicola-bastianello:coercion-2
Aug 12, 2026
Merged

enh: improve coercion to scalar dunders, unify error messages#12
nicola-bastianello merged 22 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

@nicola-bastianello
nicola-bastianello merged commit ff3c470 into team-decent:main Aug 12, 2026
9 checks passed
@nicola-bastianello
nicola-bastianello deleted the coercion-2 branch August 12, 2026 09:30
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