Skip to content

Commit 5168063

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 5df9c4d commit 5168063

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
@@ -114,6 +114,9 @@ Collections Abstract Base Classes
114114

115115
The collections module offers the following :term:`ABCs <abstract base class>`:
116116

117+
The "Abstract Methods" column lists all required abstract methods,
118+
including those inherited from parent classes.
119+
117120
.. tabularcolumns:: |l|L|L|L|
118121

119122
============================== ====================== ======================= ====================================================
@@ -123,7 +126,8 @@ ABC Inherits from Abstract Methods Mi
123126
:class:`Hashable` [1]_ ``__hash__``
124127
:class:`Iterable` [1]_ [2]_ ``__iter__``
125128
:class:`Iterator` [1]_ :class:`Iterable` ``__next__`` ``__iter__``
126-
:class:`Reversible` [1]_ :class:`Iterable` ``__reversed__``
129+
:class:`Reversible` [1]_ :class:`Iterable` ``__iter__``,
130+
``__reversed__``
127131
:class:`Generator` [1]_ :class:`Iterator` ``send``, ``throw`` ``close``, ``__iter__``, ``__next__``
128132
:class:`Sized` [1]_ ``__len__``
129133
:class:`Callable` [1]_ ``__call__``
@@ -173,7 +177,8 @@ ABC Inherits from Abstract Methods Mi
173177
:class:`ValuesView` :class:`MappingView`, ``__contains__``, ``__iter__``
174178
:class:`Collection`
175179
:class:`Awaitable` [1]_ ``__await__``
176-
:class:`Coroutine` [1]_ :class:`Awaitable` ``send``, ``throw`` ``close``
180+
:class:`Coroutine` [1]_ :class:`Awaitable` ``__await__``, ``close``
181+
``send``, ``throw``
177182
:class:`AsyncIterable` [1]_ ``__aiter__``
178183
:class:`AsyncIterator` [1]_ :class:`AsyncIterable` ``__anext__`` ``__aiter__``
179184
:class:`AsyncGenerator` [1]_ :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``, ``__anext__``

0 commit comments

Comments
 (0)