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 160f6cb commit 0b2db56Copy full SHA for 0b2db56
python/ql/src/semmle/python/objects/ObjectAPI.qll
@@ -423,7 +423,7 @@ class ClassValue extends Value {
423
* '__next__' method exists to define a class as an iterator.
424
*/
425
major_version() = 2 and this.hasAttribute("next") and
426
- exists(ClassObject other, FunctionObject iter |
+ exists(ClassValue other, FunctionValue iter |
427
other.declaredAttribute("__iter__") = iter |
428
iter.getAnInferredReturnType() = this
429
)
0 commit comments