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
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.
The text was updated successfully, but these errors were encountered:
sebns
changed the title
isort removes imports imported a 2 symbols
isort removes imports imported as 2 symbols
Oct 4, 2020
When running isort (without specific option):
On this code:
The output generated is:
Actual:
Expected:
It was expected to be unchanged because
Remote
is imported and used as 2 distinct symbols (Remote
andDriver
). Now the code after runningisort
fails asRemote
is not defined anymore.I am using
isort==5.5.4
with python 3.8.The text was updated successfully, but these errors were encountered: