From 938553f28924d735d8ddaf013fa2dceb4bb4b4d7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jos=C3=A9=20Francisco=20Calvo?= Date: Mon, 2 Dec 2024 10:18:36 +0100 Subject: [PATCH] chore: improve class variable naming --- argilla-server/src/argilla_server/contexts/hub.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/argilla-server/src/argilla_server/contexts/hub.py b/argilla-server/src/argilla_server/contexts/hub.py index 33264548df..fc36f632e3 100644 --- a/argilla-server/src/argilla_server/contexts/hub.py +++ b/argilla-server/src/argilla_server/contexts/hub.py @@ -226,9 +226,9 @@ def __init__(self, dataset: Dataset): self.dataset = dataset # NOTE: Using this to bypass datasets generator cache. - # self is the only parameter received by _rows_generator function. Setting a different value to self.version - # is bypassing the datasets generator cache. - self.version = uuid4() + # self is the only parameter received by _rows_generator function. Setting a different value to + # self.cache_version is bypassing the datasets generator cache. + self.cache_version = uuid4() def export_to(self, name: str, subset: str, split: str, private: bool, token: str) -> None: hf_dataset = HFDataset.from_generator(self._rows_generator, split=NamedSplit(split))