From 531e07767f429cf5c3f2c7e0b8d2f9abdc19055e Mon Sep 17 00:00:00 2001 From: Thomas Krijnen Date: Fri, 10 Feb 2023 21:08:20 +0100 Subject: [PATCH] #2754 latebound schema handling --- src/ifcopenshell-python/ifcopenshell/express/schema.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/express/schema.py b/src/ifcopenshell-python/ifcopenshell/express/schema.py index 38e1053692..bfa2e2a6f0 100644 --- a/src/ifcopenshell-python/ifcopenshell/express/schema.py +++ b/src/ifcopenshell-python/ifcopenshell/express/schema.py @@ -75,7 +75,7 @@ class Schema: return str(v) in self.entities def __len__(self): - return len(self.types) + len(self.entities) + return len(self.keys) def __iter__(self): return iter(self.keys)