Skip to content
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

Docstrings are not formatted properly #473

Closed
VighneshKSP opened this issue Aug 22, 2018 · 1 comment
Closed

Docstrings are not formatted properly #473

VighneshKSP opened this issue Aug 22, 2018 · 1 comment

Comments

@VighneshKSP
Copy link

Operating system: Windows 10
Python version: 3.7.0
Black version: 18.6b4
Does also happen on master: Yes

Input:

def func():
  """
 abc
 """

output:

def func():
    """
 abc
 """

Supplied input had 2 spaces for the docstring's starting quote and 1 space for the content abc and ending quotes. After running black on the file, it had four spaces for the starting quote while the remaining where unaffected. As per the discussion #144, expectation is that this should be formatted as per PEP 257 guidelines.

@zsol
Copy link
Collaborator

zsol commented Aug 22, 2018

#144 is not implemented yet. Until then, this behavior is expected (as black will use 4 spaces for indentation and will not change the contents of docstrings).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants