Skip to content

Commit 1877b9d

Browse files
Add __all__ to __init__.py to make imports public (#10643)
See `pyright` docs [here](https://github.com/microsoft/pyright/blob/main/docs/typed-libraries.md) Co-authored-by: David Burns <[email protected]>
1 parent 928168b commit 1877b9d

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

py/selenium/webdriver/__init__.py

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,28 @@
3838
from .common.keys import Keys # noqa
3939

4040
__version__ = '4.1.5'
41+
42+
# We need an explicit __all__ because the above won't otherwise be exported.
43+
__all__ = [
44+
"Firefox",
45+
"FirefoxProfile",
46+
"FirefoxOptions",
47+
"Chrome",
48+
"ChromeOptions",
49+
"Ie",
50+
"IeOptions",
51+
"Edge",
52+
"ChromiumEdge",
53+
"EdgeOptions",
54+
"Opera",
55+
"Safari",
56+
"WebKitGTK",
57+
"WebKitGTKOptions",
58+
"WPEWebKit",
59+
"WPEWebKitOptions",
60+
"Remote",
61+
"DesiredCapabilities",
62+
"ActionChains",
63+
"Proxy",
64+
"Keys",
65+
]

0 commit comments

Comments
 (0)