Skip to content

Look at arguments when generating constraints for an overload - #8845

Merged
msullivan merged 1 commit into
masterfrom
cnstr-args
May 19, 2020
Merged

msullivan merged 1 commit into
masterfrom
cnstr-args

Conversation

@msullivan

Copy link
Copy Markdown
Collaborator

This improves a lot of cases. I'm not totally sure why we skipped the
arguments in the past.

This improves a lot of cases. I'm not totally sure why we skipped the
arguments in the past.
@msullivan
msullivan requested review from JukkaL and ilevkivskyi May 18, 2020 22:57
Comment thread mypy/constraints.py
# Create constraints by matching an overloaded type against a template.
# This is tricky to do in general. We cheat by only matching against
# the first overload item, and by only matching the return type. This
# the first overload item that is callable compatible. This

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.

This comment is 8 years old. I think this answers your question in the PR description.

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