Skip to content

gh-155266: Fix Argument Clinic for a lone optional group - #155267

Merged
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:clinic-group-meth-o
Aug 6, 2026
Merged

gh-155266: Fix Argument Clinic for a lone optional group#155267
serhiy-storchaka merged 2 commits into
python:mainfrom
serhiy-storchaka:clinic-group-meth-o

Conversation

@serhiy-storchaka

@serhiy-storchaka serhiy-storchaka commented Aug 6, 2026

Copy link
Copy Markdown
Member

The option group is now checked before the possibility to use METH_O.

No generated file in the tree is changed, no existing function has such signature.

If the only parameter of a function was in an optional group, METH_O was
generated, which made the argument mandatory and did not pass the flag of
the group.
@serhiy-storchaka
serhiy-storchaka merged commit 4130af1 into python:main Aug 6, 2026
62 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.

1 participant