diff --git a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi index c84b252f30..6349f7d8ce 100644 --- a/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi +++ b/src/ifcopenshell-python/ifcopenshell/ifcopenshell_wrapper.pyi @@ -880,7 +880,7 @@ class file: def getInverse(self, instance_id, type, attribute_index): ... def getMaxId(self): ... - def getTotalInverses(self, instance_id): ... + def get_total_inverses_by_id(self, instance_id: int) -> int: ... def getUnit(self, unit_type): ... def get_inverse(self, e: entity_instance) -> tuple[entity_instance, ...]: ... def get_inverse_indices(self, *args: Union[entity_instance, int]) -> tuple[int, ...]: diff --git a/src/ifcwrap/IfcParseWrapper.i b/src/ifcwrap/IfcParseWrapper.i index 2400e12677..25a40d3ba6 100644 --- a/src/ifcwrap/IfcParseWrapper.i +++ b/src/ifcwrap/IfcParseWrapper.i @@ -51,6 +51,7 @@ private: %rename("by_id") instance_by_id; %rename("by_type") instances_by_type; %rename("by_type_excl_subtypes") instances_by_type_excl_subtypes; +%rename("get_total_inverses_by_id") getTotalInverses; %rename("entity_instance") IfcBaseClass; %rename("file") IfcFile; %rename("add") addEntity;