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

Injector TLambdaSelfArgumentPosition

This is used for tracking flow through captured variables, and we use separate parameter/argument positions in order to distinguish “lambda self” from “normal self”, as lambdas may also access outer self variables (through variable capture).

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch
TLambdaSelfArgumentPosition TLambdaSelfArgumentPosition()