py-ast - v1.16.0
    Preparing search index...

    Interface ParseOptions

    Options controlling how parse lexes and parses Python source.

    interface ParseOptions {
        filename?: string;
        comments?: boolean;
        feature_version?: number;
    }
    Index
    filename?: string

    Source filename to associate with parse errors and the resulting AST (informational only).

    comments?: boolean

    When true, comments are lexed and attached to the AST (as Comment nodes / inlineComment) instead of being discarded.

    feature_version?: number

    Target Python feature version; currently unused but reserved for future version-gated syntax.