summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew/3.11.rst
diff options
context:
space:
mode:
authorJulien Palard <julien@palard.fr>2022-05-23 21:45:16 (GMT)
committerGitHub <noreply@github.com>2022-05-23 21:45:16 (GMT)
commite739ff141680fd7e2a762cf98c4352c6c850af1f (patch)
tree84461bc0ec5065e28fe37e17efacb7dea892ebbe /Doc/whatsnew/3.11.rst
parent2176898308acafedf87a48d33f29645e79b9af86 (diff)
downloadcpython-e739ff141680fd7e2a762cf98c4352c6c850af1f.zip
cpython-e739ff141680fd7e2a762cf98c4352c6c850af1f.tar.gz
cpython-e739ff141680fd7e2a762cf98c4352c6c850af1f.tar.bz2
Doc: No need to use rst syntax in code comments. (GH-93102)
And it raises `make suspicious` false positives.
Diffstat (limited to 'Doc/whatsnew/3.11.rst')
-rw-r--r--Doc/whatsnew/3.11.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/3.11.rst b/Doc/whatsnew/3.11.rst
index ff94e45..12b4c22 100644
--- a/Doc/whatsnew/3.11.rst
+++ b/Doc/whatsnew/3.11.rst
@@ -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: