diff --git a/.release-please-manifest.json b/.release-please-manifest.json index a26ebfc..8f3e0a4 100644 --- a/.release-please-manifest.json +++ b/.release-please-manifest.json @@ -1,3 +1,3 @@ { - ".": "0.14.0" + ".": "0.15.0" } \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 97fd948..d347780 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,13 @@ # Changelog +## 0.15.0 (2026-02-04) + +Full Changelog: [v0.14.0...v0.15.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.14.0...v0.15.0) + +### Features + +* **sdk:** add `decode` method to `Span`s ([bc41468](https://github.com/isaacus-dev/isaacus-python/commit/bc4146813a1b236b0740f2a74bab11311b5ef99d)) + ## 0.14.0 (2026-02-04) Full Changelog: [v0.13.0...v0.14.0](https://github.com/isaacus-dev/isaacus-python/compare/v0.13.0...v0.14.0) diff --git a/pyproject.toml b/pyproject.toml index 45898d4..ae463ce 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,6 +1,6 @@ [project] name = "isaacus" -version = "0.14.0" +version = "0.15.0" description = "The official Python library for the isaacus API" dynamic = ["readme"] license = "Apache-2.0" diff --git a/src/isaacus/_version.py b/src/isaacus/_version.py index 194d0a0..4f531e6 100644 --- a/src/isaacus/_version.py +++ b/src/isaacus/_version.py @@ -1,4 +1,4 @@ # File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details. __title__ = "isaacus" -__version__ = "0.14.0" # x-release-please-version +__version__ = "0.15.0" # x-release-please-version diff --git a/src/isaacus/types/ilgs/v1/span.py b/src/isaacus/types/ilgs/v1/span.py index 2289f04..51206dd 100644 --- a/src/isaacus/types/ilgs/v1/span.py +++ b/src/isaacus/types/ilgs/v1/span.py @@ -26,3 +26,15 @@ class Span(BaseModel): The zero-based end index of the half-open span (i.e., the end is exclusive) of Unicode code points in the input text. """ + + def decode(self, text: str) -> str: + """Decode the span from the given text. + + Args: + text (str): The input text from which to decode the span. + + Returns: + str: The substring of the input text corresponding to the span. + """ + + return text[self.start:self.end]