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
I am adding from __future__ import annotations to our project files, automatically, using isort. But, in highly specialised cases such as marshmallow-dataclasses use, I'd like isort to not add that import line.
Right now I can only do so by adding # isort: skip_file to a module where I don't want the extra import to be added automatically.
Could isort perhaps support the following syntax?
# isort: skip: from __future__ import annotations
This would be treated as a add_imports.remove("from __future__ import annotations") action, and you'd have to add this comment high enough in the file to apply beforeadd_imports is processed.
The text was updated successfully, but these errors were encountered:
I am adding
from __future__ import annotations
to our project files, automatically, usingisort
. But, in highly specialised cases such asmarshmallow-dataclasses
use, I'd like isort to not add that import line.Right now I can only do so by adding
# isort: skip_file
to a module where I don't want the extra import to be added automatically.Could isort perhaps support the following syntax?
# isort: skip: from __future__ import annotations
This would be treated as a
add_imports.remove("from __future__ import annotations")
action, and you'd have to add this comment high enough in the file to apply beforeadd_imports
is processed.The text was updated successfully, but these errors were encountered: