From 330861bcf3593483d612c7f8ad029690129be32c Mon Sep 17 00:00:00 2001 From: Simeon Stoykov <84503892+SimeonStoykovQC@users.noreply.github.com> Date: Tue, 5 Dec 2023 07:55:20 +0200 Subject: [PATCH] Update src/spox/_attributes.py Co-authored-by: Jakub Bachurski --- src/spox/_attributes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/spox/_attributes.py b/src/spox/_attributes.py index 37897abd..522c1261 100644 --- a/src/spox/_attributes.py +++ b/src/spox/_attributes.py @@ -76,7 +76,7 @@ def _to_onnx_deref(self, key: str) -> AttributeProto: def _get_pretty_type_exception(self): if isinstance(self.value, tuple) and len(self.value): - tuple_types = ", ".join({type(v).__name__ for v in self.value}) + tuple_types = " | ".join(sorted({type(v).__name__ for v in self.value})) value_type = f"tuple[{tuple_types}, ...]" else: value_type = type(self.value).__name__