]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-114990: Add missing mixin methods in collections.abc's document (GH-114991)
authorAN Long <aisk@users.noreply.github.com>
Wed, 30 Oct 2024 20:17:20 +0000 (04:17 +0800)
committerGitHub <noreply@github.com>
Wed, 30 Oct 2024 20:17:20 +0000 (13:17 -0700)
Co-authored-by: Carol Willing <carolcode@willingconsulting.com>
Doc/library/collections.abc.rst

index b77a36393b2769c3520c95f130cdf0ccae063887..42e40de152148c495ab645444078adf53224dde7 100644 (file)
@@ -143,7 +143,8 @@ ABC                            Inherits from          Abstract Methods        Mi
 
 :class:`Set`                   :class:`Collection`    ``__contains__``,       ``__le__``, ``__lt__``, ``__eq__``, ``__ne__``,
                                                       ``__iter__``,           ``__gt__``, ``__ge__``, ``__and__``, ``__or__``,
-                                                      ``__len__``             ``__sub__``, ``__xor__``, and ``isdisjoint``
+                                                      ``__len__``             ``__sub__``, ``__rsub__``, ``__xor__``, ``__rxor__``
+                                                                              and ``isdisjoint``
 
 :class:`MutableSet`            :class:`Set`           ``__contains__``,       Inherited :class:`Set` methods and
                                                       ``__iter__``,           ``clear``, ``pop``, ``remove``, ``__ior__``,
@@ -162,7 +163,7 @@ ABC                            Inherits from          Abstract Methods        Mi
                                                       ``__len__``
 
 
-:class:`MappingView`           :class:`Sized`                                 ``__len__``
+:class:`MappingView`           :class:`Sized`                                 ``__init__``, ``__len__`` and ``__repr__``
 :class:`ItemsView`             :class:`MappingView`,                          ``__contains__``,
                                :class:`Set`                                   ``__iter__``
 :class:`KeysView`              :class:`MappingView`,                          ``__contains__``,