mirror of
https://github.com/python/cpython.git
synced 2025-12-23 09:19:18 +00:00
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 2ce39631f6)
Co-authored-by: Sydney Pemberton <46042811+sydneypemberton1986@users.noreply.github.com>
This commit is contained in:
parent
429a86a120
commit
f497bbeed0
1 changed files with 13 additions and 5 deletions
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue