Skip to content

Commit

Permalink
formatting fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sbilge committed Aug 23, 2024
1 parent 1f35b3f commit 95328d3
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
# limitations under the License.
"""Model transformation logic for the 'count references' transformation"""


from schemapack.spec.schemapack import (
SchemaPack,
)
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 95328d3

Please sign in to comment.