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
{{ message }}
Repository navigation
# isort: off does not honor import statements but does honor import from statements #2528
It seems that the command comment affects objects that would be parsed as ast.ImportFrom objects, but does not affect objects that would be parsed as ast.Import objects.
Activity
Fix PyCQA#2528: Handle isort: off/on comments with and without spaces
DanielNoord commentedon May 31, 2026
No clue why this attracted so many AI slop contributions. Anyway, fixed in #2553.
Thanks for reporting :)