Skip to content

Commit 472a154

Browse files
authored
docs: Put specific ignore comment for missing types
1 parent fb16e93 commit 472a154

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/source/running_mypy.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,7 @@ All this will do is make mypy stop reporting an error on the line containing the
309309
import: the imported module will continue to be of type ``Any``, and mypy may
310310
not catch errors in its use.
311311

312-
1. To suppress a *single* missing import error, add a ``# type: ignore`` at the end of the
312+
1. To suppress a *single* missing import error, add a ``# type: ignore[import-not-found]`` at the end of the
313313
line containing the import.
314314

315315
2. To suppress *all* missing import errors from a single library, add

0 commit comments

Comments
 (0)