Skip to content

Allow unary + in Literal integers #7

@JelleZijlstra

Description

@JelleZijlstra

This is to ask the Typing Council to approve python/typing#1550, specifying that Literal[+1] should be allowed. See also https://discuss.python.org/t/signed-values-in-literal-type/39919, cc @dmoisset.

(I'm opening this issue here on this tracker so that we have a clear record of the decision, and people following this repo won't miss it.)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions