Skip to content

Tweak Array towards compatibility with arraycontext's Array protocol#606

Merged
inducer merged 1 commit into
inducer:mainfrom
majosm:tweak-array-for-arraycontext
Jun 5, 2025
Merged

Tweak Array towards compatibility with arraycontext's Array protocol#606
inducer merged 1 commit into
inducer:mainfrom
majosm:tweak-array-for-arraycontext

Conversation

@majosm
Copy link
Copy Markdown
Collaborator

@majosm majosm commented Jun 4, 2025

pyright doesn't like partialmethod, nor Array.__getitem__ having an argument name that doesn't match arraycontext's Array protocol.

@majosm majosm force-pushed the tweak-array-for-arraycontext branch from 271a7e3 to c9cc730 Compare June 4, 2025 20:45
@majosm majosm marked this pull request as ready for review June 4, 2025 21:05
@majosm majosm requested a review from inducer June 4, 2025 21:38
Copy link
Copy Markdown
Owner

@inducer inducer left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for puzzling this out! This looks great. I'll merge this now, the element-wise overloads can be done in a separate PR.

Comment thread pytato/cmath.py
return np.dtype(type(x))


# FIXME: Overload these instead of returning union type?
Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, I think that'd be an improvement.

@inducer inducer merged commit 403d285 into inducer:main Jun 5, 2025
10 checks passed
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.

2 participants