Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Apply suggestions from code review
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
  • Loading branch information
skirpichev and mdickinson authored Feb 27, 2023
commit 7892a40bf48f6ba2524a86d2358a7516145ad6d0
2 changes: 1 addition & 1 deletion Doc/library/stdtypes.rst
Original file line number Diff line number Diff line change
Expand Up @@ -621,7 +621,7 @@ class`. float also has the following additional methods.
.. method:: float.as_integer_ratio()

Return a pair of integers whose ratio is exactly equal to the
original float, is in lowest terms and with a positive denominator. Raises
original float. The ratio is in lowest terms and has a positive denominator. Raises
:exc:`OverflowError` on infinities and a :exc:`ValueError` on
NaNs.

Expand Down
2 changes: 1 addition & 1 deletion Lib/fractions.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ def is_integer(self):
def as_integer_ratio(self):
"""Return a pair of integers, whose ratio is equal to the original Fraction.

The ratio is in lowest terms and with a positive denominator.
The ratio is in lowest terms and has a positive denominator.
"""
return (self._numerator, self._denominator)

Expand Down