mirror of
https://github.com/github/codeql.git
synced 2025-12-18 01:33:15 +01: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