Skip to content

Conversation

@hauntsaninja
Copy link
Collaborator

Fixes #4446
See python/cpython#123821

It's possible this is too strict? We could instead do this anytime the AST safety check fails, but feels weird to have that happen non-deterministically

Fixes psf#4446
See python/cpython#123821

It's possible this is too strict? We could instead do this anytime the
AST safety check fails, but feels weird to have that happen
non-deterministically
@JelleZijlstra
Copy link
Collaborator

I think this is probably worth it, otherwise we may get a trickle of hard-to-debug bug reports for the next few years.

We could also consider setting Requires-Python to something like >=3.8,!=3.12.5, though I don't know whether packaging tools will be happy with that.

Also, great work figuring this out!

@graingert
Copy link
Contributor

Setting Requires-Python won't do what you want. pip will just download an older version of black without the Requires-Python constraint

@JelleZijlstra
Copy link
Collaborator

Setting Requires-Python won't do what you want. pip will just download an older version of black without the Requires-Python constraint

Yeah I was worried about that.

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.

On Apple M1, Black often drops the ":9]=" out of f"{...[:9]=}", as Internal Error

3 participants