-
-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
Internal error in check_method_override_for_base_with_name #2998
Comments
Which line is line 270? |
The def line. Removing the return type does not help here. |
Looks like this is in a branch where a base class defines the same name, but the type of the attribute on the base class is Can you provide a small test case that reproduces the error? You'd probably need the base class of the class that triggers the error. |
The baseclass defines config as property. This might trigger the error. Can try to write a test case tomorrow |
Thanks! I tried a couple of variations on that but couldn't reproduce. |
Minimal "working" example:
Results in this stack trace:
Indeed when I fix the first error
Which I would argue should not be an error because the getter returns exactly the same type:
But that might be another issue |
We get an internal error in mypy 0.501 (latest from pip):
Code at the reported line:
The text was updated successfully, but these errors were encountered: