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
Regression in upcoming mypy 0.990 #82
Comments
This is probably caused by python/mypy#13729 |
It doesn't seem like ellipses help here (I'm getting the same error if I replace |
That particular issue was easy to work around by explicitly marking interface methods as "abstract". However now mypy complains about not being able to instantiate abstract classes when we do "adaptation pattern". And there seem to be some deeper issue in mypy that prevents a "nice" solution for this right now. Filed python/mypy#14106, waiting or some response. |
Hi. I was testing the upcoming mypy release and it seems to be emitting new warning for interface definitions:
gives:
Replacing the function body with ellipses silences the warning. Perhaps that should be the preferred way to define interfaces moving forward?
The text was updated successfully, but these errors were encountered: