Skip to content

MAINT Fix signature qhull version function #21834

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

Merged
merged 2 commits into from
Dec 10, 2021

Conversation

hoodmane
Copy link
Contributor

@hoodmane hoodmane commented Dec 2, 2021

PR Summary

This is more of the same function pointer cast removal maintenance, see #21628.
Now the problem is that the qhull version function is declared as taking no arguments, but is supposed to be a METH_NOARGS function. METH_NOARGS functions should take two PyObject* arguments. This tiny patch fixes that.

Copy link
Member

@QuLogic QuLogic left a comment

Choose a reason for hiding this comment

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

Since this is now equal to PyCFunction type, I think that means we can remove the casts in qhull_methods?

@QuLogic QuLogic added this to the v3.5.1 milestone Dec 2, 2021
@hoodmane
Copy link
Contributor Author

hoodmane commented Dec 2, 2021

Since this is now equal to PyCFunction type, I think that means we can remove the casts in qhull_methods?

Yes. I can do that if you like.

@QuLogic
Copy link
Member

QuLogic commented Dec 2, 2021

I think we should, if it doesn't introduce any warnings.

@jklymak jklymak merged commit e8f4df9 into matplotlib:main Dec 10, 2021
meeseeksmachine pushed a commit to meeseeksmachine/matplotlib that referenced this pull request Dec 10, 2021
jklymak added a commit that referenced this pull request Dec 10, 2021
…834-on-v3.5.x

Backport PR #21834 on branch v3.5.x (MAINT Fix signature qhull version function )
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.

3 participants