-
Notifications
You must be signed in to change notification settings - Fork 82
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
Mypy error when getting abstract classes #143
Comments
This is unfortunate. I think this is MyPy/typing territory though as I don't believe we have any other tools to express this right now. See python/mypy#4717 for a discussion on this. |
Got it! Let's hope for an upstream resolution. Thanks for a timely response, as always! 🏅 |
Newer Injector versions with more type hints causes the |
As of v0.991, mypy has a dedicated error code for this. With See the release notes for more information. |
Using Injector to bind a concrete class to an abstract interface, and then getting an instance of that interface causes a mypy error:
I hope that this can be resolved by fixing type hints (although it's certainly possible to configure Injector so that the type hints will be incorrect).
The text was updated successfully, but these errors were encountered: