def list(cls) -> Iterator["User"]:
        """Lists all the users in Argilla.

        Returns:
            An iterator of `User` instances.

        Raises:
            RuntimeError: if there was an error while listing the users.

        Examples:
            >>> from argilla_v1 import rg
            >>> for user in rg.User.list():
            ...     print(user)
        """
        client = cls.__active_client()
        try:
            return [cls.__new_instance(client, user) for user in users_api.list_users(client).parsed]
        except Exception as e:
            raise RuntimeError("Error while listing the users from Argilla.") from e
Lists all the users in Argilla.

        Returns:
            An iterator of `User` instances.

        Raises:
            RuntimeError: if there was an error while listing the users.

        Examples:
            >>> from argilla_v1 import rg
            >>> for user in rg.User.list():
            ...     print(user)
        
argilla-v1/src/argilla_v1/client/users.py