From 79a69dd0a029f5c23091307c29d9712a6a8a78e6 Mon Sep 17 00:00:00 2001 From: Charles Tapley Hoyt Date: Mon, 24 Jul 2023 11:12:32 -0400 Subject: [PATCH] Don't annotate redundant parent synonym type in OBO export --- src/pyobo/struct/struct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pyobo/struct/struct.py b/src/pyobo/struct/struct.py index d8e15bce..e29df067 100644 --- a/src/pyobo/struct/struct.py +++ b/src/pyobo/struct/struct.py @@ -107,7 +107,7 @@ def to_obo(self) -> str: def _fp(self) -> str: x = f'"{self._escape(self.name)}" {self.specificity}' - if self.type: + if self.type and self.type.pair != DEFAULT_SYNONYM_TYPE.pair: x = f"{x} {self.type.curie}" return f"{x} [{comma_separate(self.provenance)}]"