Skip to content

Extended R.H.S. on annotated assignments should imply Python 3.8+ #2707

@isidentical

Description

@isidentical

Before 3.8 (through 3.6-3.7) the annotated assignment's R.H.S. value can be only simple test: a: int = 1 or a: Tuple[int, ...] = (1, 2). Starting with 3.8, it now accepts a: Tuple[int, ...] = 1, 2 or even a: Tuple[int, ...] = b, *c, d

Metadata

Metadata

Assignees

No one assigned

    Labels

    C: target versionRelated to --target-version, e.g. autodetectionS: acceptedThe changes in this design / enhancement issue have been accepted and can be implementedT: enhancementNew feature or request
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions