def METHOD_NAME(self, user_id: str) -> Iterator[OlmDevice]:
    """Get all the non-deleted devices of a user.
    Args:
        user_id (str): The user for which we would like to get the devices
            for.
    This returns an iterator over all the non-deleted devices of the given
    user.
    """
    for device in self._entries[user_id].values():
        if not device.deleted:
            yield device