When running isort (without specific option):
On this code:
from selenium.webdriver import Remote, Remote as Driver
def make_driver() -> Driver:
driver = Remote()
return driver
The output generated is:
Actual:
from selenium.webdriver import Remote as Driver
Expected:
from selenium.webdriver import Remote, Remote as Driver
It was expected to be unchanged because Remote is imported and used as 2 distinct symbols (Remote and Driver). Now the code after running isort fails as Remote is not defined anymore.
I am using isort==5.5.4 with python 3.8.
When running isort (without specific option):
On this code:
The output generated is:
Actual:
Expected:
It was expected to be unchanged because
Remoteis imported and used as 2 distinct symbols (RemoteandDriver). Now the code after runningisortfails asRemoteis not defined anymore.I am using
isort==5.5.4with python 3.8.