We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e3824ea commit 41699deCopy full SHA for 41699de
src/citrine/jobs/job.py
@@ -60,7 +60,7 @@ def status(self) -> Union[JobStatus, str]:
60
return self._status
61
62
@status.setter
63
- def status(self, value):
+ def status(self, value: Union[JobStatus, str]) -> None:
64
if JobStatus.from_str(value, exception=False) is None:
65
warn(
66
f"{value} is not a recognized JobStatus; this will become an error as of v4.0.0.",
@@ -93,7 +93,7 @@ def status(self) -> Union[JobStatus, str]:
93
94
95
96
97
if resolved := JobStatus.from_str(value, exception=False):
98
if resolved not in [JobStatus.RUNNING, JobStatus.SUCCESS, JobStatus.FAILURE]:
99
0 commit comments