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
In version 0.930, mypy does not install type packages when run with --install-types.
To Reproduce
Run mypy on code that imports a library that has a separate typing package, e.g. dateutil, both with --install-types and without it.
Expected Behavior
The packages (types-python-dateutil in the example above) should be installed. With mypy 0.920 the message (when running mypy --install-types --non-interactive .) looks something like:
The behaviour without --install-types behaves as described in the previous section.
Actual Behavior
In version 0.930, running mypy both with and without --install-types is the same:
licensing/logic/license.py:17: error: Library stubs not installed for "dateutil" (or incompatible with Python 3.7)
licensing/logic/license.py:17: note: Hint: "python3 -m pip install types-python-dateutil"
licensing/logic/license.py:17: note: (or run "mypy --install-types" to install all missing stub packages)
licensing/logic/license.py:17: note: See https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports
licensing/logic/license.py:18: error: Library stubs not installed for "dateutil.relativedelta" (or incompatible with Python 3.7)
Activity
huyz commentedon Jan 12, 2022
Hmm, I thought that was happening to me too, but I tried again and it worked for me, with versions 0.930, 0.931, and 0.910
berislav-harbr commentedon Jan 12, 2022
0.931 is working fine for me too now 🤷♂️
huyz commentedon Jan 12, 2022
So close the issue?
JelleZijlstra commentedon Jan 12, 2022
There's a good chance this bug is dependent on the state of the cache, which might be why it no longer reproduces.
hauntsaninja commentedon Aug 3, 2022
Closing, since there isn't a repro