-
Notifications
You must be signed in to change notification settings - Fork 2.5k
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
Preview crashes on await (yield) #3532
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
Thanks! We'll fix this before the stable release. |
Note this only repros with mypyc enabled. This is the stack trace (from
I think I found the cause; it's a bad |
JelleZijlstra
added a commit
to JelleZijlstra/black
that referenced
this issue
Jan 31, 2023
ichard26
pushed a commit
that referenced
this issue
Jan 31, 2023
Nice and quick, thanks! |
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
Describe the bug
black --preview
crashes on seeingawait (yield)
This is certainly not good code or anything, but is code we have in one of our test files in flake8-trio. Non-preview black has no issues with it.
To Reproduce
For example, take this code:
And run it with these arguments:
The resulting error is:
Expected behavior
Not crashing
Environment
The text was updated successfully, but these errors were encountered: