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

Member predicate Function::isProcedure

Whether this function is a procedure, that is, it has no explicit return statement and always returns None. Note that generator and async functions are not procedures as they return generators and coroutines respectively.

predicate isProcedure()