A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/a9dc68bad71795af08d8bf0dfc576ed62e509752 below:

Add return types to dunder `__init__` in places · SeleniumHQ/selenium@a9dc68b · GitHub

File tree Expand file treeCollapse file tree 5 files changed

+6

-6

lines changed

Filter options

Expand file treeCollapse file tree 5 files changed

+6

-6

lines changed Original file line number Diff line number Diff line change

@@ -39,7 +39,7 @@ class Options(ArgOptions):

39 39 40 40

SAFARI_TECH_PREVIEW = 'Safari Technology Preview'

41 41 42 -

def __init__(self):

42 +

def __init__(self) -> None:

43 43

super().__init__()

44 44

self._binary_location = None

45 45

self._preferences: dict = {}

Original file line number Diff line number Diff line change

@@ -41,7 +41,7 @@ class EventFiringWebDriver:

41 41

A wrapper around an arbitrary WebDriver instance which supports firing events

42 42

"""

43 43 44 -

def __init__(self, driver, event_listener):

44 +

def __init__(self, driver, event_listener) -> None:

45 45

"""

46 46

Creates a new instance of the EventFiringWebDriver

47 47

@@ -165,7 +165,7 @@ class EventFiringWebElement:

165 165

A wrapper around WebElement instance which supports firing events

166 166

"""

167 167 168 -

def __init__(self, webelement, ef_driver):

168 +

def __init__(self, webelement, ef_driver) -> None:

169 169

"""

170 170

Creates a new instance of the EventFiringWebElement

171 171

"""

Original file line number Diff line number Diff line change

@@ -135,7 +135,7 @@ def select_by_visible_text(self, text):

135 135

if not matched:

136 136

raise NoSuchElementException("Could not locate element with visible text: %s" % text)

137 137 138 -

def deselect_all(self):

138 +

def deselect_all(self) -> None:

139 139

"""Clear all selected entries. This is only valid when the SELECT supports multiple selections.

140 140

throws NotImplementedError If the SELECT does not support multiple selections

141 141

"""

Original file line number Diff line number Diff line change

@@ -22,7 +22,7 @@

22 22

class Options(ArgOptions):

23 23

KEY = 'webkitgtk:browserOptions'

24 24 25 -

def __init__(self):

25 +

def __init__(self) -> None:

26 26

super().__init__()

27 27

self._binary_location = ''

28 28

self._overlay_scrollbars_enabled = True

Original file line number Diff line number Diff line change

@@ -22,7 +22,7 @@

22 22

class Options(ArgOptions):

23 23

KEY = 'wpe:browserOptions'

24 24 25 -

def __init__(self):

25 +

def __init__(self) -> None:

26 26

super().__init__()

27 27

self._binary_location = ''

28 28

self._caps = DesiredCapabilities.WPEWEBKIT.copy()

You can’t perform that action at this time.


RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4