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

Predicate TypeTrackingInput::returnStep

Holds if nodeFrom steps to nodeTo by being returned from a call.

Flow out of summarized library methods is not included, as that will lead to negative recursion (or, at best, terrible performance), since identifying calls to library methods is done using API graphs (which uses type tracking).

Import path

predicate returnStep(Node nodeFrom, LocalSourceNode nodeTo)