Skip to content

Commit

Permalink
black error
Browse files Browse the repository at this point in the history
  • Loading branch information
csc-jm committed Oct 15, 2024
1 parent 62e6d1f commit 6ddf5a1
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion metadata_backend/helpers/parser.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,7 +453,11 @@ def parse(self, schema_type: str, content: str) -> tuple[dict[str, Any], list[st
if _schema_type == "bpsample":
result = self._organize_bp_sample_objects(result)
# Validate each JSON object separately if an array of objects is parsed
obj_name = _schema_type[2:] if _schema_type in ["bpdataset", "bpimage", "bpobservation", "bpstaining"] else _schema_type
obj_name = (
_schema_type[2:]
if _schema_type in ["bpdataset", "bpimage", "bpobservation", "bpstaining"]
else _schema_type
)
xml_elements: list[str]
if isinstance(result[obj_name], list):
results = result[obj_name]
Expand Down

0 comments on commit 6ddf5a1

Please sign in to comment.