Skip to content

fix Renaming Protocol renames __init__ method instead of class #4170#4202

Open
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4170
Open

fix Renaming Protocol renames __init__ method instead of class #4170#4202
asukaminato0721 wants to merge 1 commit into
facebook:mainfrom
asukaminato0721:4170

Conversation

@asukaminato0721

Copy link
Copy Markdown
Collaborator

Summary

Fixes #4170

Rename now resolves constructor calls to the class symbol, while find-references still follows __init__/__new__ as intended.

prepareRename uses the same raw-symbol behavior.

Test Plan

add test

@github-actions

Copy link
Copy Markdown

According to mypy_primer, this change doesn't affect type check results on a corpus of open source code. ✅

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.

Renaming Protocol renames __init__ method instead of class

1 participant