Skip to content

Commit 0b2db56

Browse files
committed
Python: ObjectAPI to ValueAPI: ObjectAPI.qll: Fixes error in isIterator
1 parent 160f6cb commit 0b2db56

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

python/ql/src/semmle/python/objects/ObjectAPI.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -423,7 +423,7 @@ class ClassValue extends Value {
423423
* '__next__' method exists to define a class as an iterator.
424424
*/
425425
major_version() = 2 and this.hasAttribute("next") and
426-
exists(ClassObject other, FunctionObject iter |
426+
exists(ClassValue other, FunctionValue iter |
427427
other.declaredAttribute("__iter__") = iter |
428428
iter.getAnInferredReturnType() = this
429429
)

0 commit comments

Comments
 (0)