mirror of
https://github.com/github/codeql.git
synced 2026-04-20 22:44:52 +02:00
Python: ObjectAPI to ValueAPI: ReturnValueIgnored: Reorganizes predicates
This commit is contained in:
@@ -50,7 +50,7 @@ predicate returns_meaningful_value(FunctionValue f) {
|
||||
*/
|
||||
|
||||
f.isBuiltin() and
|
||||
f.(CallableObjectInternal).getAnInferredReturnType() != ClassValue::nonetype() and
|
||||
f.getAnInferredReturnType() != ClassValue::nonetype() and
|
||||
not f.getName() = "__import__"
|
||||
)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user