Doc: No need to use rst syntax in code comments. (GH-93102)

And it raises `make suspicious` false positives.
(cherry picked from commit e739ff1416)

Co-authored-by: Julien Palard <julien@palard.fr>
This commit is contained in:
Miss Islington (bot) 2022-05-23 15:00:34 -07:00 committed by GitHub
parent b8c4cc6b76
commit fd35be511a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View 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: