← 输入框|github.com|刷新
Skip to content

gh-87613: Add always_reject_kwargs to Argument Clinic's self converter - #162775

Open
cmaloney wants to merge 1 commit into
python:mainfrom
cmaloney:landable/clinic-always-reject-kwargs
Open

cmaloney wants to merge 1 commit into
python:mainfrom
cmaloney:landable/clinic-always-reject-kwargs

Conversation

@cmaloney

@cmaloney cmaloney commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Several types reject keyword arguments in their __init__ even when a subclass overrides __new__. Exception and set are two places with the pattern. Add support for the pattern in Argument Clinic by extending the self converter to be able to flag it.

Needed to use AC Vectorcall to replace hand rolled for exception types in gh-161242

…nverter

Several types reject keyword arguments in their `__init__~ even when
a subclass overrides `__new__`. `Exception` and `set` are two places
with the pattern. Add support for the pattern in Argument Clinic by
extending the self converter to be able to flag it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant