Skip to content

(😳) no error when instanciating dict type alias with invalid type #13320

Open
@DetachHead

Description

@DetachHead
from typing import TypeAlias

Values: TypeAlias = dict[str, int]

a = Values(foo="")  # no error

playground

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugmypy got something wrongtopic-type-aliasTypeAlias and other type alias issues

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions