by_type now returns tuple - update annotations and fix failing tests

This commit is contained in:
Dion Moult
2026-08-11 16:44:47 +10:00
parent b408e64e5e
commit 6bab0603e6
3 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -75,7 +75,7 @@ class TestUnsharePsets(test.bootstrap.IFC4):
rel.RelatedObjects = elements
ifcpatch.execute({"file": self.file, "recipe": "UnsharePsets", "arguments": ["IfcWall"]})
assert len(psets := self.file.by_type("IfcPropertySet")) == 4
assert len(psets := list(self.file.by_type("IfcPropertySet"))) == 4
assert len(self.file.by_type("IfcRelDefinesByProperties")) == 4
psets.remove(shared_pset)