8000 Support method plugin hooks on unions by ilevkivskyi · Pull Request #6560 · python/mypy · GitHub
[go: up one dir, main page]

Skip to content

Support method plugin hooks on unions #6560

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 17 commits into from
Jul 4, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix self-check
  • Loading branch information
ilevkivskyi committed Mar 18, 2019
commit 72870a734220e34982cda1c70846aa916f287bc7
1 change: 1 addition & 0 deletions mypy/checkexpr.py
Original file line number Diff line number Diff line change
Expand Up @@ -662,6 +662,7 @@ def check_call_expr_with_callee_type(self,
for example 'typing.Mapping.get'.
"""
if callable_name is None and member is not None:
assert object_type is not None
callable_name = self.method_fullname(object_type, member)
if callable_name:
# Try to refine the call signature using plugin hooks before checking the call.
Expand Down
0