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
Describe the style change
Currently, black will break a long line that uses a | character for type hints after the | character resulting is very unsightly code.
|
If it is possible to break the line after the type hints to stay within the line limit, black should leave the type hints on a single line.
Examples in the current Black style
def foo( bar: Baz | None = Baz( "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor...", language=Latin, ), ): pass
Desired style
Additional context
This behavior causes flake8 to object over w503.
The text was updated successfully, but these errors were encountered:
Duplicate of #2316
Sorry, something went wrong.
No branches or pull requests
Describe the style change
Currently, black will break a long line that uses a
|
character for type hints after the|
character resulting is very unsightly code.If it is possible to break the line after the type hints to stay within the line limit, black should leave the type hints on a single line.
Examples in the current Black style
Desired style
Additional context
This behavior causes flake8 to object over w503.
The text was updated successfully, but these errors were encountered: