We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 362ce0a commit 5151b8dCopy full SHA for 5151b8d
py/selenium/webdriver/remote/script_key.py
@@ -26,8 +26,21 @@ def __init__(self, id=None):
26
def id(self):
27
return self._id
28
29
- def __eq__(self, other):
+ def __eq__(self, other) -> bool:
30
+ """Compare this ScriptKey with another object for equality.
31
+
32
+ Args:
33
+ other: The object to compare with.
34
35
+ Returns:
36
+ True if the script key ID equals the other object, False otherwise.
37
+ """
38
return self._id == other
39
40
def __repr__(self) -> str:
41
+ """Return a string representation of the ScriptKey object.
42
43
44
+ A string representation showing the script key ID.
45
46
return f"ScriptKey(id={self.id})"
0 commit comments