-
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
Internal error on a specific file #4018
Labels
T: bug
Something isn't working
Comments
Thanks for the report! Minimised repro:
|
thanks for hunting this down, that was beyond my expertise! :) |
hauntsaninja
added a commit
to hauntsaninja/black
that referenced
this issue
Nov 3, 2023
Python does not consider f-strings to be docstrings, so we probably shouldn't be formatting them as such Fixes psf#4018 Despite its name, I think docstring_preview.py might be testing stable style, which this unfortunately does change
JelleZijlstra
pushed a commit
that referenced
this issue
Nov 7, 2023
Python does not consider f-strings to be docstrings, so we probably shouldn't be formatting them as such Fixes #4018 Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
black
reports an internal error when formatting a specific file.To Reproduce
black
on the file. (I have donepip install -U black
as of today!)My pyproject.toml configuration file has this:
The resulting error is:
Here is the attached diff-log file:
Expected behavior
Environment
Black's version:
OS and Python version: Linux/debian, Python 3.11.6
The text was updated successfully, but these errors were encountered: