Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: address missing complex type in applicable function signatures #905

Merged
merged 2 commits into from
Feb 26, 2025

Conversation

kgryte
Copy link
Contributor

@kgryte kgryte commented Feb 26, 2025

This PR

  • addresses an oversight when adding complex number support to the specification. Namely, the signatures for dunder methods were not updated to reflect complex scalar argument support. This oversight has already been addressed in the current draft (see feat: add scalar support to element-wise functions #862). This PR backports the changes to previous revisions of the specification.
  • removes a stray Sphinx annotation for the __or__ specification in the v2022.12 revision of the standard. It currently says that complex dtype support was added for this API, but this is not correct.
  • adds a missing Sphinx annotation to __eq__ as to when complex dtype support was added.

@kgryte kgryte added Maintenance Bug fix, typo fix, or general maintenance. topic: Static Typing Static typing. Backport Changes involve backporting to previous versions. labels Feb 26, 2025
@kgryte
Copy link
Contributor Author

kgryte commented Feb 26, 2025

As this PR addresses a typing omission for already specified behavior per the v2022.12 revision of the Array API specification, I'll go ahead and merge.

@kgryte kgryte added this to the v2024 milestone Feb 26, 2025
@kgryte kgryte changed the title fix: resolve missing complex type in applicable function signatures fix: address missing complex type in applicable function signatures Feb 26, 2025
@kgryte kgryte merged commit 6b8172e into data-apis:main Feb 26, 2025
3 checks passed
@kgryte kgryte deleted the fix/missing-complex-type branch February 26, 2025 09:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Backport Changes involve backporting to previous versions. Maintenance Bug fix, typo fix, or general maintenance. topic: Static Typing Static typing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant