-
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
skip string normalization no longer ignores triple quote strings, like docstrings #1634
Comments
Hello @zdelagrange, I cannot reproduce the bug: (black-rHKUX7ap) R:\Programming\black>type temp.py
def test_function():
'''this is my docstring'''
pass
(black-rHKUX7ap) R:\Programming\black>black temp.py --diff --color -S
All done! ✨ 🍰 ✨
1 file would be left unchanged. Environment:
|
alrighty, here's a play-by-play of my console
|
Oh my that is a surprising bug! I can reproduce using the same environment as I posted above. Git |
Good catch, we'll fix it in the next release which is planned for the week of Sept 28th (likely Oct 1). If this is a deal breaker for you, I suggest pinning to 19.10b0 in the mean time. |
Describe the bug
previously running with
--skip-string-normalization
would ignore triple-quoted strings that used single quote character'
To Reproduce Steps to reproduce the behavior:
--skip-string-normalization
it modifies the triple-quoted strings to double-quote character
do the same steps after installing
19.10.0b
Expected behavior
skip string normalization should ignore triple quoted strings
Environment (please complete the following information):
Does this bug also happen on master?
yes
Additional context
n/a
The text was updated successfully, but these errors were encountered: