Skip to content

Commit 41699de

Browse files
committed
Add TypeHint
1 parent e3824ea commit 41699de

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/citrine/jobs/job.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ def status(self) -> Union[JobStatus, str]:
6060
return self._status
6161

6262
@status.setter
63-
def status(self, value):
63+
def status(self, value: Union[JobStatus, str]) -> None:
6464
if JobStatus.from_str(value, exception=False) is None:
6565
warn(
6666
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]:
9393
return self._status
9494

9595
@status.setter
96-
def status(self, value):
96+
def status(self, value: Union[JobStatus, str]) -> None:
9797
if resolved := JobStatus.from_str(value, exception=False):
9898
if resolved not in [JobStatus.RUNNING, JobStatus.SUCCESS, JobStatus.FAILURE]:
9999
warn(

0 commit comments

Comments
 (0)