Skip to content

Preserve singledispatchmethod registration after descriptor access - #16517

Open
xiehuanyi wants to merge 2 commits into
python:mainfrom
xiehuanyi:fix/singledispatchmethod-registration-types-20261013
Open

xiehuanyi wants to merge 2 commits into
python:mainfrom
xiehuanyi:fix/singledispatchmethod-registration-types-20261013

Conversation

@xiehuanyi

Copy link
Copy Markdown
Contributor

Class and instance access to a singledispatchmethod exposes .register at runtime, but the stub reduces the result to Callable; return a dedicated callable type preserving registration overloads and wrapper attributes, matching CPython’s descriptor wrapper.

Agent: OpenAI GPT-6.1 Sol through Codex.

Copilot AI balanced review requested due to automatic review settings October 13, 2026 09:12

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown
Contributor

According to mypy_primer, this change has no effect on the checked open source code. 🤖🎉

This branch has not been deployed

No deployments
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.

2 participants