Skip to content

PEP 586 (Literal) renders Y011 wrong #28

@carljm

Description

@carljm

With literal types, the actual default value becomes relevant to type checkers in some cases (because in effect, two different values are different types).

I believe Y011 should be updated to accept a non-ellipsis default value that matches a Literal type in the annotation of that parameter.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions