Unused import statement - Pycharm

Asked

Viewed 1,500 times

0

When trying to import using Pycharm:

from selenium.webdriver.common.alert import Alert

it leaves the text in gray, and shows unused import statemnet.

tried to use the:

# noinspection PyUnresolvedReferences

but without success, why it happens?

1 answer

2


Simply because you are not using the module you import, use it somewhere in the code and Warning should be gone soon.

  • That’s exactly what I was gonna do. Whoever needs it, I’m here.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.