alter format of __repr__ in Req + Event clients

password now defaults to empty string, not None.
This commit is contained in:
2022-12-05 18:18:10 +00:00
parent cc9b1e2c72
commit 48e90c82fb
4 changed files with 11 additions and 7 deletions

View File

@@ -26,8 +26,10 @@ class ReqClient:
self.base_client.ws.close()
def __repr__(self):
return type(self).__name__ + "({host} {port} {password})".format(
**self.base_client.__dict__
return type(
self
).__name__ + "(host='{host}', port={port}, password='{password}')".format(
**self.base_client.__dict__,
)
def __str__(self):