Skip to content

Commit c320e83

Browse files
committed
remove lambda param
1 parent 147913a commit c320e83

File tree

1 file changed

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

1 file changed

+2
-2
lines changed

py/selenium/webdriver/support/wait.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ def __repr__(self) -> str:
9494
return f'<{type(self).__module__}.{type(self).__name__} (session="{self._driver.session_id}")>'
9595

9696
def until(
97-
self, method: Callable[[D], Union[Literal[False], T]], message: Union[str, Callable[[Any], str]] = ""
97+
self, method: Callable[[D], Union[Literal[False], T]], message: Union[str, Callable[[], str]] = ""
9898
) -> T:
9999
"""Wait until the method returns a value that is not False.
100100
@@ -151,7 +151,7 @@ def until(
151151
raise TimeoutException(final_msg, screen, stacktrace)
152152

153153
def until_not(
154-
self, method: Callable[[D], T], message: Union[str, Callable[[Any], str]] = ""
154+
self, method: Callable[[D], T], message: Union[str, Callable[[], str]] = ""
155155
) -> Union[T, Literal[True]]:
156156
"""Wait until the method returns a value that is not False.
157157

0 commit comments

Comments
 (0)