Skip to content

[3.15] gh-64502: Fix Argument Clinic support of optional groups with defaults (GH-155191) - #155209

Open
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-caac927-3.15
Open

[3.15] gh-64502: Fix Argument Clinic support of optional groups with defaults (GH-155191)#155209
miss-islington wants to merge 1 commit into
python:3.15from
miss-islington:backport-caac927-3.15

Conversation

@miss-islington

@miss-islington miss-islington commented Aug 5, 2026

Copy link
Copy Markdown
Contributor

Parameters with a default value which are not in any group were always
required in the generated argument parsing code, although they were
rendered as optional in the signature. They can now be omitted, and
ambiguous combinations of optional groups and parameters with a default
value are rejected.
(cherry picked from commit caac927)

Co-authored-by: Serhiy Storchaka [email protected]
Co-Authored-By: Claude Opus 5 (1M context) [email protected]

…efaults (pythonGH-155191)

Parameters with a default value which are not in any group were always
required in the generated argument parsing code, although they were
rendered as optional in the signature.  They can now be omitted, and
ambiguous combinations of optional groups and parameters with a default
value are rejected.
(cherry picked from commit caac9278306d3cb96b22f51f5003e20b7a6aa18c)

Co-authored-by: Serhiy Storchaka <[email protected]>
Co-Authored-By: Claude Opus 5 (1M context) <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants