Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
isidentical opened this issue Dec 17, 2021 · 0 comments · Fixed by #2708
Closed

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

isidentical opened this issue Dec 17, 2021 · 0 comments · Fixed by #2708
Labels
C: target version Related to --target-version, e.g. autodetection S: accepted The changes in this design / enhancement issue have been accepted and can be implemented T: enhancement New feature or request

Comments

@isidentical
Copy link
Collaborator

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

@isidentical isidentical added the T: enhancement New feature or request label Dec 17, 2021
@ichard26 ichard26 added C: target version Related to --target-version, e.g. autodetection S: accepted The changes in this design / enhancement issue have been accepted and can be implemented labels Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: target version Related to --target-version, e.g. autodetection S: accepted The changes in this design / enhancement issue have been accepted and can be implemented T: enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants