Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
Co-authored-by: Mark Dickinson <dickinsm@gmail.com>
  • Loading branch information
serhiy-storchaka and mdickinson authored Jul 15, 2024
1 parent d912784 commit dd35752
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -387,7 +387,7 @@ are always available. They are listed here in alphabetical order.
to :meth:`~object.__float__`. If :meth:`!__float__` is not defined then it falls back
to :meth:`~object.__index__`.

See also :meth:`complex.from_number` which only accept single numeric argument.
See also :meth:`complex.from_number` which only accepts a single numeric argument.

.. note::

Expand Down Expand Up @@ -686,7 +686,7 @@ are always available. They are listed here in alphabetical order.
``x.__float__()``. If :meth:`~object.__float__` is not defined then it falls back
to :meth:`~object.__index__`.

See also :meth:`float.from_number` which only accept numeric argument.
See also :meth:`float.from_number` which only accepts a numeric argument.

If no argument is given, ``0.0`` is returned.

Expand Down
2 changes: 1 addition & 1 deletion Doc/whatsnew/3.13.rst
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ Other Language Changes

* Added class methods :meth:`float.from_number` and :meth:`complex.from_number`
to convert a number to :class:`float` or :class:`complex` type correspondingly.
They raise error if the argument is a string.
They raise an error if the argument is a string.
(Contributed by Serhiy Storchaka in :gh:`84978`.)

* Allow the *count* argument of :meth:`str.replace` to be a keyword.
Expand Down

0 comments on commit dd35752

Please sign in to comment.