mirror of
https://github.com/github/codeql.git
synced 2026-04-30 03:05:15 +02:00
Update python/ql/test/query-tests/Functions/general/protocols.py
Co-authored-by: Rasmus Wriedt Larsen <rasmuswriedtlarsen@gmail.com>
This commit is contained in:
@@ -117,5 +117,7 @@ class OK(object):
|
||||
yield 0
|
||||
raise StopIteration
|
||||
|
||||
# __bool__ returns `True` by default, so raising `TypeError` should not give an alert
|
||||
# FP reported in https://github.com/github/codeql/issues/2388
|
||||
def __bool__(self):
|
||||
raise TypeError
|
||||
raise TypeError
|
||||
|
||||
Reference in New Issue
Block a user