Skip to content

Commit fb84af4

Browse files
committed
address review: restore Fraction.numerator/denominator in docs
1 parent 53e8c26 commit fb84af4

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

Doc/library/fractions.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -119,6 +119,15 @@ another number, or from a string.
119119
The :class:`Fraction` constructor now accepts any objects with the
120120
:meth:`!as_integer_ratio` method.
121121

122+
.. attribute:: numerator
123+
124+
Numerator of the Fraction in lowest term.
125+
126+
.. attribute:: denominator
127+
128+
Denominator of the Fraction in lowest term. Should be positive.
129+
130+
122131
.. method:: as_integer_ratio()
123132

124133
Return a tuple of two integers, whose ratio is equal

0 commit comments

Comments
 (0)