Open
Description
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