Skip to content

Apply method signature hooks to super calls - #21836

Draft
aryansk wants to merge 1 commit into
python:masterfrom
aryansk:codex/mypy-21744
Draft

Apply method signature hooks to super calls#21836
aryansk wants to merge 1 commit into
python:masterfrom
aryansk:codex/mypy-21744

Conversation

@aryansk

@aryansk aryansk commented Aug 12, 2026

Copy link
Copy Markdown

Fixes #21744

Summary

  • Resolve the defining method fullname for calls through super().
  • Pass the receiver type to get_method_signature_hook for super method calls.
  • Add a regression to the existing custom-plugin signature-hook test.

Tests

  • runtests.py check-custom-plugin.test: 64 passed.

This PR was prepared with AI assistance, as permitted by the contributor guidance, and the implementation and test results were reviewed locally.

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.

get_method_signature_hook is not invoked for super().method(...) calls

1 participant