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

Support --target-version for Python 3.10 #2612

Closed
jamilraichouni opened this issue Nov 15, 2021 · 2 comments
Closed

Support --target-version for Python 3.10 #2612

jamilraichouni opened this issue Nov 15, 2021 · 2 comments
Labels
C: parser How we parse code. Or fail to parse it. help wanted Extra attention is needed T: enhancement New feature or request

Comments

@jamilraichouni
Copy link

Is your feature request related to a problem? Please describe.

I plan to start using Python 3.10 and wonder what I can specify as --target-version!?

Describe the solution you'd like

black --help shall list how I specify a Python 3.10 target version.

Describe alternatives you've considered

I installed Pyrhon 3.10 and the latest black version to see if black --help lists an appropriate target version.

Additional context

I looked through open issues here before I wrote the current one.

@jamilraichouni jamilraichouni added the T: enhancement New feature or request label Nov 15, 2021
@cooperlees
Copy link
Collaborator

We need to support all 3.10 syntax first before being able to target this version. #2242 is tracking that.

The support lag comes from lib2to3 deprecation and no settled replacement parser for us to use moving forward. This will be a major refactor / rewrite of black when the new parser is selected. We need all the help we can get here.

@cooperlees cooperlees added C: blib2to3 C: parser How we parse code. Or fail to parse it. help wanted Extra attention is needed labels Nov 15, 2021
@cooperlees cooperlees changed the title No --target-version for Python 3.10? Support --target-version for Python 3.10 Nov 15, 2021
@JelleZijlstra
Copy link
Collaborator

@cooperlees you're out of date, we support 3.10 on main now :) We should probably do a release in the next week or so.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
C: parser How we parse code. Or fail to parse it. help wanted Extra attention is needed T: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants