From 261d2ce9a23d23be43b22a983f02f25feac964f5 Mon Sep 17 00:00:00 2001 From: Andrej730 Date: Wed, 2 Sep 2026 15:02:22 +0500 Subject: [PATCH] stub: `get_attribute_category` to consider derived attrs --- src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index e65b47000d..446c4b7448 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -784,13 +784,14 @@ class entity_instance(entity_instance_mixin): "AGGREGATE OF AGGREGATE OF ENTITY INSTANCE", "UNKNOWN", ]: ... - def get_attribute_category(self, name: str) -> Literal[0, 1, 2]: + def get_attribute_category(self, name: str) -> Literal[0, 1, 2, 3]: """Get attribute category id. Available categories: - `0` - invalid attribute - `1` - forward attribute - `2` - inverse attributes + - `3` - derived attribute """ ...