Skip to content

Commit

Permalink
chore: improve class variable naming
Browse files Browse the repository at this point in the history
  • Loading branch information
jfcalvo committed Dec 2, 2024
1 parent 47fe970 commit 938553f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions argilla-server/src/argilla_server/contexts/hub.py
Original file line number Diff line number Diff line change
Expand Up @@ -226,9 +226,9 @@ def __init__(self, dataset: Dataset):
self.dataset = dataset

Check warning on line 226 in argilla-server/src/argilla_server/contexts/hub.py

View check run for this annotation

Codecov / codecov/patch

argilla-server/src/argilla_server/contexts/hub.py#L226

Added line #L226 was not covered by tests

# 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()

Check warning on line 231 in argilla-server/src/argilla_server/contexts/hub.py

View check run for this annotation

Codecov / codecov/patch

argilla-server/src/argilla_server/contexts/hub.py#L231

Added line #L231 was not covered by tests

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))
Expand Down

0 comments on commit 938553f

Please sign in to comment.