]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
gh-151070: Fix class referencing typo in collections.abc docs (GH-151088)
authorArshal Aromal <arshalaromal19@gmail.com>
Mon, 8 Jun 2026 19:38:14 +0000 (01:08 +0530)
committerGitHub <noreply@github.com>
Mon, 8 Jun 2026 19:38:14 +0000 (22:38 +0300)
Doc/library/collections.abc.rst

index 51853725b1b297c1488d62c4d22bc49b49bd8881..10e3790717ed6edc987ceef08ad117e764923224 100644 (file)
@@ -456,7 +456,7 @@ Notes on using :class:`Set` and :class:`MutableSet` as a mixin:
    The :class:`Set` mixin provides a :meth:`!_hash` method to compute a hash value
    for the set; however, :meth:`~object.__hash__` is not defined because not all sets
    are :term:`hashable` or immutable.  To add set hashability using mixins,
-   inherit from both :meth:`Set` and :meth:`Hashable`, then define
+   inherit from both :class:`Set` and :class:`Hashable`, then define
    ``__hash__ = Set._hash``.
 
 .. seealso::