Skip to content
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

Cache not cleared after removing [[tool.mypy.overrides]] from pyproject.toml #17032

Open
bersbersbers opened this issue Mar 15, 2024 · 0 comments
Labels
bug mypy got something wrong topic-incremental

Comments

@bersbersbers
Copy link

Bug Report

A project that relies on [[tool.mypy.overrides]] to fully type-check still type-checks after removing these sections, until the cache is invalidated by some other method.

To Reproduce

I do not have time to create a test project for reproduction, but the step go along this way:

(.venv) C:\Code\project>mypy .
Success: no issues found in 45 source files

(.venv) C:\Code\project>mypy . --no-incremental 
Success: no issues found in 45 source files

(.venv) C:\Code\project>rem remove [[tool.mypy.overrides]] from pyproject.toml

(.venv) C:\Code\project>mypy .     
Success: no issues found in 45 source files

(.venv) C:\Code\project>mypy . --no-incremental
project\util\colormaps.py:6: error: Skipping analyzing "colorcet": module is installed, but missing library stubs or py.typed marker  [import-untyped]
project\util\colormaps.py:6: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
project\util\colormaps.py:6: note: See https://mypy.rtfd.io/en/stable/_refs.html#code-import-untyped for more info
Found 1 error in 1 file (checked 45 source files)

Your Environment

  • Mypy version used: 1.9.0
  • Python 3.12.2
@bersbersbers bersbersbers added the bug mypy got something wrong label Mar 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug mypy got something wrong topic-incremental
Projects
None yet
Development

No branches or pull requests

2 participants