Skip to content

Commit 04fb325

Browse files
committed
Review datetime class references
1 parent 7937ad4 commit 04fb325

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Doc/library/datetime.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ purely up to the program, just like it is up to the program whether a
6363
particular number represents metres, miles, or mass. Naive objects are easy to
6464
understand and to work with, at the cost of ignoring some aspects of reality.
6565

66-
For applications requiring aware objects, :class:`datetime` and :class:`time`
66+
For applications requiring aware objects, :class:`.datetime` and :class:`.time`
6767
objects have an optional time zone information attribute, :attr:`!tzinfo`, that
6868
can be set to an instance of a subclass of the abstract :class:`tzinfo` class.
6969
These :class:`tzinfo` objects capture information about the offset from UTC
@@ -1264,7 +1264,7 @@ Supported operations:
12641264
datetime, and no time zone adjustments are done even if the input is aware.
12651265

12661266
(3)
1267-
Subtraction of a :class:`.datetime` from a :class:`.datetime` is defined only if
1267+
Subtraction of a :class:`.datetime` from a :class:`!datetime` is defined only if
12681268
both operands are naive, or if both are aware. If one is aware and the other is
12691269
naive, :exc:`TypeError` is raised.
12701270

0 commit comments

Comments
 (0)