From d022d338b40b2fd4f5679d9b42c2ebaeb384d6f6 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Sun, 24 Oct 2021 23:08:05 +0530 Subject: [PATCH 1/3] Fix typo --- docs/source/type_inference_and_annotations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/type_inference_and_annotations.rst b/docs/source/type_inference_and_annotations.rst index 14aceb523c31..cccb4827dfe4 100644 --- a/docs/source/type_inference_and_annotations.rst +++ b/docs/source/type_inference_and_annotations.rst @@ -224,7 +224,7 @@ You might want to disable type checking on specific lines, or within specific files in your codebase. To do that, you can use a ``# type: ignore`` comment. For example, say that the web framework that you use now takes an integer -argument to ``run()``, which starts it on localhost on that port. Liks so: +argument to ``run()``, which starts it on localhost on that port. Like so: .. code-block:: python From 7a131ff3c0a7389f3711c97f35589b7a2c5a69cb Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Sun, 24 Oct 2021 23:11:31 +0530 Subject: [PATCH 2/3] Fix backticks --- docs/source/type_inference_and_annotations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/type_inference_and_annotations.rst b/docs/source/type_inference_and_annotations.rst index cccb4827dfe4..2fdcb516b375 100644 --- a/docs/source/type_inference_and_annotations.rst +++ b/docs/source/type_inference_and_annotations.rst @@ -232,7 +232,7 @@ argument to ``run()``, which starts it on localhost on that port. Like so: app.run(8000) However, the type stubs that the package uses is not up-to-date, and it still -expects only `str` types for `run()`. This would give you the following error: +expects only ``str`` types for ``run()``. This would give you the following error: .. code-block:: text From 0c3472bd066d4dcb1568b087402fcbc62797b693 Mon Sep 17 00:00:00 2001 From: Tushar Sadhwani Date: Sun, 24 Oct 2021 23:13:34 +0530 Subject: [PATCH 3/3] Fix wording --- docs/source/type_inference_and_annotations.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/source/type_inference_and_annotations.rst b/docs/source/type_inference_and_annotations.rst index 2fdcb516b375..cba505d4bf71 100644 --- a/docs/source/type_inference_and_annotations.rst +++ b/docs/source/type_inference_and_annotations.rst @@ -266,7 +266,7 @@ If your error displays an error code, like so: error: "str" has no attribute "trim" [attr-defined] -It is possible to add a specific error-code in your message, like +It is possible to add a specific error-code in your ignore comment, like ``# type: ignore[attr-defined]``, to clarify what's being silenced. You can find more information about error codes here: :ref:`silence-error-codes`.