Skip to content

Commit

Permalink
Update src/spox/_attributes.py
Browse files Browse the repository at this point in the history
Co-authored-by: Jakub Bachurski <[email protected]>
  • Loading branch information
SimeonStoykovQC and jbachurski authored Dec 5, 2023
1 parent 2722cd2 commit 330861b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/spox/_attributes.py
Original file line number Diff line number Diff line change
Expand Up @@ -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__
Expand Down

0 comments on commit 330861b

Please sign in to comment.