From 606403a262caa09c0415d44d3ea52f83033dee60 Mon Sep 17 00:00:00 2001 From: Francisco Aranda Date: Thu, 3 Oct 2024 11:49:10 +0200 Subject: [PATCH] chore: revert local change --- argilla/src/argilla/settings/_resource.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/argilla/src/argilla/settings/_resource.py b/argilla/src/argilla/settings/_resource.py index d111ab4f2b..599ceb043c 100644 --- a/argilla/src/argilla/settings/_resource.py +++ b/argilla/src/argilla/settings/_resource.py @@ -388,8 +388,8 @@ def _update_dataset_related_attributes(self): self._client.api.datasets.update(dataset_model) def _validate_empty_settings(self): - if not all(self.fields): - message = "At least one field must be defined in the settings" + if not all([self.fields, self.questions]): + message = "Fields and questions are required" raise SettingsError(message=message) def _validate_duplicate_names(self) -> None: