https://github.com/python/cpython/commit/1dd8e71354a07ec0d82d0f5d042e0470e9953346
commit: 1dd8e71354a07ec0d82d0f5d042e0470e9953346
branch: main
author: Bayel1602 <[email protected]>
committer: picnixz <[email protected]>
date: 2026-11-04T17:46:57+01:00
summary:
gh-161311: Document inherited abstract methods in `collections.abc` (#161319)
files:
M Doc/library/collections.abc.rst
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst
index 10e3790717ed6e..b897266d599283 100644
--- a/Doc/library/collections.abc.rst
+++ b/Doc/library/collections.abc.rst
@@ -111,6 +111,9 @@ Collections Abstract Base Classes
The collections module offers the following :term:`ABCs <abstract base class>`:
+The "Abstract Methods" column lists all required abstract methods,
+including those inherited from parent classes.
+
.. tabularcolumns:: |l|L|L|L|
============================== ====================== =======================
====================================================
@@ -120,7 +123,8 @@ ABC Inherits from
Abstract Methods Mi
:class:`Hashable` [1]_ ``__hash__``
:class:`Iterable` [1]_ [2]_ ``__iter__``
:class:`Iterator` [1]_ :class:`Iterable` ``__next__``
``__iter__``
-:class:`Reversible` [1]_ :class:`Iterable` ``__reversed__``
+:class:`Reversible` [1]_ :class:`Iterable` ``__iter__``,
+ ``__reversed__``
:class:`Generator` [1]_ :class:`Iterator` ``send``, ``throw``
``close``, ``__iter__``, ``__next__``
:class:`Sized` [1]_ ``__len__``
:class:`Callable` [1]_ ``__call__``
@@ -170,7 +174,8 @@ ABC Inherits from
Abstract Methods Mi
:class:`ValuesView` :class:`MappingView`,
``__contains__``, ``__iter__``
:class:`Collection`
:class:`Awaitable` [1]_ ``__await__``
-:class:`Coroutine` [1]_ :class:`Awaitable` ``send``, ``throw``
``close``
+:class:`Coroutine` [1]_ :class:`Awaitable` ``__await__``,
``close``
+ ``send``, ``throw``
:class:`AsyncIterable` [1]_ ``__aiter__``
:class:`AsyncIterator` [1]_ :class:`AsyncIterable` ``__anext__``
``__aiter__``
:class:`AsyncGenerator` [1]_ :class:`AsyncIterator` ``asend``, ``athrow``
``aclose``, ``__aiter__``, ``__anext__``
_______________________________________________
Python-checkins mailing list -- [email protected]
To unsubscribe send an email to [email protected]
https://mail.python.org/mailman3//lists/python-checkins.python.org
Member address: [email protected]