mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-18 06:21:40 +00:00
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:
@@ -794,11 +794,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
# Hide the getters with read-only property implementations
|
# Hide the getters with read-only property implementations
|
||||||
# Keep the owning element alive while its geometry is referenced (#1124).
|
# 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 = _f(self)
|
||||||
result._parent = self
|
result._parent = self
|
||||||
return result
|
return result
|
||||||
geometry = property(_geometry_with_backref)
|
geometry = property(geometry_with_backref)
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -806,11 +806,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
# Hide the getters with read-only property implementations
|
# Hide the getters with read-only property implementations
|
||||||
# Keep the owning element alive while its geometry is referenced (#1124).
|
# 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 = _f(self)
|
||||||
result._parent = self
|
result._parent = self
|
||||||
return result
|
return result
|
||||||
geometry = property(_geometry_with_backref)
|
geometry = property(geometry_with_backref)
|
||||||
%}
|
%}
|
||||||
};
|
};
|
||||||
|
|
||||||
@@ -836,11 +836,11 @@ struct ShapeRTTI : public boost::static_visitor<PyObject*>
|
|||||||
%pythoncode %{
|
%pythoncode %{
|
||||||
# Hide the getters with read-only property implementations
|
# Hide the getters with read-only property implementations
|
||||||
# Keep the owning element alive while its geometry is referenced (#1124).
|
# 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 = _f(self)
|
||||||
result._parent = self
|
result._parent = self
|
||||||
return result
|
return result
|
||||||
geometry = property(_geometry_with_backref)
|
geometry = property(geometry_with_backref)
|
||||||
volume = property(calc_volume_)
|
volume = property(calc_volume_)
|
||||||
surface_area = property(calc_surface_area_)
|
surface_area = property(calc_surface_area_)
|
||||||
%}
|
%}
|
||||||
|
|||||||
Reference in New Issue
Block a user