Skip to content

Commit ac9771c

Browse files
committed
Merge branch 'v2.3'
2 parents 8505405 + 25823ae commit ac9771c

File tree

15 files changed

+35
-30
lines changed

15 files changed

+35
-30
lines changed

.github/workflows/deploy.yaml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,8 +84,6 @@ jobs:
8484
inputs: >-
8585
./dist/*.tar.gz
8686
./dist/*.whl
87-
- name: Checkout Code
88-
uses: actions/checkout@v5
8987
- name: Create GitHub Release
9088
env:
9189
GITHUB_TOKEN: ${{ github.token }}

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
args: [--branch, main, --branch, dev]
2424
- id: check-added-large-files
2525
- repo: https://github.com/astral-sh/ruff-pre-commit
26-
rev: v0.14.14
26+
rev: v0.15.0
2727
hooks:
2828
- id: ruff
2929
args: [ --fix, --exit-non-zero-on-fix, "--ignore=C901" ]

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Change Log
22

3-
## [v2.3.2](https://github.com/simvue-io/python-api/releases/tag/v2.3.2) - 2026-02-10
3+
## [v2.3.3](https://github.com/simvue-io/python-api/releases/tag/v2.3.3) - 2026-02-10
44

55
- Add handling of metrics based on size and enforce 10k points per grid metric as per server.
66
- Freeze `flatdict==4.0.0` do address install issues.

CITATION.cff

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,6 @@ keywords:
4242
- alerting
4343
- simulation
4444
license: Apache-2.0
45-
commit: 8d382632a6ccfb9ba04edf56f46a854b20921674
46-
version: 2.3.2
45+
commit: 32c776a634e5de95518dc46399d9a1404e4ea256
46+
version: 2.3.3
4747
date-released: '2026-02-10'

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[project]
22
name = "simvue"
3-
version = "2.3.2"
3+
version = "2.3.3"
44
description = "Simulation tracking and monitoring"
55
authors = [
66
{name = "Simvue Development Team", email = "info@simvue.io"}

simvue/api/objects/alert/fetch.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@
66
with an identifier, use a generic alert object.
77
"""
88

9-
import typing
109
import http
1110
import json
1211

1312
import pydantic
1413

14+
from collections.abc import Generator
1515
from simvue.api.objects.alert.user import UserAlert
1616
from simvue.api.objects.base import Sort
1717
from simvue.api.request import get_json_from_response
@@ -69,7 +69,7 @@ def get(
6969
offset: int | None = None,
7070
sorting: list[AlertSort] | None = None,
7171
**kwargs,
72-
) -> typing.Generator[tuple[str, AlertType], None, None]:
72+
) -> Generator[tuple[str, AlertType]]:
7373
"""Fetch all alerts from the server for the current user.
7474
7575
Parameters

simvue/api/objects/artifact/base.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from typing_extensions import Self # noqa: F401
1919

2020
from simvue.api.url import URL
21+
from collections.abc import Generator
2122
from simvue.exception import ObjectNotFoundError
2223
from simvue.models import DATETIME_FORMAT
2324
from simvue.api.objects.base import SimvueObject, staging_check, write_only
@@ -282,7 +283,7 @@ def download_url(self) -> URL | None:
282283
return self._get_attribute("url")
283284

284285
@property
285-
def runs(self) -> typing.Generator[str, None, None]:
286+
def runs(self) -> Generator[str]:
286287
"""Retrieve all runs for which this artifact is related.
287288
288289
Yields
@@ -322,7 +323,7 @@ def get_category(self, run_id: str) -> Category:
322323
return _json_response["category"]
323324

324325
@pydantic.validate_call
325-
def download_content(self) -> typing.Generator[bytes, None, None]:
326+
def download_content(self) -> Generator[bytes]:
326327
"""Stream artifact content.
327328
328329
Yields

simvue/api/objects/artifact/fetch.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
from simvue.api.objects.artifact.base import ArtifactBase
77
from simvue.api.objects.base import Sort
88
from .file import FileArtifact
9+
from collections.abc import Generator
910
from simvue.api.objects.artifact.object import ObjectArtifact
1011
from simvue.api.request import get_json_from_response, get as sv_get
1112
from simvue.api.url import URL
@@ -53,7 +54,7 @@ def from_run(
5354
run_id: str,
5455
category: typing.Literal["input", "output", "code"] | None = None,
5556
**kwargs,
56-
) -> typing.Generator[tuple[str, FileArtifact | ObjectArtifact], None, None]:
57+
) -> Generator[tuple[str, FileArtifact | ObjectArtifact]]:
5758
"""Return artifacts associated with a given run.
5859
5960
Parameters
@@ -68,12 +69,12 @@ def from_run(
6869
6970
Returns
7071
-------
71-
typing.Generator[tuple[str, FileArtifact | ObjectArtifact], None, None]
72+
Generator[tuple[str, FileArtifact | ObjectArtifact]]
7273
The artifacts
7374
7475
Yields
7576
------
76-
Iterator[typing.Generator[tuple[str, FileArtifact | ObjectArtifact], None, None]]
77+
Iterator[Generator[tuple[str, FileArtifact | ObjectArtifact]]]
7778
identifier for artifact
7879
the artifact itself as a class instance
7980
@@ -162,7 +163,7 @@ def get(
162163
offset: int | None = None,
163164
sorting: list[ArtifactSort] | None = None,
164165
**kwargs,
165-
) -> typing.Generator[tuple[str, FileArtifact | ObjectArtifact], None, None]:
166+
) -> Generator[tuple[str, FileArtifact | ObjectArtifact]]:
166167
"""Returns artifacts associated with the current user.
167168
168169
Parameters

simvue/api/objects/events.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818
from .base import SimvueObject
1919
from simvue.models import EventSet, simvue_timestamp
2020
from simvue.api.request import get as sv_get, get_json_from_response
21+
from collections.abc import Generator
2122

2223
try:
2324
from typing import Self
@@ -48,7 +49,7 @@ def get(
4849
count: pydantic.PositiveInt | None = None,
4950
offset: pydantic.PositiveInt | None = None,
5051
**kwargs,
51-
) -> typing.Generator[EventSet, None, None]:
52+
) -> Generator[EventSet]:
5253
_class_instance = cls(_read_only=True, _local=True)
5354
_count: int = 0
5455

simvue/api/objects/folder.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717

1818
from .base import SimvueObject, staging_check, write_only, Sort
1919
from simvue.models import FOLDER_REGEX, DATETIME_FORMAT
20+
from collections.abc import Generator
2021

2122
# Need to use this inside of Generator typing to fix bug present in Python 3.10 - see issue #745
2223
try:
@@ -93,7 +94,7 @@ def get(
9394
offset: pydantic.NonNegativeInt | None = None,
9495
sorting: list[FolderSort] | None = None,
9596
**kwargs,
96-
) -> typing.Generator[tuple[str, T | None], None, None]:
97+
) -> Generator[tuple[str, T | None]]:
9798
_params: dict[str, str] = kwargs
9899

99100
if sorting:

0 commit comments

Comments
 (0)