diff --git a/src/metldata/builtin_transformations/count_references/model_transform.py b/src/metldata/builtin_transformations/count_references/model_transform.py index 15a2f57..4a45a72 100644 --- a/src/metldata/builtin_transformations/count_references/model_transform.py +++ b/src/metldata/builtin_transformations/count_references/model_transform.py @@ -14,7 +14,6 @@ # limitations under the License. """Model transformation logic for the 'count references' transformation""" - from schemapack.spec.schemapack import ( SchemaPack, ) @@ -29,11 +28,13 @@ def add_count_references( - *, model: SchemaPack, instructions_by_class: dict[str, list[AddReferenceCountPropertyInstruction]] + *, + model: SchemaPack, + instructions_by_class: dict[str, list[AddReferenceCountPropertyInstruction]], ) -> SchemaPack: """The content properties are added to the model with the 'add_content_properties step of the workflow. Thus, this function applies no transformation. - It only checks for EvitableTransformationError. + It only checks for EvitableTransformationError. """ for class_name, cls_instructions in instructions_by_class.items(): class_def = model.classes.get(class_name) diff --git a/src/metldata/builtin_transformations/infer_relations/data_transform.py b/src/metldata/builtin_transformations/infer_relations/data_transform.py index 64e307f..27422f9 100644 --- a/src/metldata/builtin_transformations/infer_relations/data_transform.py +++ b/src/metldata/builtin_transformations/infer_relations/data_transform.py @@ -133,8 +133,7 @@ def resolve_passive_path_element( target_resource_ids = set() for candidate_resource_id, candidate_resource in candidate_resources.items(): - relation = candidate_resource.relations.get( - path_element.property, set()) + relation = candidate_resource.relations.get(path_element.property, set()) if ( isinstance(relation, set) and source_resource_id in relation