mirror of
https://github.com/github/codeql.git
synced 2026-05-04 13:15:21 +02:00
Python: ObjectAPI to ValueAPI: ReturnValueIgnored: Adds prototype version of getAnInferredReturnType
This commit is contained in:
@@ -42,7 +42,7 @@ predicate returns_meaningful_value(FunctionValue f) {
|
||||
or
|
||||
/* Is f a builtin function that returns something other than None?
|
||||
* Ignore __import__ as it is often called purely for side effects */
|
||||
f.isBuiltin() and f.getAnInferredReturnType() != theNoneType() and not f.getName() = "__import__"
|
||||
f.isBuiltin() and f.getAnInferredReturnType() != ClassValue::nonetype() and not f.getName() = "__import__"
|
||||
)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user