ifcwrap: fix breaking validate_stub (824c1fc)

It's ignoring underscore prefixed functions as not actually used.
Removing underscore to keep it happy without adding new exceptions.
This commit is contained in:
Andrej730
2026-07-24 18:00:54 +05:00
parent 3d8654acfd
commit 88c8bd032f
+6 -6
View File
@@ -794,11 +794,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
%pythoncode %{
# Hide the getters with read-only property implementations
# Keep the owning element alive while its geometry is referenced (#1124).
def _geometry_with_backref(self, _f=geometry):
def geometry_with_backref(self, _f=geometry):
result = _f(self)
result._parent = self
return result
geometry = property(_geometry_with_backref)
geometry = property(geometry_with_backref)
%}
};
@@ -806,11 +806,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
%pythoncode %{
# Hide the getters with read-only property implementations
# Keep the owning element alive while its geometry is referenced (#1124).
def _geometry_with_backref(self, _f=geometry):
def geometry_with_backref(self, _f=geometry):
result = _f(self)
result._parent = self
return result
geometry = property(_geometry_with_backref)
geometry = property(geometry_with_backref)
%}
};
@@ -836,11 +836,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
%pythoncode %{
# Hide the getters with read-only property implementations
# Keep the owning element alive while its geometry is referenced (#1124).
def _geometry_with_backref(self, _f=geometry):
def geometry_with_backref(self, _f=geometry):
result = _f(self)
result._parent = self
return result
geometry = property(_geometry_with_backref)
geometry = property(geometry_with_backref)
volume = property(calc_volume_)
surface_area = property(calc_surface_area_)
%}