Skip to content

Disentangle is_subtype from is_compatible_with #2196

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

Closed
ddfisher opened this issue Sep 29, 2016 · 1 comment
Closed

Disentangle is_subtype from is_compatible_with #2196

ddfisher opened this issue Sep 29, 2016 · 1 comment

Comments

@ddfisher
Copy link
Collaborator

Currently mypy confuses subtyping and compatibility, which has been the source of many strange bugs around Any. The is_subtype function really means is_compatible_with. Disentangling these two should fix a number of future bugs.

@gvanrossum
Copy link
Member

Duplicate of #2038.

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

No branches or pull requests

2 participants