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
Type annotations don't work in strict mode with mypy #1426
Comments
You can add the following config to your project to allow Jinja (or other packages) to export from
See python/mypy#10198 for discussion on changing this behavior. |
I'd expect that configuration to be part of the upstream project, not the downstream user. Seems it's a choice of the project if they want implicit re-export or not, not the user apps 🤔 All other projects I've been using until now used explicit exports to work around this. |
There is no configuration that upstream projects can provide. |
Hence why most projects use explicit export to not run into this. If you insist on implicit re-export feels like worth creating a PEP and allowing this configurability. |
Hi @davidism, is there any release schedule for 3.0.1 fixing this behavior? I do not want to build any pressure, just to know if we should (temporarily) change our pipelines or just can wait for a fixed release coming in the next days. Thanks very much for the quick fix and your answer in advance! |
Python 3.9.5 + mypy 0.812
Thanks 👍
The text was updated successfully, but these errors were encountered: