Skip to content

Commit 855f365

Browse files
authored
Merge pull request #347 from simvue-io/hotfix/remove-decorator-dupes
Fix `validate_call` duplication
2 parents 367e137 + e812ce0 commit 855f365

File tree

1 file changed

+0
-9
lines changed

1 file changed

+0
-9
lines changed

simvue/run.py

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -724,7 +724,6 @@ def id(self) -> typing.Optional[str]:
724724
"""Return the unique id of the run"""
725725
return self._id
726726

727-
@pydantic.validate_call
728727
@skip_if_failed("_aborted", "_suppress_errors", False)
729728
@pydantic.validate_call
730729
def reconnect(self, run_id: str) -> bool:
@@ -765,7 +764,6 @@ def set_pid(self, pid: int) -> None:
765764
"""
766765
self._pid = pid
767766

768-
@pydantic.validate_call
769767
@skip_if_failed("_aborted", "_suppress_errors", False)
770768
@pydantic.validate_call
771769
def config(
@@ -869,7 +867,6 @@ def update_tags(self, tags: list[str]) -> bool:
869867

870868
return False
871869

872-
@pydantic.validate_call
873870
@skip_if_failed("_aborted", "_suppress_errors", False)
874871
@pydantic.validate_call
875872
def log_event(self, message, timestamp: typing.Optional[str] = None) -> bool:
@@ -944,7 +941,6 @@ def _add_metrics_to_dispatch(
944941

945942
return True
946943

947-
@pydantic.validate_call
948944
@skip_if_failed("_aborted", "_suppress_errors", False)
949945
@pydantic.validate_call
950946
def log_metrics(
@@ -1079,7 +1075,6 @@ def save(
10791075

10801076
return True
10811077

1082-
@pydantic.validate_call
10831078
@skip_if_failed("_aborted", "_suppress_errors", False)
10841079
@pydantic.validate_call
10851080
def save_directory(
@@ -1116,7 +1111,6 @@ def save_directory(
11161111

11171112
return True
11181113

1119-
@pydantic.validate_call
11201114
@skip_if_failed("_aborted", "_suppress_errors", False)
11211115
@pydantic.validate_call
11221116
def save_all(
@@ -1270,7 +1264,6 @@ def set_folder_details(
12701264

12711265
return False
12721266

1273-
@pydantic.validate_call
12741267
@skip_if_failed("_aborted", "_suppress_errors", False)
12751268
@pydantic.validate_call
12761269
def add_alerts(
@@ -1318,7 +1311,6 @@ def add_alerts(
13181311

13191312
return False
13201313

1321-
@pydantic.validate_call
13221314
@skip_if_failed("_aborted", "_suppress_errors", None)
13231315
@pydantic.validate_call
13241316
def create_alert(
@@ -1480,7 +1472,6 @@ def create_alert(
14801472

14811473
return alert_id
14821474

1483-
@pydantic.validate_call
14841475
@skip_if_failed("_aborted", "_suppress_errors", False)
14851476
@pydantic.validate_call
14861477
def log_alert(

0 commit comments

Comments
 (0)