Skip to content

Commit 1eb2d5e

Browse files
committed
Review timedelta class references
1 parent b82789d commit 1eb2d5e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Doc/library/datetime.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,9 @@ objects (see below).
416416

417417
.. versionchanged:: 3.2
418418
Floor division and true division of a :class:`timedelta` object by another
419-
:class:`timedelta` object are now supported, as are remainder operations and
419+
:class:`!timedelta` object are now supported, as are remainder operations and
420420
the :func:`divmod` function. True division and multiplication of a
421-
:class:`timedelta` object by a :class:`float` object are now supported.
421+
:class:`!timedelta` object by a :class:`float` object are now supported.
422422

423423
:class:`timedelta` objects support equality and order comparisons.
424424

@@ -564,7 +564,7 @@ Other constructors, all class methods:
564564

565565
.. classmethod:: date.strptime(date_string, format)
566566

567-
Return a :class:`.date` corresponding to *date_string*, parsed according to
567+
Return a :class:`date` corresponding to *date_string*, parsed according to
568568
*format*. This is equivalent to::
569569

570570
date(*(time.strptime(date_string, format)[0:3]))
@@ -681,7 +681,7 @@ Notes:
681681
In other words, ``date1 < date2`` if and only if ``date1.toordinal() <
682682
date2.toordinal()``.
683683

684-
Order comparison between a :class:`!date` object that is not also a
684+
Order comparison between a :class:`date` object that is not also a
685685
:class:`.datetime` instance and a :class:`!datetime` object raises
686686
:exc:`TypeError`.
687687

0 commit comments

Comments
 (0)