Amplication AST Libraries Documentation
    Preparing search index...

    Configuration arguments for creating a Python parameter.

    interface ParameterArgs {
        name: string;
        type?: ClassReference;
        default_?: string;
        isKeywordOnly?: boolean;
        isPositionalOnly?: boolean;
        isVariablePositional?: boolean;
        isVariableKeyword?: boolean;
    }
    Index

    Properties

    name: string

    The name of the parameter

    The type annotation for the parameter

    default_?: string

    The default value for the parameter

    isKeywordOnly?: boolean

    Whether this is a keyword-only parameter (after *)

    isPositionalOnly?: boolean

    Whether this is a positional-only parameter (before /)

    isVariablePositional?: boolean

    Whether this is a variable positional parameter (*args)

    isVariableKeyword?: boolean

    Whether this is a variable keyword parameter (**kwargs)