CodeQL library for Python
codeql/python-all 2.2.1-dev (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()