Skip to content

Commit fec01fc

Browse files
committed
Add docstring to __repr__ method in WebDriverWait class for clarity on functionality
1 parent 05a35c3 commit fec01fc

File tree

1 file changed

+5
-0
lines changed
  • py/selenium/webdriver/support

1 file changed

+5
-0
lines changed

py/selenium/webdriver/support/wait.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,11 @@ def __init__(
7373
self._ignored_exceptions = tuple(exceptions)
7474

7575
def __repr__(self) -> str:
76+
"""Return a string representation of the WebDriverWait object.
77+
78+
Returns:
79+
A string representation showing the module, class name, and session ID.
80+
"""
7681
return f'<{type(self).__module__}.{type(self).__name__} (session="{self._driver.session_id}")>'
7782

7883
def until(self, method: Callable[[D], Union[Literal[False], T]], message: str = "") -> T:

0 commit comments

Comments
 (0)