@@ -1375,7 +1375,7 @@ Basic customization
13751375 :meth: `__hash__ ` method of a class is ``None ``, instances of the class will
13761376 raise an appropriate :exc: `TypeError ` when a program attempts to retrieve
13771377 their hash value, and will also be correctly identified as unhashable when
1378- checking ``isinstance(obj, collections.Hashable) ``.
1378+ checking ``isinstance(obj, collections.abc. Hashable) ``.
13791379
13801380 If a class that overrides :meth: `__eq__ ` needs to retain the implementation
13811381 of :meth: `__hash__ ` from a parent class, the interpreter must be told this
@@ -1385,7 +1385,7 @@ Basic customization
13851385 support, it should include ``__hash__ = None `` in the class definition.
13861386 A class which defines its own :meth: `__hash__ ` that explicitly raises
13871387 a :exc: `TypeError ` would be incorrectly identified as hashable by
1388- an ``isinstance(obj, collections.Hashable) `` call.
1388+ an ``isinstance(obj, collections.abc. Hashable) `` call.
13891389
13901390
13911391 .. note ::
@@ -1981,7 +1981,7 @@ range of items. It is also recommended that mappings provide the methods
19811981:meth: `keys `, :meth: `values `, :meth: `items `, :meth: `get `, :meth: `clear `,
19821982:meth: `setdefault `, :meth: `pop `, :meth: `popitem `, :meth: `!copy `, and
19831983:meth: `update ` behaving similar to those for Python's standard dictionary
1984- objects. The :mod: `collections ` module provides a
1984+ objects. The :mod: `collections.abc ` module provides a
19851985:class: `~collections.abc.MutableMapping `
19861986abstract base class to help create those methods from a base set of
19871987:meth: `__getitem__ `, :meth: `__setitem__ `, :meth: `__delitem__ `, and :meth: `keys `.
0 commit comments