Python: ObjectAPI to ValueAPI: IterReturnsNonSelf: Autoformats

This commit is contained in:
Rebecca Valentine
2020-04-02 09:19:41 -07:00
parent cdda80623d
commit 712fb8badc
2 changed files with 17 additions and 16 deletions

View File

@@ -12,9 +12,7 @@
import python
Function iter_method(ClassValue t) {
result = ((FunctionValue)t.lookup("__iter__")).getScope()
}
Function iter_method(ClassValue t) { result = t.lookup("__iter__").(FunctionValue).getScope() }
predicate is_self(Name value, Function f) { value.getVariable() = f.getArg(0).(Name).getVariable() }