add shortcut to success state

This commit is contained in:
2025-03-05 15:26:39 +01:00
parent 763d3c1aac
commit 7b82d051e2
2 changed files with 21 additions and 13 deletions

View File

@@ -41,10 +41,17 @@ class StateHandler:
@property
def pipe_states(self) -> DataPipeStates:
assert self._pipe_states is not None, (
"tried to access not parsed data pipeline errors"
"tried to access not parsed data pipeline states"
)
return self._pipe_states
@property
def SUCCESS(self) -> Status:
assert self._pipe_states is not None, (
"tried to access not parsed data pipeline states"
)
return self.pipe_states.SUCCESS
def _parse_data_pipe_states(self) -> None:
if self._pipe_states is not None:
return