From 0604db06e9a5cdc64529ff2feb77c2898cd1dd2d Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Sat, 10 Jan 2026 11:52:05 +0100 Subject: [PATCH] typename --- src/ifcopenshell-python/ifcopenshell/entity_instance.py | 4 +--- src/ifcwrap/IfcGeomWrapper.i | 2 +- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/src/ifcopenshell-python/ifcopenshell/entity_instance.py b/src/ifcopenshell-python/ifcopenshell/entity_instance.py index b8e597b8aa..85ed00125a 100644 --- a/src/ifcopenshell-python/ifcopenshell/entity_instance.py +++ b/src/ifcopenshell-python/ifcopenshell/entity_instance.py @@ -100,9 +100,7 @@ class entity_instance_mixin: INVALID, FORWARD, INVERSE, DERIVED = range(4) attr_cat = self.get_attribute_category(name) if attr_cat == INVALID: - raise AttributeError( - "entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name) - ) + raise AttributeError("entity instance of type '%s' has no attribute '%s'" % (self.is_a(True), name)) elif attr_cat == FORWARD: idx = self.get_argument_index(name) return self.get_argument(idx) diff --git a/src/ifcwrap/IfcGeomWrapper.i b/src/ifcwrap/IfcGeomWrapper.i index f0055bb8c0..88630e6a12 100644 --- a/src/ifcwrap/IfcGeomWrapper.i +++ b/src/ifcwrap/IfcGeomWrapper.i @@ -881,7 +881,7 @@ struct ShapeRTTI : public boost::static_visitor auto prodrep = product.Representation(); auto reps = prodrep.Representations(); - auto ifc_representation = representation ? representation.as() : Schema::IfcRepresentation(); + auto ifc_representation = representation ? representation.as() : typename Schema::IfcRepresentation(); if (!ifc_representation) { // First, try to find a representation based on the settings