Skip to content

Stack graph building errors in Python #476

Closed
@bm-w

Description

@bm-w

I’m trying to build a stack graph for either of the following Python input files:

list_args.py:

def my_fn(*args: list):
    pass

dict_kwargs.py:

def my_fn(**kwargs: dict):
    pass

But in both cases I get the following error:

BuildError::ExecutionError(InContext(Statement([StatementContext { statement: "edge @name.def -> @param.param_name at (871, 3)", statement_location: Location { row: 870, column: 2 }, stanza_location: Location { row: 860, column: 0 }, source_location: Location { row: 0, column: 10 }, node_kind: "typed_parameter" }]), InContext(Other("Evaluating edge source"), UndefinedScopedVariable("[syntax node list_splat_pattern (1, 11)].def"))))

This is using stack-graphs 0.14.1 with tree-sitter-stack-graphs-python 0.3.0.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions