Skip to content

Commit fefdb29

Browse files
authored
Merge pull request #361 from simvue-io/hotfix/docstring-tidy
Tidy docstring typing
2 parents 981e81e + 4a49588 commit fefdb29

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

simvue/client.py

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -721,11 +721,11 @@ def get_artifacts_as_files(
721721
path : str | None, optional
722722
location to download files to, the default of None will download
723723
them to the current working directory
724-
startswith : typing.Optional[str], optional
724+
startswith : str, optional
725725
only download artifacts with this prefix in their name, by default None
726-
contains : typing.Optional[str], optional
726+
contains : str, optional
727727
only download artifacts containing this term in their name, by default None
728-
endswith : typing.Optional[str], optional
728+
endswith : str, optional
729729
only download artifacts ending in this term in their name, by default None
730730
731731
Raises
@@ -1104,11 +1104,11 @@ def get_events(
11041104
----------
11051105
run_id : str
11061106
the unique identifier of the run to query
1107-
message_contains : typing.Optional[str], optional
1107+
message_contains : str, optional
11081108
filter to events with message containing this expression, by default None
1109-
start_index : typing.Optional[int], optional
1109+
start_index : typing.int, optional
11101110
slice results returning only those above this index, by default None
1111-
count_limit : typing.Optional[int], optional
1111+
count_limit : typing.int, optional
11121112
limit number of returned results, by default None
11131113
11141114
Returns

simvue/run.py

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -465,21 +465,21 @@ def init(
465465
466466
Parameters
467467
----------
468-
name : typing.Optional[str], optional
468+
name : str, optional
469469
the name to allocate this run, if not specified a name will be
470470
selected at random, by default None
471-
metadata : typing.Optional[dict[str, typing.Any]], optional
471+
metadata : typing.dict[str, typing.Any], optional
472472
any metadata relating to the run as key-value pairs, by default None
473-
tags : typing.Optional[list[str]], optional
473+
tags : typing.list[str], optional
474474
a list of tags for this run, by default None
475-
description : typing.Optional[str], optional
475+
description : str, optional
476476
description of the run, by default None
477477
folder : str, optional
478478
folder within which to store the run, by default "/"
479479
running : bool, optional
480480
whether to set the status as running or created, the latter implying
481481
the run will be commenced at a later time. Default is True.
482-
retention_period : typing.Optional[str], optional
482+
retention_period : str, optional
483483
describer for time period to retain run, the default of None
484484
removes this constraint.
485485
resources_metrics_interval : int, optional
@@ -749,7 +749,7 @@ def reconnect(self, run_id: str) -> bool:
749749
----------
750750
run_id : str
751751
identifier of run to connect to
752-
uid : typing.Optional[str], optional
752+
uid : str, optional
753753
unique identifier for this run, by default None
754754
755755
Returns
@@ -1324,9 +1324,9 @@ def add_alerts(
13241324
13251325
Parameters
13261326
----------
1327-
ids : typing.Optional[list[str]], optional
1327+
ids : typing.list[str], optional
13281328
unique identifiers of the alerts to attach, by default None
1329-
names : typing.Optional[list[str]], optional
1329+
names : typing.list[str], optional
13301330
names of alerts to attach, by default None
13311331
13321332
Returns

0 commit comments

Comments
 (0)