Skip to content

Commit fccfed1

Browse files
Explicitly export Select and WebDriverWait from selenium.webdriver.support.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]>
1 parent 242befb commit fccfed1

File tree

1 file changed

+4
-2
lines changed
  • py/selenium/webdriver/support

1 file changed

+4
-2
lines changed

py/selenium/webdriver/support/ui.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,7 @@
1515
# specific language governing permissions and limitations
1616
# under the License.
1717

18-
from .select import Select # noqa
19-
from .wait import WebDriverWait # noqa
18+
from .select import Select
19+
from .wait import WebDriverWait
20+
21+
__all__ = ["Select", "WebDriverWait"]

0 commit comments

Comments
 (0)