Skip to content

Commit e90ad6d

Browse files
committed
[py]: Fix types in edge & firefox options
1 parent 13ed8ce commit e90ad6d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

py/selenium/webdriver/edge/options.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
class Options(ChromiumOptions):
2323
KEY = "ms:edgeOptions"
2424

25-
def __init__(self):
25+
def __init__(self) -> None:
2626
super().__init__()
2727
self._use_webview = False
2828

py/selenium/webdriver/firefox/options.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
# KIND, either express or implied. See the License for the
1515
# specific language governing permissions and limitations
1616
# under the License.
17+
import typing
1718
import warnings
1819
from typing import Union
1920

@@ -24,7 +25,7 @@
2425

2526

2627
class Log:
27-
def __init__(self):
28+
def __init__(self) -> None:
2829
self.level = None
2930

3031
def to_capabilities(self) -> dict:
@@ -36,9 +37,9 @@ def to_capabilities(self) -> dict:
3637
class Options(ArgOptions):
3738
KEY = "moz:firefoxOptions"
3839

39-
def __init__(self):
40+
def __init__(self) -> None:
4041
super().__init__()
41-
self._binary: FirefoxBinary = None
42+
self._binary: typing.Optional[FirefoxBinary] = None
4243
self._preferences: dict = {}
4344
self._profile = None
4445
self._proxy = None

0 commit comments

Comments
 (0)