From 509b0f7f76a53e0969b2d75717ec2679608567e3 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 9 Sep 2026 15:20:43 +0500 Subject: [PATCH] Fix ty `disjoint-cast` on `geom/main.py` It was casting to `set`, while it's actually cannot be a set - both `include` and `exclude` can only be a list. --- src/ifcopenshell-python/ifcopenshell/geom/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/geom/main.py b/src/ifcopenshell-python/ifcopenshell/geom/main.py index c94a0e9158..70db3db7c5 100644 --- a/src/ifcopenshell-python/ifcopenshell/geom/main.py +++ b/src/ifcopenshell-python/ifcopenshell/geom/main.py @@ -345,7 +345,7 @@ class iterator(ifcopenshell_wrapper.iterator): include_or_exclude_type = set(x.__class__.__name__ for x in include_or_exclude) if include_or_exclude_type == {"entity_instance"}: - include_or_exclude = cast(set[entity_instance], include_or_exclude) + include_or_exclude = cast(list[entity_instance], include_or_exclude) for inst in include_or_exclude: if not inst.is_a("IfcProduct"):