From: Ken Jin Date: Wed, 6 Apr 2022 18:00:26 +0000 (+0700) Subject: [3.10] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32374) X-Git-Tag: v3.10.5~194 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=80af26d25af5568229d31ecb2a8f1bf9702b7791;p=thirdparty%2FPython%2Fcpython.git [3.10] bpo-46769: Fix backticks in typing.rst to appease rstlint (GH-32374) * Use double backticks to appease rstlint * Update susp-ignored.csv --- diff --git a/Doc/library/typing.rst b/Doc/library/typing.rst index ea0bcee81c50..36d637f36650 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 0a8d702f96bc..d7d5b3547a9d 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