Skip to content

Commit

Permalink
Explicitly export Select and WebDriverWait from selenium.webdriver.su…
Browse files Browse the repository at this point in the history
…pport.ui (#13491)

Without this, `mypy` in strict mode gives:

```
Module "selenium.webdriver.support.ui" does not explicitly export attribute "Select"  [attr-defined]
```

when following the documentation at https://selenium-python.readthedocs.io/navigating.html#filling-in-forms.

Co-authored-by: Diego Molina <[email protected]>
  • Loading branch information
adamtheturtle and diemol authored Mar 26, 2024
1 parent 242befb commit fccfed1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions py/selenium/webdriver/support/ui.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,7 @@
# specific language governing permissions and limitations
# under the License.

from .select import Select # noqa
from .wait import WebDriverWait # noqa
from .select import Select
from .wait import WebDriverWait

__all__ = ["Select", "WebDriverWait"]

0 comments on commit fccfed1

Please sign in to comment.