Skip to content

Implement assignment expressions (a.k.a. named expressions a.k.a. walrus operator) #6797

Closed
@gvanrossum

Description

@gvanrossum

Python 3.8 (currently in beta) supports a new expression operator, :=, dubbed the "walrus operator" (PEP 572). Mypy should support this. Parsing is not a problem -- when we use Python 3.8 to run mypy, we use the stdlib ast module which knows how to parse it. But mypy always treats this as a blocking error, saying "assignment expressions are not yet supported".

It would be nice if we supported this.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions