Skip to content

Commit 216e909

Browse files
Bayel1602miss-islington
authored andcommitted
gh-161311: Document inherited abstract methods in collections.abc (GH-161319)
(cherry picked from commit 1dd8e71) Co-authored-by: Bayel1602 <bayel1602@gmail.com>
1 parent ae86660 commit 216e909

1 file changed

Lines changed: 7 additions & 2 deletions

File tree

‎Doc/library/collections.abc.rst‎

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,9 @@ Collections Abstract Base Classes
111111

112112
The collections module offers the following :term:`ABCs <abstract base class>`:
113113

114+
The "Abstract Methods" column lists all required abstract methods,
115+
including those inherited from parent classes.
116+
114117
.. tabularcolumns:: |l|L|L|L|
115118

116119
============================== ====================== ======================= ====================================================
@@ -120,7 +123,8 @@ ABC Inherits from Abstract Methods Mi
120123
:class:`Hashable` [1]_ ``__hash__``
121124
:class:`Iterable` [1]_ [2]_ ``__iter__``
122125
:class:`Iterator` [1]_ :class:`Iterable` ``__next__`` ``__iter__``
123-
:class:`Reversible` [1]_ :class:`Iterable` ``__reversed__``
126+
:class:`Reversible` [1]_ :class:`Iterable` ``__iter__``,
127+
``__reversed__``
124128
:class:`Generator` [1]_ :class:`Iterator` ``send``, ``throw`` ``close``, ``__iter__``, ``__next__``
125129
:class:`Sized` [1]_ ``__len__``
126130
:class:`Callable` [1]_ ``__call__``
@@ -170,7 +174,8 @@ ABC Inherits from Abstract Methods Mi
170174
:class:`ValuesView` :class:`MappingView`, ``__contains__``, ``__iter__``
171175
:class:`Collection`
172176
:class:`Awaitable` [1]_ ``__await__``
173-
:class:`Coroutine` [1]_ :class:`Awaitable` ``send``, ``throw`` ``close``
177+
:class:`Coroutine` [1]_ :class:`Awaitable` ``__await__``, ``close``
178+
``send``, ``throw``
174179
:class:`AsyncIterable` [1]_ ``__aiter__``
175180
:class:`AsyncIterator` [1]_ :class:`AsyncIterable` ``__anext__`` ``__aiter__``
176181
:class:`AsyncGenerator` [1]_ :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``, ``__anext__``

0 commit comments

Comments
 (0)