Skip to content

Commit b518830

Browse files
committed
rename class
1 parent 40e4459 commit b518830

File tree

4 files changed

+7
-5
lines changed

4 files changed

+7
-5
lines changed

mindee/parsing/v2/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
from mindee.parsing.v2.error_response import ErrorResponse
22
from mindee.parsing.v2.inference import Inference
3+
from mindee.parsing.v2.inference_active_options import InferenceActiveOptions
34
from mindee.parsing.v2.inference_file import InferenceFile
45
from mindee.parsing.v2.inference_model import InferenceModel
56
from mindee.parsing.v2.inference_response import InferenceResponse
@@ -8,6 +9,7 @@
89

910
__all__ = [
1011
"Inference",
12+
"InferenceActiveOptions",
1113
"InferenceFile",
1214
"InferenceModel",
1315
"InferenceResponse",

mindee/parsing/v2/inference.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
from mindee.parsing.common.string_dict import StringDict
2-
from mindee.parsing.v2.inference_active_options import ActiveOptions
2+
from mindee.parsing.v2.inference_active_options import InferenceActiveOptions
33
from mindee.parsing.v2.inference_file import InferenceFile
44
from mindee.parsing.v2.inference_model import InferenceModel
55
from mindee.parsing.v2.inference_result import InferenceResult
@@ -16,15 +16,15 @@ class Inference:
1616
"""File info for the inference."""
1717
result: InferenceResult
1818
"""Result of the inference."""
19-
active_options: ActiveOptions
19+
active_options: InferenceActiveOptions
2020
"""Active options for the inference."""
2121

2222
def __init__(self, raw_response: StringDict):
2323
self.id = raw_response["id"]
2424
self.model = InferenceModel(raw_response["model"])
2525
self.file = InferenceFile(raw_response["file"])
2626
self.result = InferenceResult(raw_response["result"])
27-
self.active_options = ActiveOptions(raw_response["active_options"])
27+
self.active_options = InferenceActiveOptions(raw_response["active_options"])
2828

2929
def __str__(self) -> str:
3030
return (

mindee/parsing/v2/inference_active_options.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
from mindee.parsing.common.string_dict import StringDict
22

33

4-
class ActiveOptions:
4+
class InferenceActiveOptions:
55
"""Active options for the inference."""
66

77
raw_text: bool

0 commit comments

Comments
 (0)