Skip to content

Commit 14c5d27

Browse files
authored
update docstring (#424)
* update docstring * changelog + version * re-trigger ci * re-trigger ci
1 parent 6660bf2 commit 14c5d27

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ All notable changes to the [Nucleus Python Client](https://github.com/scaleapi/n
55
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
66
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
77

8+
## [0.16.16](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.16.16) - 2024-01-25
9+
10+
### Fixes
11+
- Minor fixes to docstring
12+
813
## [0.16.15](https://github.com/scaleapi/nucleus-python-client/releases/tag/v0.16.15) - 2024-01-11
914

1015
### Fixes

nucleus/slice.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -223,6 +223,7 @@ def dataset_id(self):
223223

224224
@property
225225
def tags(self):
226+
"""Get all associated tags for this slice."""
226227
return self.info()["tags"]
227228

228229
@property
@@ -358,13 +359,13 @@ def info(self) -> dict:
358359
return info
359360

360361
def add_tags(self, tags: List[str]) -> dict:
361-
"""Tag a slice with custom tag names. ::
362+
"""Tag a slice with custom tag names.
362363
363364
import nucleus
364365
client = nucleus.NucleusClient("YOUR_SCALE_API_KEY")
365366
slc = client.get_slice("YOUR_SLICE_ID")
366367
367-
slc.add_tags(["tag_1", "tag_1"])
368+
slc.add_tags(["tag_1", "tag_2"])
368369
369370
Args:
370371
tags: list of tag names

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ ignore = ["E501", "E741", "E731", "F401"] # Easy ignore for getting it running
2525

2626
[tool.poetry]
2727
name = "scale-nucleus"
28-
version = "0.16.15"
28+
version = "0.16.16"
2929
description = "The official Python client library for Nucleus, the Data Platform for AI"
3030
license = "MIT"
3131
authors = ["Scale AI Nucleus Team <nucleusapi@scaleapi.com>"]

0 commit comments

Comments
 (0)