Skip to content
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

Don't check method subtyping when supertype method's type is Any #2880

Merged
merged 1 commit into from
Feb 22, 2017

Conversation

sixolet
Copy link
Collaborator

@sixolet sixolet commented Feb 18, 2017

Previously, we were bailing out with an error because we thought that overriding
a non-method type with a method type was bad.

This comes up when you have an untyped decorator on a supertype method.

#2782

@sixolet
Copy link
Collaborator Author

sixolet commented Feb 18, 2017

This also fixes a crash I encountered in the semanalysis phase when I used @ddfisher 's repro in a test without the right builtin shim. By "fixes" I mean "still crashes, but now with a message that tells you what is going on"

Previously, we were bailing out with an error because we thought that overriding
a non-method type with a method type was bad.

This comes up when you have an untyped decorator on a supertype method.

python#2782
@sixolet
Copy link
Collaborator Author

sixolet commented Feb 18, 2017

Belay that last comment, it was causing trouble so I removed it.

@JukkaL JukkaL merged commit 0bb2d16 into python:master Feb 22, 2017
@JukkaL
Copy link
Collaborator

JukkaL commented Feb 22, 2017

Thanks for the fix!

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