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
Operating system: macos Python version: 3.7 Black version: 19.3b0 Does also happen on master: yes [playground link]
Black outputs the following: INTERNAL ERROR: Black produced invalid code: expected an indented block
INTERNAL ERROR: Black produced invalid code: expected an indented block
to reproduce:
class A: # fmt: off @decorator( param=1, foo=2, ) # fmt: on def __init__(self): pass # this line will be incorrectly indented: class B: # fmt: off @decorator( param=1, foo=2, ) # fmt: on def __init__(self): pass
Additionally, if the second class has no formatting directives the entire class will be indented under the first one.
I'm working around this by moving the directives inside the decorator parens, eg:
@decorator( # fmt: off param=1, foo=2, # fmt: on )
The text was updated successfully, but these errors were encountered:
This is a duplicate of #560.
Sorry, something went wrong.
No branches or pull requests
Operating system: macos
Python version: 3.7
Black version: 19.3b0
Does also happen on master: yes [playground link]
Black outputs the following:
INTERNAL ERROR: Black produced invalid code: expected an indented block
to reproduce:
Additionally, if the second class has no formatting directives the entire class will be indented under the first one.
I'm working around this by moving the directives inside the decorator parens, eg:
The text was updated successfully, but these errors were encountered: