Skip to content

Commit 41f5983

Browse files
committed
Update: modify 3 file(s)
1 parent f01878f commit 41f5983

3 files changed

Lines changed: 12 additions & 8 deletions

File tree

src/stickler/structured_object_evaluator/models/structured_model.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
with comparison configuration and evaluation capabilities.
55
"""
66

7-
import inspect
87
from typing import (
98
Any,
109
ClassVar,
@@ -1126,7 +1125,10 @@ def to_json_schema(cls) -> Dict[str, Any]:
11261125
>>> ReconstructedProduct = StructuredModel.from_json_schema(schema)
11271126
>>> # ReconstructedProduct has identical comparison behavior
11281127
"""
1129-
from .json_schema_field_converter import JsonSchemaFieldConverter, PYTHON_TYPE_TO_JSON_TYPE
1128+
from .json_schema_field_converter import (
1129+
PYTHON_TYPE_TO_JSON_TYPE,
1130+
JsonSchemaFieldConverter,
1131+
)
11301132

11311133
# schema/field_path unused for export operations - only needed for import
11321134
converter = JsonSchemaFieldConverter(schema={}, field_path="")

tests/structured_object_evaluator/test_export_roundtrip.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
preserving their comparison behavior.
55
"""
66

7-
from stickler.structured_object_evaluator.models.structured_model import StructuredModel
8-
from stickler.structured_object_evaluator.models.comparable_field import ComparableField
7+
from typing import List
8+
99
from stickler.comparators.levenshtein import LevenshteinComparator
1010
from stickler.comparators.numeric import NumericComparator
11-
from typing import List
11+
from stickler.structured_object_evaluator.models.comparable_field import ComparableField
12+
from stickler.structured_object_evaluator.models.structured_model import StructuredModel
1213

1314

1415
class Product(StructuredModel):

tests/structured_object_evaluator/test_model_export.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,12 @@
44
that export StructuredModel configurations for serialization.
55
"""
66

7-
from stickler.structured_object_evaluator.models.structured_model import StructuredModel
8-
from stickler.structured_object_evaluator.models.comparable_field import ComparableField
7+
from typing import List
8+
99
from stickler.comparators.levenshtein import LevenshteinComparator
1010
from stickler.comparators.numeric import NumericComparator
11-
from typing import List
11+
from stickler.structured_object_evaluator.models.comparable_field import ComparableField
12+
from stickler.structured_object_evaluator.models.structured_model import StructuredModel
1213

1314

1415
class SimpleProduct(StructuredModel):

0 commit comments

Comments
 (0)