Skip to content

Fix plugin invocation for __call__ methods - #6334

Merged
ilevkivskyi merged 1 commit into
python:masterfrom
oremanj:plugin-call-fix
Feb 5, 2019
Merged

ilevkivskyi merged 1 commit into
python:masterfrom
oremanj:plugin-call-fix

Conversation

@oremanj

@oremanj oremanj commented Feb 5, 2019

Copy link
Copy Markdown
Contributor

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__`.

@ilevkivskyi ilevkivskyi left a comment

Copy link
Copy Markdown
Member

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.

2 participants