-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
hug_parens_with_braces_and_square_brackets: "Black produced code that is not equivalent to the source" error in preview mode on function call with two type:ignore
comments
#4036
Labels
C: crash
Black is crashing
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: bug
Something isn't working
Comments
DetachHead
changed the title
"Black produced code that is not equivalent to the source" error in preview mode on function call with two
"Black produced code that is not equivalent to the source" error in preview mode on function call with two Nov 9, 2023
type:ignore
type:ignore
comments
JelleZijlstra
added
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
C: crash
Black is crashing
labels
Nov 9, 2023
Thanks! cc @henriholopainen for the single-argument call hugging change. |
2 tasks
JelleZijlstra
changed the title
"Black produced code that is not equivalent to the source" error in preview mode on function call with two
hug_parens_with_braces_and_square_brackets: "Black produced code that is not equivalent to the source" error in preview mode on function call with two Jan 30, 2024
type:ignore
commentstype:ignore
comments
3 tasks
JelleZijlstra
added a commit
that referenced
this issue
Feb 2, 2024
This was referenced Apr 17, 2024
The example above currently does not crash: $ black --version
black, 24.4.2 (compiled: yes)
Python (CPython) 3.12.3
$ cat example.py
foo( # type:ignore
[ # type:ignore
a
]
)
$ black --enable-unstable-feature=hug_parens_with_braces_and_square_brackets example.py
All done! ✨ 🍰 ✨
1 file left unchanged. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
C: crash
Black is crashing
C: preview style
Issues with the preview and unstable style. Add the name of the responsible feature in the title.
T: bug
Something isn't working
playground
The text was updated successfully, but these errors were encountered: