Skip to content

Infer struct field types returned by a function #417

@peter-cardenas-ai

Description

@peter-cardenas-ai

Take the following code

def test():
  return struct(
    field1: 1,
    field2: 2,
  )

x = test()

x should have autocomplete and go to definition capabilities because the struct is immediately returned by the function and can be statically inspected

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions