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

Use a less surprising document structure.

Automerge-Triggered-By: @csabella
This commit is contained in:
Sydney Pemberton 2020-08-20 05:30:21 -05:00 committed by GitHub
parent 0be7c216e1
commit 2ce39631f6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 13 additions and 5 deletions

View File

@ -98,12 +98,20 @@ ABC Inherits from Abstract Methods Mixin
.. class:: Container .. class:: Container
Hashable
Sized
Callable
ABCs for classes that provide respectively the methods :meth:`__contains__`, ABC for classes that provide the :meth:`__contains__` method.
:meth:`__hash__`, :meth:`__len__`, and :meth:`__call__`.
.. 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 .. class:: Iterable