Skip to content

Commit c575b47

Browse files
committed
Add docstrings to numerator and denominator of Rational
1 parent ed48fb7 commit c575b47

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/numbers.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -297,11 +297,13 @@ class Rational(Real):
297297
@property
298298
@abstractmethod
299299
def numerator(self):
300+
"""The numerator of a rational number in lowest terms."""
300301
raise NotImplementedError
301302

302303
@property
303304
@abstractmethod
304305
def denominator(self):
306+
"""The (positive) denominator of a rational number in lowest terms."""
305307
raise NotImplementedError
306308

307309
# Concrete implementation of Real's conversion to float.

0 commit comments

Comments
 (0)