Skip to content

Add args argument to METH_NOARGS methods#9687

Merged
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:meth_noargs
Jun 19, 2026
Merged

Add args argument to METH_NOARGS methods#9687
radarhere merged 1 commit into
python-pillow:mainfrom
radarhere:meth_noargs

Conversation

@radarhere

Copy link
Copy Markdown
Member

There are a number of instances where METH_NOARGS functions only have one parameter

_encode_to_pyfd(ImagingEncoderObject *encoder) {

{"encode_to_pyfd", (PyCFunction)_encode_to_pyfd, METH_NOARGS},

despite https://docs.python.org/3/c-api/structures.html#c.METH_NOARGS

The function must have 2 parameters.

@radarhere radarhere merged commit 3dd621a into python-pillow:main Jun 19, 2026
54 checks passed
@radarhere radarhere deleted the meth_noargs branch June 19, 2026 23:00
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.

1 participant