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

Member predicate CaptureInput::ClosureExpr::hasBody

Holds if body is the callable body of this closure. A lambda expression only has one body, but in general a locally defined object may have multiple such methods and constructors.

predicate hasBody(Callable body)