Skip to content

Commit 05c764d

Browse files
committed
Add docstrings to numerator and denominator of Fraction
1 parent e5a4608 commit 05c764d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Lib/fractions.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -413,10 +413,12 @@ def limit_denominator(self, max_denominator=1000000):
413413

414414
@property
415415
def numerator(a):
416+
"""Numerator in lowest terms."""
416417
return a._numerator
417418

418419
@property
419420
def denominator(a):
421+
"""Denominator in lowest terms and positive."""
420422
return a._denominator
421423

422424
def __repr__(self):

0 commit comments

Comments
 (0)