PyCQA / isort

A Python utility / library to sort imports.
https://pycqa.github.io/isort/
MIT License
6.53k stars 583 forks source link

Removed check for include_trailing_comma for the Hanging Indent wrap mode #2192

Closed bp72 closed 12 months ago

bp72 commented 1 year ago

Closes #2174

When the wrap mode is Hanging Indent it doesn't make sense to take into consideration the value of include_trailing_comma. If we put the trailing comma it'll lead to a syntax error as described in the issue #2174.

An example of hanging indent wrap mode:

from third_party import \
    lib1, lib2, lib3, \
    lib4, lib5, lib6