@@ -640,7 +640,8 @@ Check for an issue with imports [import]
640640----------------------------------------
641641
642642Mypy generates an error if it can't resolve an `import ` statement.
643- This is a parent error code of `import-not-found ` and `import-untyped `
643+ This is a parent error code of `import-not-found `, `import-untyped `,
644+ and `import-untyped-stubs-available `
644645
645646See :ref: `ignore-missing-imports ` for how to work around these errors.
646647
@@ -673,14 +674,33 @@ Example:
673674
674675.. code-block :: python
675676
676- # Error: Library stubs not installed for "bs4" [import-untyped]
677+ # Error: Library stubs not installed for "bs4" [import-untyped-stubs-available ]
677678 import bs4
678679 # Error: Skipping analyzing "no_py_typed": module is installed, but missing library stubs or py.typed marker [import-untyped]
679680 import no_py_typed
680681
681682 In some cases, these errors can be fixed by installing an appropriate
682683stub package. See :ref: `ignore-missing-imports ` for more details.
683684
685+ Check that import target with known stubs can be found [import-untyped-stubs-available]
686+ --------------------------------------------------------
687+
688+ Like :ref: `code-import-untyped `, but used when mypy knows there is an appropriate
689+ type stub package corresponding to the library, which you could install.
690+
691+ Example:
692+
693+ .. code-block :: python
694+
695+ # Error: Library stubs not installed for "bs4" [import-untyped-stubs-available]
696+ import bs4
697+ # Error: Skipping analyzing "no_py_typed": module is installed, but missing library stubs or py.typed marker [import-untyped]
698+ import no_py_typed
699+
700+ These errors can be fixed by installing the appropriate
701+ stub package. See :ref: `ignore-missing-imports ` for more details.
702+
703+
684704.. _code-no-redef :
685705
686706Check that each name is defined once [no-redef]
0 commit comments