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

Datatype TArgumentPosition

Import path

import semmle.python.dataflow.new.internal.DataFlowDispatch

Known direct subtypes

    Branch types

    TDictSplatArgumentPosition
    TKeywordArgumentPosition
    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).

    TPositionalArgumentPosition
    TSelfArgumentPosition

    Used for self in methods, and cls in classmethods.

    TStarArgsArgumentPosition

    Injectors

    TDictSplatArgumentPosition
    TKeywordArgumentPosition
    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).

    TPositionalArgumentPosition
    TSelfArgumentPosition

    Used for self in methods, and cls in classmethods.

    TStarArgsArgumentPosition