You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a function that due to copy-pasting has an extra level of indentation, Black fixes this however it is failing to dedent the closing triple-quote of multi-line docstrings:
def func():
"""A multi-line docstring.
Does nothing.
"""
pass
This is because making this change would change the contents of the string, and Black avoids doing that. We could plausibly relax that restriction for docstrings, though, which could be covered by #144.
I have a function that due to copy-pasting has an extra level of indentation, Black fixes this however it is failing to dedent the closing triple-quote of multi-line docstrings:
results in this:
Likely #144 plays a part here with regards the docstring text indentation.
Operating system: Linux
Python version: 3.6
Black version: 18.9b0
Does also happen on master: yes
The text was updated successfully, but these errors were encountered: