Skip to content

Commit 145d2df

Browse files
committed
deprecation annotation
1 parent 9143f08 commit 145d2df

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/hume/expression_measurement/batch/types/inference_job.py

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# This file was auto-generated by Fern from our API Definition.
22

33
import typing
4+
from typing_extensions import deprecated
45

56
import pydantic
67
from ....core.pydantic_utilities import IS_PYDANTIC_V2
@@ -16,13 +17,8 @@ class InferenceJob(JobInference):
1617
"""
1718

1819
@property
20+
@deprecated("Use .state.status instead")
1921
def status(self) -> str:
20-
"""
21-
Backward compatibility property for accessing job status.
22-
23-
Previously, jobs had a direct `status` attribute. Now status is accessed via `state.status`.
24-
This property provides backward compatibility for existing code that uses `job.status`.
25-
"""
2622
return self.state.status
2723

2824
if IS_PYDANTIC_V2:

0 commit comments

Comments
 (0)