]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH...
authorSydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com>
Thu, 20 Aug 2020 10:30:21 +0000 (05:30 -0500)
committerGitHub <noreply@github.com>
Thu, 20 Aug 2020 10:30:21 +0000 (03:30 -0700)
Use a less surprising document structure.

Automerge-Triggered-By: @csabella
Doc/library/collections.abc.rst

index dc7ae30b6d2fa289cf1ad6a4916cbbcf97794d2d..db0e25bb0772eb21e3f939d0e15d4042ab681362 100644 (file)
@@ -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