]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Doc: No need to use rst syntax in code comments. (GH-93102)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 23 May 2022 22:00:34 +0000 (15:00 -0700)
committerGitHub <noreply@github.com>
Mon, 23 May 2022 22:00:34 +0000 (15:00 -0700)
And it raises `make suspicious` false positives.
(cherry picked from commit e739ff141680fd7e2a762cf98c4352c6c850af1f)

Co-authored-by: Julien Palard <julien@palard.fr>
Doc/whatsnew/3.11.rst

index ff94e45f77c70a211aed4279795794b454a44560..12b4c22d5480781b5edd644f485d9bd0c70130c3 100644 (file)
@@ -314,7 +314,7 @@ transforms a class, giving it :func:`dataclasses.dataclass`-like behaviors.
 
 For example::
 
-    # The ``create_model`` decorator is defined by a library.
+    # The create_model decorator is defined by a library.
     @typing.dataclass_transform()
     def create_model(cls: Type[T]) -> Type[T]:
         cls.__init__ = ...
@@ -322,7 +322,7 @@ For example::
         cls.__ne__ = ...
         return cls
 
-    # The ``create_model`` decorator can now be used to create new model
+    # The create_model decorator can now be used to create new model
     # classes, like this:
     @create_model
     class CustomerModel: