Skip to content

Commit 362ce0a

Browse files
committed
Add docstring to __str__ method in Credential class for clarity on string representation
1 parent edcb761 commit 362ce0a

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

py/selenium/webdriver/common/virtual_authenticator.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,11 @@ def from_dict(cls, data: dict[str, Any]) -> "Credential":
187187
return cls(_id, is_resident_credential, rp_id, user_handle, private_key, sign_count)
188188

189189
def __str__(self) -> str:
190+
"""Return a string representation of the credential.
191+
192+
Returns:
193+
A formatted string containing all credential properties.
194+
"""
190195
return f"Credential(id={self.id}, is_resident_credential={self.is_resident_credential}, rp_id={self.rp_id},\
191196
user_handle={self.user_handle}, private_key={self.private_key}, sign_count={self.sign_count})"
192197

0 commit comments

Comments
 (0)