[Python-checkins] bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21927)

Miss Islington (bot) webhook-mailer at python.org
Sat Aug 22 05:06:40 EDT 2020


https://github.com/python/cpython/commit/0694b82381ff27e10bb15172da0832a7e65aaa2d
commit: 0694b82381ff27e10bb15172da0832a7e65aaa2d
branch: 3.8
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: GitHub <noreply at github.com>
date: 2020-08-22T05:06:14-04:00
summary:

bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21927)

Use a less surprising document structure.

Automerge-Triggered-By: @csabella
(cherry picked from commit 2ce39631f679e14132a54dc90ce764259d26e166)

Co-authored-by: Sydney Pemberton <46042811+sydneypemberton1986 at users.noreply.github.com>

files:
M Doc/library/collections.abc.rst

diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst
index dc7ae30b6d2fa..db0e25bb0772e 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
 



More information about the Python-checkins mailing list