You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
% cat frimp.py
from a import (
b as c, # comment that is long enough that this import doesn't fit in one line (parens)
)
% isort --diff frimp.py --profile=black
--- /Users/jelle/py/tmp/frimp.py:before 2023-07-09 09:06:19.191799
+++ /Users/jelle/py/tmp/frimp.py:after 2023-07-09 09:08:40.508309
@@ -1,3 +1,3 @@
from a import (
- b as c, # comment that is long enough that this import doesn't fit in one line (parens)
+ b as c,) # comment that is long enough that this import doesn't fit in one line (parens
)
It incorrectly moves the parenthesis at the end of the comment into the code.