Python: Add __aiter__ as a recognised iterator method.

This commit is contained in:
Taus Brock-Nannestad
2019-09-23 12:24:32 +02:00
parent 7a57a3c743
commit e1012d8d5a
3 changed files with 30 additions and 0 deletions

View File

@@ -350,6 +350,8 @@ class ClassValue extends Value {
predicate isIterable() {
this.hasAttribute("__iter__")
or
this.hasAttribute("__aiter__")
or
this.hasAttribute("__getitem__")
}