isort icon indicating copy to clipboard operation
isort copied to clipboard

remove duplicate imports due to submodule import

Open graingert opened this issue 2 years ago • 1 comments

for example:

input:

import sys
import os
import sys
import os.path

expected output:

import os.path
import sys

reorder_python_imports also has this feature: https://github.com/asottile/reorder_python_imports#removes-duplicate-imports

graingert avatar Oct 03 '21 09:10 graingert

Hi, I would like to work on this. It would be great if you could guide me on how do I approach this issue?

Aaradhyaa717 avatar Oct 12 '21 12:10 Aaradhyaa717