Skip to content

Fix class method and static method calls with --export-ref-info #15282

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 22, 2023

Conversation

JukkaL
Copy link
Collaborator

@JukkaL JukkaL commented May 22, 2023

Previously they were sometimes reported as builtins.type.method_name (i.e. a method of builtins.type instead of e.g. module.ClsName). Now report them as module.ClsName.method_name.

Previously they were sometimes reported as `builtins.type.method_name` (i.e.
a method of `builtins.type` instead of e.g. `module.ClsName`). Now report
them as `module.ClsName.method_name`.
@github-actions
Copy link
Contributor

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

@JukkaL JukkaL merged commit caf4787 into master May 22, 2023
@JukkaL JukkaL deleted the ref-info-static-class-method branch May 22, 2023 15:29
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