Skip to content

Commit 0694b82

Browse files
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (pythonGH-21880) (python#21927)
Use a less surprising document structure. Automerge-Triggered-By: @csabella (cherry picked from commit 2ce3963) Co-authored-by: Sydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com>
1 parent 1370d9d commit 0694b82

File tree

1 file changed

+13
-5
lines changed

1 file changed

+13
-5
lines changed

Doc/library/collections.abc.rst

+13-5
Original file line numberDiff line numberDiff line change
@@ -98,12 +98,20 @@ ABC Inherits from Abstract Methods Mixin
9898

9999

100100
.. class:: Container
101-
Hashable
102-
Sized
103-
Callable
104101

105-
ABCs for classes that provide respectively the methods :meth:`__contains__`,
106-
:meth:`__hash__`, :meth:`__len__`, and :meth:`__call__`.
102+
ABC for classes that provide the :meth:`__contains__` method.
103+
104+
.. class:: Hashable
105+
106+
ABC for classes that provide the :meth:`__hash__` method.
107+
108+
.. class:: Sized
109+
110+
ABC for classes that provide the :meth:`__len__` method.
111+
112+
.. class:: Callable
113+
114+
ABC for classes that provide the :meth:`__call__` method.
107115

108116
.. class:: Iterable
109117

0 commit comments

Comments
 (0)