File tree 1 file changed +6
-4
lines changed
1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -102,8 +102,8 @@ The meaning of annotations
102
102
103
103
Any function without annotations should be treated as having the most
104
104
general type possible, or ignored, by any type checker. Functions
105
- with the ``@no_type_check`` decorator or with a ``# type: ignore``
106
- comment should be treated as having no annotations.
105
+ with the ``@no_type_check`` decorator should be treated as having
106
+ no annotations.
107
107
108
108
It is recommended but not required that checked functions have
109
109
annotations for all arguments and the return type. For a checked
@@ -1349,8 +1349,10 @@ error refers to::
1349
1349
'not_found': http.client.NOT_FOUND # type: ignore
1350
1350
}
1351
1351
1352
- A ``# type: ignore`` comment on a line by itself disables all type
1353
- checking for the rest of the file.
1352
+ A ``# type: ignore`` comment on a line by itself is equivalent to
1353
+ adding an inline ``# type: ignore`` to each line until the end of
1354
+ the current indented block. At top indentation level this has
1355
+ effect of disabling type checking until the end of file.
1354
1356
1355
1357
If type hinting proves useful in general, a syntax for typing variables
1356
1358
may be provided in a future Python version.
You can’t perform that action at this time.
0 commit comments