diff --git a/src/ifcopenshell-python/ifcopenshell/validate.py b/src/ifcopenshell-python/ifcopenshell/validate.py index 73e5252e2f..0343c2e9d1 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}:{'?' if b2 == -1 else b2}] OF ' + aggr_str = f'{aggr} [{b1}:{"?" if b2 == -1 else b2}] OF ' else: aggr_str = ''