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

Member predicate ControlFlowNode::isFunction

Whether this flow node corresponds to a function definition expression

predicate isFunction()