diff --git a/Doc/library/functions.rst b/Doc/library/functions.rst index ff9a8f174aaa86..624ff954c663a0 100644 --- a/Doc/library/functions.rst +++ b/Doc/library/functions.rst @@ -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:: @@ -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. diff --git a/Doc/whatsnew/3.13.rst b/Doc/whatsnew/3.13.rst index 503df83241d756..a804b1e3acd147 100644 --- a/Doc/whatsnew/3.13.rst +++ b/Doc/whatsnew/3.13.rst @@ -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.