Skip to content

Commit

Permalink
Update struct.py
Browse files Browse the repository at this point in the history
  • Loading branch information
cthoyt committed Nov 20, 2024
1 parent 8b29ec1 commit b461081
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/pyobo/struct/struct.py
Original file line number Diff line number Diff line change
Expand Up @@ -473,9 +473,8 @@ def _emit_relations(
) -> Iterable[str]:
for typedef, references in sorted(self.relationships.items()):
_typedef_warn(ontology, typedef.reference, typedefs)
typedef_preferred_curie = typedef.preferred_curie
for reference in sorted(references):
s = f"relationship: {typedef_preferred_curie} {reference.preferred_curie}"
s = f"relationship: {typedef.preferred_curie} {reference.preferred_curie}"
if typedef.name or reference.name:
s += " !"
if typedef.name:
Expand Down

0 comments on commit b461081

Please sign in to comment.