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

Update black target version to py310 #7538

Merged
merged 1 commit into from Mar 23, 2022
Merged

Conversation

srittau
Copy link
Collaborator

@srittau srittau commented Mar 23, 2022

This makes no difference to existing files, but allows scripts to use
the match statement.

This makes no difference to existing files, but allows scripts to use
the match statement.
@JelleZijlstra
Copy link
Member

@JelleZijlstra JelleZijlstra commented Mar 23, 2022

This isn't necessarily safe because it allows stubs to use 3.10-specific syntax that's invalid in 3.6. However, there are not currently any cases where this matters.

A hypothetical example where this could matter is that 3.9 and higher let you write with (a, b): instead of with a, b:. In a future version of Black we'll probably prefer that formatting. However, we don't yet, and stubs don't contain with statements anyway.

@JelleZijlstra JelleZijlstra merged commit 00f1807 into python:master Mar 23, 2022
60 checks passed
@srittau srittau deleted the black-py310 branch Mar 23, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants