Skip to content

Commit

Permalink
Change :class: to :func: in docs
Browse files Browse the repository at this point in the history
  • Loading branch information
mdickinson committed May 29, 2024
1 parent c6a8f62 commit 7492da8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Doc/library/functions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -979,7 +979,7 @@ are always available. They are listed here in alphabetical order.
<int_max_str_digits>` documentation.

.. versionchanged:: 3.14
:class:`int` will no longer delegate to the :meth:`~object.__trunc__` method.
:func:`int` will no longer delegate to the :meth:`~object.__trunc__` method.


.. function:: isinstance(object, classinfo)
Expand Down
2 changes: 1 addition & 1 deletion Doc/reference/datamodel.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3128,7 +3128,7 @@ left undefined.
(typically an :class:`int`).

.. versionchanged:: 3.14
:class:`int` will no longer delegate to the :meth:`~object.__trunc__` method.
:func:`int` will no longer delegate to the :meth:`~object.__trunc__` method.


.. _context-managers:
Expand Down
3 changes: 1 addition & 2 deletions Doc/whatsnew/3.14.rst
Original file line number Diff line number Diff line change
Expand Up @@ -207,7 +207,7 @@ Others
It had previously raised a :exc:`DeprecationWarning` since Python 3.9. (Contributed
by Jelle Zijlstra in :gh:`118767`.)

* The :class:`int` built-in will no longer delegate to
* The :func:`int` built-in will no longer delegate to
:meth:`~object.__trunc__`. Classes that want to support conversion to
:class:`int` must implement either :meth:`~object.__int__` or
:meth:`~object.__index__`. (Contributed by Mark Dickinson in :gh:`119743`).
Expand Down Expand Up @@ -244,4 +244,3 @@ Deprecated

Removed
-------

0 comments on commit 7492da8

Please sign in to comment.