From 00b18f67cf97d2ea3f03c1e826933020f20177c5 Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sun, 19 Mar 2023 12:46:15 +0100 Subject: [PATCH] #2685 indeterminate upper bound formatting --- src/ifcopenshell-python/ifcopenshell/validate.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 275459420a..73e5252e2f 100644 --- a/src/ifcopenshell-python/ifcopenshell/validate.py +++ b/src/ifcopenshell-python/ifcopenshell/validate.py @@ -125,7 +125,7 @@ def assert_valid_inverse(attr, val, schema): aggr = attr.type_of_aggregation_string().upper() if aggr: - aggr_str = f'{aggr} [{b1}:{b2}] OF ' + aggr_str = f'{aggr} [{b1}:{'?' if b2 == -1 else b2}] OF ' else: aggr_str = ''