Skip to content

Commit 9dde983

Browse files
committed
Fixed ruff formatting
1 parent d527621 commit 9dde983

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

bam_masterdata/openbis/get_entities.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -30,9 +30,9 @@ def _assign_properties(self, entity_name: str, formatted_dict: dict) -> None:
3030
properties = {}
3131
for entry in assignments_dict:
3232
# ! This has changed and now permId does not exist on the property assignments!!
33-
property_perm_id = (
34-
self.openbis.get_property_type(entry.get("code", {})).permId
35-
)
33+
property_perm_id = self.openbis.get_property_type(
34+
entry.get("code", {})
35+
).permId
3636
print(property_perm_id)
3737
if property_perm_id:
3838
# Include the desired property fields
@@ -181,4 +181,4 @@ def get_vocabulary_dict(self) -> dict:
181181
formatted_dict[code]["terms"] = {}
182182

183183
# We return the sorted dictionary in order to have a consistent order for inheritance
184-
return dict(sorted(formatted_dict.items(), key=lambda item: item[0].count(".")))
184+
return dict(sorted(formatted_dict.items(), key=lambda item: item[0].count(".")))

0 commit comments

Comments
 (0)