Skip to content

Commit

Permalink
revert: remove workspaces from __repr__
Browse files Browse the repository at this point in the history
  • Loading branch information
alvarobartt committed Jul 13, 2023
1 parent a6e07ef commit 77ead2c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions src/argilla/client/users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions tests/client/test_users.py
Original file line number Diff line number Diff line change
Expand Up @@ -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})"
)

Expand Down

0 comments on commit 77ead2c

Please sign in to comment.