]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32374)
authorKen Jin <kenjin4096@gmail.com>
Wed, 6 Apr 2022 18:00:26 +0000 (01:00 +0700)
committerGitHub <noreply@github.com>
Wed, 6 Apr 2022 18:00:26 +0000 (02:00 +0800)
* Use double backticks to appease rstlint

* Update susp-ignored.csv

Doc/library/typing.rst
Doc/tools/susp-ignored.csv

index ea0bcee81c50aa531194e0b89e77234dc3a4cebd..36d637f36650925929a4898abe13d681435aa0fb 100644 (file)
@@ -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"""
index 0a8d702f96bce29d359bf8eb866d595501855744..d7d5b3547a9d9c2eb18d131f586e33fe12adadab 100644 (file)
@@ -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