[Python-checkins] [3.10] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32374)

Fidget-Spinner webhook-mailer at python.org
Wed Apr 6 14:00:35 EDT 2022


https://github.com/python/cpython/commit/80af26d25af5568229d31ecb2a8f1bf9702b7791
commit: 80af26d25af5568229d31ecb2a8f1bf9702b7791
branch: 3.10
author: Ken Jin <kenjin4096 at gmail.com>
committer: Fidget-Spinner <kenjin4096 at gmail.com>
date: 2022-04-07T02:00:26+08:00
summary:

[3.10] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32374)

* Use double backticks to appease rstlint

* Update susp-ignored.csv

files:
M Doc/library/typing.rst
M Doc/tools/susp-ignored.csv

diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst
index ea0bcee81c50a..36d637f366509 100644
--- a/Doc/library/typing.rst
+++ b/Doc/library/typing.rst
@@ -1158,7 +1158,7 @@ These are not used in annotations. They are building blocks for creating generic
                self.radius = radius
 
            # Use a type variable to show that the return type
-           # will always be an instance of whatever `cls` is
+           # will always be an instance of whatever ``cls`` is
            @classmethod
            def with_circumference(cls: type[C], circumference: float) -> C:
                """Create a circle with the specified circumference"""
diff --git a/Doc/tools/susp-ignored.csv b/Doc/tools/susp-ignored.csv
index 0a8d702f96bce..d7d5b3547a9d9 100644
--- a/Doc/tools/susp-ignored.csv
+++ b/Doc/tools/susp-ignored.csv
@@ -384,4 +384,4 @@ library/typing,,`,# Type of ``val`` is narrowed to ``str``
 library/typing,,`,"# Else, type of ``val`` is narrowed to ``float``."
 library/typing,,`,# Type of ``val`` is narrowed to ``List[str]``.
 library/typing,,`,# Type of ``val`` remains as ``List[object]``.
-library/typing,,`,    # will always be an instance of whatever `cls` is
+library/typing,,`,    # will always be an instance of whatever ``cls`` is



More information about the Python-checkins mailing list