summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorSydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com>2020-08-20 10:30:21 (GMT)
committerGitHub <noreply@github.com>2020-08-20 10:30:21 (GMT)
commit2ce39631f679e14132a54dc90ce764259d26e166 (patch)
tree8b627fd983d99a3d44f35c7f142a441faf7d2566 /Doc/library
parent0be7c216e16f0d459f1c8f6209734c9b2b82fbd4 (diff)
downloadcpython-2ce39631f679e14132a54dc90ce764259d26e166.zip
cpython-2ce39631f679e14132a54dc90ce764259d26e166.tar.gz
cpython-2ce39631f679e14132a54dc90ce764259d26e166.tar.bz2
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880)
Use a less surprising document structure. Automerge-Triggered-By: @csabella
Diffstat (limited to 'Doc/library')
-rw-r--r--Doc/library/collections.abc.rst18
1 files changed, 13 insertions, 5 deletions
diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst
index dc7ae30..db0e25b 100644
--- a/Doc/library/collections.abc.rst
+++ b/Doc/library/collections.abc.rst
@@ -98,12 +98,20 @@ ABC Inherits from Abstract Methods Mixin
.. class:: Container
- Hashable
- Sized
- Callable
- ABCs for classes that provide respectively the methods :meth:`__contains__`,
- :meth:`__hash__`, :meth:`__len__`, and :meth:`__call__`.
+ ABC for classes that provide the :meth:`__contains__` method.
+
+.. class:: Hashable
+
+ ABC for classes that provide the :meth:`__hash__` method.
+
+.. class:: Sized
+
+ ABC for classes that provide the :meth:`__len__` method.
+
+.. class:: Callable
+
+ ABC for classes that provide the :meth:`__call__` method.
.. class:: Iterable