-
-
Notifications
You must be signed in to change notification settings - Fork 26
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
Adjust test-mypy-config.yml to test with more stable mypy options #137
Comments
gentoo-bot
pushed a commit
to gentoo/guru
that referenced
this issue
Feb 25, 2024
Fix upstreamed: typeddjango/pytest-mypy-plugins#137 Closes: https://bugs.gentoo.org/921901 Signed-off-by: Lucio Sauer <watermanpaint@posteo.net>
Let's try this. |
antecrescent
added a commit
to antecrescent/pytest-mypy-plugins
that referenced
this issue
Feb 25, 2024
The mypy configuration --no-strict-optional is discouraged and not much tested. It caused the test to fail with >=mypy-1.6.0. Closes typeddjango#137
sobolevn
pushed a commit
that referenced
this issue
Feb 25, 2024
* Test inline mypy configuration with more stable mypy option The mypy configuration --no-strict-optional is discouraged and not much tested. It caused the test to fail with >=mypy-1.6.0. Closes #137 * Update flush_errors to match the signature of >=mypy-1.8.0
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Since mypy 1.6.0+, the test
pytest_mypy_plugins/tests/test-mypy-config
fails with:Running mypy with
--no-strict-optional
is discouraged and not much tested. This issue can be worked around by appending--mypy-only-local-stub
to allpytest
calls.Original thread: https://github.com/typeddjango/pytest-mypy-plugins/pull/135/files#r1382473671
Upstream Gentoo Linux report: https://bugs.gentoo.org/921901
To fix this issue, I propose to test inline mypy configuration with the following test case instead:
If this is a sane approach, I'm happy to open a PR :)
The text was updated successfully, but these errors were encountered: