Skip to content
Merged
Prev Previous commit
Next Next commit
Address review 2
  • Loading branch information
AlexWaygood committed May 8, 2022
commit 20399c34689175201657647da236d430700cbc74
3 changes: 2 additions & 1 deletion Doc/library/decimal.rst
Original file line number Diff line number Diff line change
Expand Up @@ -585,7 +585,8 @@ Decimal objects

.. classmethod:: from_float(f)

Alternative constructor that only accepts instances of :class:`float`.
Alternative constructor that only accepts instances of :class:`float` or
Comment thread
AlexWaygood marked this conversation as resolved.
:class:`int`.

.. versionadded:: 3.1

Expand Down
4 changes: 2 additions & 2 deletions Doc/library/fractions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -117,12 +117,12 @@ another rational number, or from a string.
.. classmethod:: from_float(flt)

Alternative constructor which only accepts instances of
:class:`~numbers.Integral` or :class:`float`.
:class:`float` or :class:`numbers.Integral`.

.. classmethod:: from_decimal(dec)

Alternative constructor which only accepts instances of
:class:`decimal.Decimal`.
:class:`decimal.Decimal` or :class:`numbers.Integral`.

.. method:: limit_denominator(max_denominator=1000000)

Expand Down