-
-
Notifications
You must be signed in to change notification settings - Fork 597
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
Long aliases and use_parentheses generates invalid syntax #957
Comments
The new issue comes)) from package ( very_long_module_name as nice_alias, )
|
@EgorChernik, in ad6af18 you've addressed the second point that I made in my PR: #958 For my usecase (isort combined with black), I actually don't want line-length to be respected in this case. I would argue that the reason |
@mattbennett Thanks for reporting and fixing this issue! I've pushed a hot fix release that includes your fix: https://github.com/timothycrosley/isort/releases/tag/4.3.21 @EgorChernik this is a good point, long term it may make sense to have a strict line length enforcement setting, to enable nested wrapping like this. Thanks! ~Timothy |
isort with
use_parentheses=True
inserts parens after theas
if the alias is very long.Example:
results in
This is not valid syntax.
The text was updated successfully, but these errors were encountered: