CodeQL library for Python
codeql/python-all 7.2.11 (changelog, source)
Search

Predicate Flow::ConsistencyChecks::closureMustHaveBody

Holds if closure expression ce has no callable body, as described by msg.

Import path

import codeql.dataflow.VariableCapture
predicate closureMustHaveBody(ClosureExpr ce, string msg)