From 472a154a71527fb3eac9306cf1eed6fb00a49d69 Mon Sep 17 00:00:00 2001 From: Yedaya Katsman Date: Sat, 25 Oct 2025 23:07:47 +0300 Subject: [PATCH] docs: Put specific ignore comment for missing types --- docs/source/running_mypy.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/running_mypy.rst b/docs/source/running_mypy.rst index 9f7461d24f72..8439c48bb8a1 100644 --- a/docs/source/running_mypy.rst +++ b/docs/source/running_mypy.rst @@ -309,7 +309,7 @@ All this will do is make mypy stop reporting an error on the line containing the import: the imported module will continue to be of type ``Any``, and mypy may not catch errors in its use. -1. To suppress a *single* missing import error, add a ``# type: ignore`` at the end of the +1. To suppress a *single* missing import error, add a ``# type: ignore[import-not-found]`` at the end of the line containing the import. 2. To suppress *all* missing import errors from a single library, add