[Python] mypy does not install types-seaborn automatically

Discussão em 'Python' iniciado por Stack, Janeiro 18, 2025.

  1. Stack

    Stack Membro Participativo

    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?

    Continue reading...

Compartilhe esta Página