-
-
Notifications
You must be signed in to change notification settings - Fork 26k
CI Adapt handling of discarded fused typed memoryview #25425
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
CI Adapt handling of discarded fused typed memoryview #25425
Conversation
As of Cython>=3.0, memory views can't be None otherwise the runtime would not know which concrete implementation to dispatch the Python call to. This simply adapt a call to pass an empty numpy array to resolve the concrete implementation of Cython functions using fused-types.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am ok with the spirit of the fix as I don't see a better option than passing an empty array. It feels a bit like a slight Cython usability regression but I can live with it.
I agree and I think the best would be to simplify those implementations. Also IIRC, some handling in #13649 might be invalidated by this change of behavior. |
Co-authored-by: Olivier Grisel <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm okay with this work around. The failing [scipy-dev]
CI are unrelated to this PR so I am merging.
LGTM
…5425) Co-authored-by: Olivier Grisel <[email protected]>
…5425) Co-authored-by: Olivier Grisel <[email protected]>
…5425) Co-authored-by: Olivier Grisel <[email protected]>
Co-authored-by: Olivier Grisel <[email protected]>
Reference Issues/PRs
Partially address #25202 by making the following tests pass on
[scipy-dev]
:Resolved tests
What does this implement/fix? Explain your changes.
As of Cython>=3.0, memory views can't be None otherwise the runtime would not know which concrete implementation to dispatch the Python call to.
This simply adapt a call to pass an empty numpy array to resolve the concrete implementation of Cython functions using fused-types.