I am working on a library package that depends on some other libraries and I statically type checking my code.
When running mypy (version 1.14.0) the first time on a freshly created enviroment, mypy finds the external libraries (for example peewee) and installs automatically the types-stubs from typeshed. But it does not install types-seaborn. So far this is the one and only exception to the rule.
If I install it manually with:
pip install types-seaborn
then mypy runs without any problem.
As a workaround I have explicitly added the types-seaborn dependency to the pyproject.toml file, but I would have preferred the automatic behavior.
Do you know why this is happening and how can I fix it?
This was a bug in mypy
, reported by OP in #18485 and fixed on master a bit earlier in #18366. Last affected version is 1.14.1, this should work as expected with the next release (or use pip install git+https://github.com/python/mypy
now to use the master version).