You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Disappearing dmypy errors using --export-types, pip install -e, and absolute paths #16768
# Create a new Python 3.12 virtualenv, then:
pip install --editable .
dmypy run --export-types $(pwd)/src/foo.py
dmypy run --export-types $(pwd)/src/foo.py
Expected Behavior
We should see the same error output after both runs of dmypy.
Actual Behavior
Regardless of the error in the file, it disappears on the second run of dmypy.
$ pip install --editable ....
$ dmypy run --export-types $(pwd)/src/foo.pyDaemon startedsrc/foo.py:1: error: Incompatible types in assignment (expression has type "int", variable has type "str") [assignment]Found 1 error in 1 file (checked 1 source file)
$ dmypy run --export-types $(pwd)/src/foo.pySuccess: no issues found in 1 source file
Your Environment
Mypy configuration options from mypy.ini (and other config files): None.
Activity
ezyang commentedon Jan 27, 2024
We're affected by this too!