From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Sat, 22 Aug 2020 09:06:54 +0000 (-0700) Subject: bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH... X-Git-Tag: v3.9.0rc2~77 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=f497bbeed08e5a7f83adecf330b61fb88e9c3fa6;p=thirdparty%2FPython%2Fcpython.git bpo-40994: Ungroup items in collections.abc documentation for improved clarity (GH-21880) (#21926) Use a less surprising document structure. Automerge-Triggered-By: @csabella (cherry picked from commit 2ce39631f679e14132a54dc90ce764259d26e166) Co-authored-by: Sydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com> --- diff --git a/Doc/library/collections.abc.rst b/Doc/library/collections.abc.rst index dc7ae30b6d2f..db0e25bb0772 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