We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 1817d2a + e5eadf9 commit 21d1ea5Copy full SHA for 21d1ea5
python/ql/test/query-tests/Functions/general/protocols.py
@@ -117,9 +117,11 @@ def __call__(self):
117
yield 0
118
raise StopIteration
119
120
+ # __bool__ returns `True` by default, so raising `TypeError` should not give an alert
121
+ # FP reported in https://github.com/github/codeql/issues/2388
122
def __bool__(self):
123
raise TypeError
124
125
class BadBool(object):
126
- raise ZeroDivisionError()
127
+ raise ZeroDivisionError()
0 commit comments