Skip to content

Commit d69d8e0

Browse files
committed
Use :type:, not :rtype:, for attributes.
1 parent 437320d commit d69d8e0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/string.templatelib.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -224,15 +224,15 @@ reassigned.
224224
.. attribute:: value
225225

226226
:returns: The evaluated value of the interpolation.
227-
:rtype: object
227+
:type: object
228228

229229
>>> t"{1 + 2}".interpolations[0].value
230230
3
231231

232232
.. attribute:: expression
233233

234234
:returns: The text of a valid Python expression, or an empty string.
235-
:rtype: str
235+
:type: str
236236

237237
The :attr:`~Interpolation.expression` is the original text of the
238238
interpolation's Python expression, if the interpolation was created
@@ -246,7 +246,7 @@ reassigned.
246246
.. attribute:: conversion
247247

248248
:returns: The conversion to apply to the value, or ``None``.
249-
:rtype: ``Literal["a", "r", "s"] | None``
249+
:type: ``Literal["a", "r", "s"] | None``
250250

251251
The :attr:`!Interpolation.conversion` is the optional conversion to apply
252252
to the value:
@@ -264,7 +264,7 @@ reassigned.
264264
.. attribute:: format_spec
265265

266266
:returns: The format specification to apply to the value.
267-
:rtype: str
267+
:type: str
268268

269269
The :attr:`!Interpolation.format_spec` is an optional, arbitrary string
270270
used as the format specification to present the value:

0 commit comments

Comments
 (0)