Skip to content

Commit

Permalink
[py]: Fix types in edge & firefox options
Browse files Browse the repository at this point in the history
  • Loading branch information
symonk committed Dec 10, 2022
1 parent 13ed8ce commit e90ad6d
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion py/selenium/webdriver/edge/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
class Options(ChromiumOptions):
KEY = "ms:edgeOptions"

def __init__(self):
def __init__(self) -> None:
super().__init__()
self._use_webview = False

Expand Down
7 changes: 4 additions & 3 deletions py/selenium/webdriver/firefox/options.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
# KIND, either express or implied. See the License for the
# specific language governing permissions and limitations
# under the License.
import typing
import warnings
from typing import Union

Expand All @@ -24,7 +25,7 @@


class Log:
def __init__(self):
def __init__(self) -> None:
self.level = None

def to_capabilities(self) -> dict:
Expand All @@ -36,9 +37,9 @@ def to_capabilities(self) -> dict:
class Options(ArgOptions):
KEY = "moz:firefoxOptions"

def __init__(self):
def __init__(self) -> None:
super().__init__()
self._binary: FirefoxBinary = None
self._binary: typing.Optional[FirefoxBinary] = None
self._preferences: dict = {}
self._profile = None
self._proxy = None
Expand Down

0 comments on commit e90ad6d

Please sign in to comment.