We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Ours:
self.assertRaises(IndexError, lambda: b[-10**100])
Black:
self.assertRaises(IndexError, lambda: b[-(10**100)])
We should implement the same rules as black to add parentheses around power operations.
The text was updated successfully, but these errors were encountered:
Is this documented anywhere in the style guide?
Sorry, something went wrong.
Maybe this? psf/black#909
Force parentheses for power operations in unary expressions (#7955)
3d03e75
## Summary E.g., given `-10**100`, reformat as `-(10**100)`. Black special cases this (psf/black#909) and it's currently a deviation. Closes #7951.
charliermarsh
Successfully merging a pull request may close this issue.
Ours:
Black:
We should implement the same rules as black to add parentheses around power operations.
The text was updated successfully, but these errors were encountered: