mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Python: Add __aiter__ as a recognised iterator method.
This commit is contained in:
@@ -350,6 +350,8 @@ class ClassValue extends Value {
|
||||
predicate isIterable() {
|
||||
this.hasAttribute("__iter__")
|
||||
or
|
||||
this.hasAttribute("__aiter__")
|
||||
or
|
||||
this.hasAttribute("__getitem__")
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user