Skip to content

Commit fd35be5

Browse files
Doc: No need to use rst syntax in code comments. (GH-93102)
And it raises `make suspicious` false positives. (cherry picked from commit e739ff1) Co-authored-by: Julien Palard <[email protected]>
1 parent b8c4cc6 commit fd35be5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/whatsnew/3.11.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -314,15 +314,15 @@ transforms a class, giving it :func:`dataclasses.dataclass`-like behaviors.
314314

315315
For example::
316316

317-
# The ``create_model`` decorator is defined by a library.
317+
# The create_model decorator is defined by a library.
318318
@typing.dataclass_transform()
319319
def create_model(cls: Type[T]) -> Type[T]:
320320
cls.__init__ = ...
321321
cls.__eq__ = ...
322322
cls.__ne__ = ...
323323
return cls
324324

325-
# The ``create_model`` decorator can now be used to create new model
325+
# The create_model decorator can now be used to create new model
326326
# classes, like this:
327327
@create_model
328328
class CustomerModel:

0 commit comments

Comments
 (0)