We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
To Reproduce
Unformatted code:
def main(): if a: # Comment def b(): pass if b: def c(): pass
Running black --preview:
black --preview
Expected behavior
Empty line should be consistent added (or removed) between the code block open and inner function:
Or,
Additional context
I did a bisect and this was caused by psf/black#3035.
Note that if the inner function doesn't have a leading comment, it won't remove the empty line:
def main(): if a: def b(): pass def c(): pass
Thus I believe this is an undesired behavior change in #3035?
Originally posted by @yilei in psf/black#3300
The text was updated successfully, but these errors were encountered:
No branches or pull requests
To Reproduce
Unformatted code:
Running
black --preview
:Expected behavior
Empty line should be consistent added (or removed) between the code block open and inner function:
Or,
Additional context
I did a bisect and this was caused by psf/black#3035.
Note that if the inner function doesn't have a leading comment, it won't remove the empty line:
Thus I believe this is an undesired behavior change in #3035?
Originally posted by @yilei in psf/black#3300
The text was updated successfully, but these errors were encountered: