Skip to content

Commit d7b855c

Browse files
qhelp fix
1 parent 9af2ab8 commit d7b855c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/Functions/IncorrectRaiseInSpecialMethod.qhelp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ In the following example, the <code>__getitem__</code> method of <code>C</code>
4949
</p>
5050
<sample src="examples/IncorrectRaiseInSpecialMethod2.py" />
5151
<p>
52-
In the following example, the class <code>__hash__</code> method of <code>D</code> raises <code>TypeError</code>.
52+
In the following example, the class <code>__hash__</code> method of <code>D</code> raises <code>NotImplementedError</code>.
5353
This causes <code>D</code> to be incorrectly identified as hashable by <code>isinstance(obj, collections.abc.Hashable)</code>; so the correct
5454
way to make a class unhashable is to set <code>__hash__ = None</code>.
5555
</p>

0 commit comments

Comments
 (0)