Thanks to visit codestin.com Credit goes to github.com
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 6484430 commit 5d6bde6Copy full SHA for 5d6bde6
1 file changed
docs/source/common_issues.rst
@@ -148,6 +148,14 @@ error:
148
The second line is now fine, since the ignore comment causes the name
149
``frobnicate`` to get an implicit ``Any`` type.
150
151
+The type ignore comment must be at the start of the comments on a line.
152
+This type ignore will not take effect:
153
+
154
+.. code-block:: python
155
156
+ import frobnicate #example other comment # type: ignore
157
+ frobnicate.start()
158
159
.. note::
160
161
You can use the form ``# type: ignore[<code>]`` to only ignore
0 commit comments