We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9af2ab8 commit d7b855cCopy full SHA for d7b855c
python/ql/src/Functions/IncorrectRaiseInSpecialMethod.qhelp
@@ -49,7 +49,7 @@ In the following example, the <code>__getitem__</code> method of <code>C</code>
49
</p>
50
<sample src="examples/IncorrectRaiseInSpecialMethod2.py" />
51
<p>
52
-In the following example, the class <code>__hash__</code> method of <code>D</code> raises <code>TypeError</code>.
+In the following example, the class <code>__hash__</code> method of <code>D</code> raises <code>NotImplementedError</code>.
53
This causes <code>D</code> to be incorrectly identified as hashable by <code>isinstance(obj, collections.abc.Hashable)</code>; so the correct
54
way to make a class unhashable is to set <code>__hash__ = None</code>.
55
0 commit comments