Skip to content

Commit

Permalink
docs: updated documentation to use UUID class for retrieving user arg…
Browse files Browse the repository at this point in the history
  • Loading branch information
datapumpernickel authored Jun 19, 2024
1 parent 5222d50 commit 4507e94
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -179,10 +179,11 @@ You can get a user by id using the `from_id` classmethod in the `User` class.

```python
import argilla as rg
from uuid import UUID

rg.init(api_url="<ARGILLA_API_URL>", api_key="<ARGILLA_API_KEY>")

user = rg.User.from_id("00000000-0000-0000-0000-000000000000")
user = rg.User.from_id(UUID("00000000-0000-0000-0000-000000000000"))
```

### Assign a `User` to a `Workspace`
Expand Down

0 comments on commit 4507e94

Please sign in to comment.