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

Member predicate PyFunctionObject::isProcedure

Whether this function is a procedure, that is, it has no explicit return statement and is not a generator function

predicate isProcedure()