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

Member predicate Function::isGenerator

Whether this function is a generator function, that is whether it contains a yield or yield-from expression

predicate isGenerator()