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
We turn dangling end-of-line comments in the parentheses of import-from into own line comments instead of preserving them
black:
from .fields import ( # NOQA GeometryField, )
ours:
The text was updated successfully, but these errors were encountered:
Relatedly, this:
from foo import bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, bar, bop # baz
Gets wrapped as:
from foo import ( bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, bar, bop, ) # baz
Sorry, something went wrong.
We already solved these problems for the isort module, but it's probably hard to reuse what we built there 🤔
isort
I've been thinking about reusing comment placement logic in the linter, it would allow e.g. better comment handling in edits
Preserve end-of-line comments on import-from statements (#6216)
7842c82
## Summary Ensures that we keep comments at the end-of-line in cases like: ```python from foo import ( # comment bar, ) ``` Closes #6067.
charliermarsh
Successfully merging a pull request may close this issue.
We turn dangling end-of-line comments in the parentheses of import-from into own line comments instead of preserving them
black:
ours:
The text was updated successfully, but these errors were encountered: