Skip to content

Commit 76a7542

Browse files
Fix typo in documentation (#11381)
1 parent 8052c8d commit 76a7542

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/source/type_inference_and_annotations.rst

+3-3
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ You might want to disable type checking on specific lines, or within specific
224224
files in your codebase. To do that, you can use a ``# type: ignore`` comment.
225225

226226
For example, say that the web framework that you use now takes an integer
227-
argument to ``run()``, which starts it on localhost on that port. Liks so:
227+
argument to ``run()``, which starts it on localhost on that port. Like so:
228228

229229
.. code-block:: python
230230
231231
# Starting app on http://localhost:8000
232232
app.run(8000)
233233
234234
However, the type stubs that the package uses is not up-to-date, and it still
235-
expects only `str` types for `run()`. This would give you the following error:
235+
expects only ``str`` types for ``run()``. This would give you the following error:
236236

237237
.. code-block:: text
238238
@@ -266,7 +266,7 @@ If your error displays an error code, like so:
266266
error: "str" has no attribute "trim" [attr-defined]
267267
268268
269-
It is possible to add a specific error-code in your message, like
269+
It is possible to add a specific error-code in your ignore comment, like
270270
``# type: ignore[attr-defined]``, to clarify what's being silenced. You can
271271
find more information about error codes here: :ref:`silence-error-codes`.
272272

0 commit comments

Comments
 (0)