Skip to content

Anonymous named tuples #622

@evhub

Description

@evhub

The syntax

x = (a=1, b=2)

should compile to something like

x = namedtuple("_", ("a", "b"))(1, 2)

and the annotated version

x = (a=1, b: int = 2)

should compile to something like

x = NamedTuple("_", [("a", "Any"), ("b", "int")])(1, 2)

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions