From 1e4b4b55576589e698d667f32d7eba7685ecd7cb Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 22 Jul 2026 17:42:32 +0500 Subject: [PATCH] test_getting_elements_by_profile: fix test --- src/ifcopenshell-python/ifcopenshell/util/element.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/util/element.py b/src/ifcopenshell-python/ifcopenshell/util/element.py index 272b47dfc2..44552bc287 100644 --- a/src/ifcopenshell-python/ifcopenshell/util/element.py +++ b/src/ifcopenshell-python/ifcopenshell/util/element.py @@ -958,7 +958,7 @@ def get_elements_by_profile(profile: ifcopenshell.entity_instance) -> set[ifcope :return: The elements using the profile. """ ifc_file = profile.file - queue = list(ifc_file.get_inverse(profile)) + queue = set(ifc_file.get_inverse(profile)) processed: set[ifcopenshell.entity_instance] = set() representations: set[ifcopenshell.entity_instance] = set() while queue: