Skip to content

List and dict literals with explicit types not documented #1

Closed
@JukkaL

Description

@JukkaL

The mypy language overview should mention list and dict literals with explicit types, for example:

names = <str> []  # Equivalent to str[] names = []
counts = <str, int> {}  # Equivalent to dict<str, int> counts = {}

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions