All: Reformat according to new standard

This commit is contained in:
pre-commit-ci[bot]
2025-11-11 13:49:01 +01:00
committed by Kacper Donat
parent ef997f2259
commit 9fe130cd73
2390 changed files with 154630 additions and 115818 deletions

View File

@@ -26,28 +26,30 @@
#include "PartPyCXX.h"
namespace Part {
PartExport Py::Object shape2pyshape(const TopoShape &shape)
namespace Part
{
PyObject* ret = const_cast<TopoShape &>(shape).getPyObject();
PartExport Py::Object shape2pyshape(const TopoShape& shape)
{
PyObject* ret = const_cast<TopoShape&>(shape).getPyObject();
return Py::asObject(ret);
}
PartExport Py::Object shape2pyshape(const TopoDS_Shape &shape) {
PartExport Py::Object shape2pyshape(const TopoDS_Shape& shape)
{
return shape2pyshape(TopoShape(shape));
}
} //namespace Part
} // namespace Part
namespace Py {
template<>
bool TopoShape::accepts (PyObject *pyob) const
{
return (pyob && PyObject_TypeCheck(pyob, &(Part::TopoShapePy::Type)));
}
// explicit template instantiation
template class PartExport ExtensionObject<Part::TopoShapePy>;
namespace Py
{
template<>
bool TopoShape::accepts(PyObject* pyob) const
{
return (pyob && PyObject_TypeCheck(pyob, &(Part::TopoShapePy::Type)));
}
// explicit template instantiation
template class PartExport ExtensionObject<Part::TopoShapePy>;
} // namespace Py