Skip to content

Commit 83356f7

Browse files
committed
Issue #25418: Fix markup in object.__hash__ documentation
Patch by TAKASE Arihiro.
2 parents 1eca237 + 85d5d90 commit 83356f7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/datamodel.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1341,7 +1341,7 @@ Basic customization
13411341
:meth:`__hash__` method of a class is ``None``, instances of the class will
13421342
raise an appropriate :exc:`TypeError` when a program attempts to retrieve
13431343
their hash value, and will also be correctly identified as unhashable when
1344-
checking ``isinstance(obj, collections.Hashable``).
1344+
checking ``isinstance(obj, collections.Hashable)``.
13451345

13461346
If a class that overrides :meth:`__eq__` needs to retain the implementation
13471347
of :meth:`__hash__` from a parent class, the interpreter must be told this

0 commit comments

Comments
 (0)