From 77ead2c9304cf3caecd63651a938fc943c3c3d9f Mon Sep 17 00:00:00 2001 From: Alvaro Bartolome Date: Thu, 13 Jul 2023 16:13:41 +0200 Subject: [PATCH] revert: remove `workspaces` from `__repr__` --- src/argilla/client/users.py | 6 +++--- tests/client/test_users.py | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/argilla/client/users.py b/src/argilla/client/users.py index 6a5773e043..ef4ac5267d 100644 --- a/src/argilla/client/users.py +++ b/src/argilla/client/users.py @@ -123,9 +123,9 @@ def workspaces(self) -> Optional[List["WorkspaceModel"]]: def __repr__(self) -> str: return ( f"User(id={self.id}, username={self.username}, role={self.role}," - f" workspaces={self.workspaces}, api_key={self.api_key}," - f" first_name={self.first_name}, last_name={self.last_name}, role={self.role}," - f" inserted_at={self.inserted_at}, updated_at={self.updated_at})" + f" api_key={self.api_key}, first_name={self.first_name}," + f" last_name={self.last_name}, inserted_at={self.inserted_at}," + f" updated_at={self.updated_at})" ) @staticmethod diff --git a/tests/client/test_users.py b/tests/client/test_users.py index f5b29e8627..ecde86237f 100644 --- a/tests/client/test_users.py +++ b/tests/client/test_users.py @@ -169,8 +169,8 @@ async def test_user_repr(role: UserRole) -> None: assert str(User.me()) == ( f"User(id={user.id}, username={user.username}, role={user.role}," - f" workspaces={user.workspaces}, api_key={user.api_key}, first_name={user.first_name}," - f" last_name={user.last_name}, role={user.role}, inserted_at={user.inserted_at}," + f" api_key={user.api_key}, first_name={user.first_name}," + f" last_name={user.last_name}, inserted_at={user.inserted_at}," f" updated_at={user.updated_at})" )