From df91f475c1fd6271c7190d9658039b1d5f0b8c4c Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Tue, 17 Jun 2025 12:24:30 +0500 Subject: [PATCH] entity_instance constructor - skip setting None value --- src/ifcopenshell-python/ifcopenshell/entity_instance.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/entity_instance.py b/src/ifcopenshell-python/ifcopenshell/entity_instance.py index 0029b75041..4567a01d3d 100644 --- a/src/ifcopenshell-python/ifcopenshell/entity_instance.py +++ b/src/ifcopenshell-python/ifcopenshell/entity_instance.py @@ -156,6 +156,7 @@ class entity_instance: """ wrapped_data: ifcopenshell_wrapper.entity_instance + method_list: Union[MethodList, None] = None def __init__( self, @@ -171,7 +172,6 @@ class entity_instance: if isinstance(e, tuple): e = ifcopenshell_wrapper.new_IfcBaseClass(*e) object.__setattr__(self, "wrapped_data", e) - object.__setattr__(self, "method_list", None) # Make sure the file is not gc'ed while we have live instances e.file = file