File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change @@ -481,12 +481,9 @@ Example:
481481 # Error: unused "type: ignore" comment
482482 return a + b # type: ignore
483483
484- Mypy errors can typically be silenced by putting a ``# type: ignore `` comment after them,
485- but because this is *already * a ``# type: ignore `` comment, the only way to selectively
486- silence it is to include the error code explicitly, making the comment
487- ``# type: ignore[unused-ignore] ``.
488-
489- This error is not shown if the ``# type: ignore `` is not used due to code being statically
484+ Note that due to a specific nature of this comment, the only way to selectively
485+ silence it, is to include the error code explicitly. Also note that this error is
486+ not shown if the ``# type: ignore `` is not used due to code being statically
490487unreachable (e.g. due to platform or version checks).
491488
492489Example:
You can’t perform that action at this time.
0 commit comments