Closed
Description
Bug Report
I have something like if TYPE_CHECKING: reveal_type(foo)
in a module (in 5 places).
mypy finds no errors, but the line that says "success" is missing.
Here's two sets of output from mypy, first with reveal_type() in the module, and second without.
D:\Solutions\trunk\Python\Sass>mypy .
solver\common.py:299: note: Revealed type is "Any"
solver\common.py:366: note: Revealed type is "Any"
solver\common.py:521: note: Revealed type is "solver.instruct.InstrTab"
solver\common.py:522: note: Revealed type is "Any"
solver\common.py:523: note: Revealed type is "Any"
D:\Solutions\trunk\Python\Sass>mypy .
Success: no issues found in 52 source files
What I think is correct output, in the first case, is
D:\Solutions\trunk\Python\Sass>mypy .
solver\common.py:299: note: Revealed type is "Any"
solver\common.py:366: note: Revealed type is "Any"
solver\common.py:521: note: Revealed type is "solver.instruct.InstrTab"
solver\common.py:522: note: Revealed type is "Any"
solver\common.py:523: note: Revealed type is "Any"
Success: no issues found in 52 source files
Your Environment
- Mypy version used: 0,92`
- Python version used: 3.7
- Operating system and version: Windows 10