Skip to content

Fix constraint inference for non-invariant instances #5817

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 3 commits into from
Oct 22, 2018

Conversation

ilevkivskyi
Copy link
Member

Fixes #2035

Note that in two tests we now infer object instead of giving an error. This may be not what a user expects, but I think this is still OK, and after #3816 mypy will always ask for an annotation in such cases.

Copy link
Collaborator

@JukkaL JukkaL left a comment

Choose a reason for hiding this comment

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

LGTM. I'd suggest checking this against internal Dropbox codebases before merging.

@ilevkivskyi
Copy link
Member Author

Internal codebase is clean.

@ilevkivskyi ilevkivskyi merged commit 2b71c2f into python:master Oct 22, 2018
@ilevkivskyi ilevkivskyi deleted the fix-infer-generic branch October 22, 2018 15:43
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