mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01:00
Python: ObjectAPI to ValueAPI: IterReturnsNonSelf: Autoformats
This commit is contained in:
@@ -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() }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user