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
Describe the bug Black does not accuse unnecessary spaces in some docstrings
To Reproduce Steps to reproduce the behavior:
Try to use black on a file with this code:
def get_accepted_answers(accepted_answer_ids: List[str]) -> List[str]:
""" Take an accepted answer id and return the body of it """
answers_bodies = []
To summarize: I have the impression the problem is that single-line docstrings are treated differently than multi-line ones. Or perhaps that single-line docstrings aren't recognized as docstrings because it seems whatever you do with the text inside it, they remain untouched.
Describe the bug Black does not accuse unnecessary spaces in some docstrings
To Reproduce Steps to reproduce the behavior:
Expected behavior docstring should be formatted
I've try to use https://black.now.sh/?version=master but the result was the same.
In code snippets like this:
The output is:
As you can see, the formatting was done and and the spaces have been removed.
The text was updated successfully, but these errors were encountered: