Skip to content

Commit bb99355

Browse files
miss-islingtonBayel1602picnixz
authored
[3.15] gh-161311: Document inherited abstract methods in collections.abc (GH-161319) (#161330)
gh-161311: Document inherited abstract methods in `collections.abc` (GH-161319) (cherry picked from commit 1dd8e71) --------- Co-authored-by: Bayel1602 <bayel1602@gmail.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
1 parent 3e87c63 commit bb99355

1 file changed

Lines changed: 7 additions & 3 deletions

File tree

‎Doc/library/collections.abc.rst‎

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,9 @@ of three ways.
109109
Collections Abstract Base Classes
110110
---------------------------------
111111

112-
The collections module offers the following :term:`ABCs <abstract base class>`:
112+
The collections module offers the following :term:`ABCs <abstract base class>`,
113+
where the "Abstract Methods" column lists all required abstract methods,
114+
including those inherited from parent classes:
113115

114116
.. tabularcolumns:: |l|L|L|L|
115117

@@ -120,7 +122,8 @@ ABC Inherits from Abstract Methods Mi
120122
:class:`Hashable` [1]_ ``__hash__``
121123
:class:`Iterable` [1]_ [2]_ ``__iter__``
122124
:class:`Iterator` [1]_ :class:`Iterable` ``__next__`` ``__iter__``
123-
:class:`Reversible` [1]_ :class:`Iterable` ``__reversed__``
125+
:class:`Reversible` [1]_ :class:`Iterable` ``__iter__``,
126+
``__reversed__``
124127
:class:`Generator` [1]_ :class:`Iterator` ``send``, ``throw`` ``close``, ``__iter__``, ``__next__``
125128
:class:`Sized` [1]_ ``__len__``
126129
:class:`Callable` [1]_ ``__call__``
@@ -170,7 +173,8 @@ ABC Inherits from Abstract Methods Mi
170173
:class:`ValuesView` :class:`MappingView`, ``__contains__``, ``__iter__``
171174
:class:`Collection`
172175
:class:`Awaitable` [1]_ ``__await__``
173-
:class:`Coroutine` [1]_ :class:`Awaitable` ``send``, ``throw`` ``close``
176+
:class:`Coroutine` [1]_ :class:`Awaitable` ``__await__``, ``close``
177+
``send``, ``throw``
174178
:class:`AsyncIterable` [1]_ ``__aiter__``
175179
:class:`AsyncIterator` [1]_ :class:`AsyncIterable` ``__anext__`` ``__aiter__``
176180
:class:`AsyncGenerator` [1]_ :class:`AsyncIterator` ``asend``, ``athrow`` ``aclose``, ``__aiter__``, ``__anext__``

0 commit comments

Comments
 (0)