Skip to content
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

Fix plugin invocation for __call__ methods #6334

Merged
merged 1 commit into from Feb 5, 2019

Conversation

oremanj
Copy link
Contributor

@oremanj oremanj commented Feb 5, 2019

Previously these would be delivered as a function hook for __call__ of Foo;
now they are more properly a method hook for __main__.Foo.__call__.
Also make sure we call the method signature hook for __call__ methods.

Previously these would be delivered as a function hook for `__call__ of Foo`;
now they are more properly a method hook for `__main__.Foo.__call__`.
Copy link
Member

@ilevkivskyi ilevkivskyi left a comment

Choose a reason for hiding this comment

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

Thanks for the fix! Looks good.

@ilevkivskyi ilevkivskyi merged commit e9dc189 into python:master Feb 5, 2019
@oremanj oremanj mentioned this pull request Feb 5, 2019
gvanrossum pushed a commit to gvanrossum/mypy that referenced this pull request Feb 5, 2019
Previously these would be delivered as a function hook for `__call__ of Foo`;
now they are more properly a method hook for `__main__.Foo.__call__`.
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.

None yet

2 participants