Skip to content

Fix validate_call duplication #347

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 24, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 0 additions & 9 deletions simvue/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -724,7 +724,6 @@ def id(self) -> typing.Optional[str]:
"""Return the unique id of the run"""
return self._id

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def reconnect(self, run_id: str) -> bool:
Expand Down Expand Up @@ -765,7 +764,6 @@ def set_pid(self, pid: int) -> None:
"""
self._pid = pid

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def config(
Expand Down Expand Up @@ -869,7 +867,6 @@ def update_tags(self, tags: list[str]) -> bool:

return False

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

return True

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def log_metrics(
Expand Down Expand Up @@ -1079,7 +1075,6 @@ def save(

return True

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def save_directory(
Expand Down Expand Up @@ -1116,7 +1111,6 @@ def save_directory(

return True

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def save_all(
Expand Down Expand Up @@ -1270,7 +1264,6 @@ def set_folder_details(

return False

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def add_alerts(
Expand Down Expand Up @@ -1318,7 +1311,6 @@ def add_alerts(

return False

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", None)
@pydantic.validate_call
def create_alert(
Expand Down Expand Up @@ -1480,7 +1472,6 @@ def create_alert(

return alert_id

@pydantic.validate_call
@skip_if_failed("_aborted", "_suppress_errors", False)
@pydantic.validate_call
def log_alert(
Expand Down