CodeQL queries 1.25
Skip to end of metadata
Go to start of metadata

Finds generator functions

import python

from Function f
where f.isGenerator()
select f