We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 31b0413 commit c246a52Copy full SHA for c246a52
docs/source/common_issues.rst
@@ -188,6 +188,8 @@ Ignoring a whole file
188
189
A ``# type: ignore`` comment at the top of a module (before any statements,
190
including imports or docstrings) has the effect of ignoring the entire contents of the module.
191
+This behaviour can be surprising and result in
192
+"Module ... has no attribute ... [attr-defined]" errors.
193
194
To only ignore errors, use a top-level ``# mypy: ignore-errors`` comment instead.
195
To only ignore errors with a specific error code, use a top-level
0 commit comments