Hide std::abs for EDA_ANGLE from Python.

This commit is contained in:
Alex Shvartzkop 2023-09-03 07:02:34 +03:00
parent 9bba8e5956
commit b2a0d85c84
1 changed files with 4 additions and 0 deletions

View File

@ -1,4 +1,5 @@
%ignore EDA_SHAPE::getCenter;
%ignore std::abs;
#pragma SWIG nowarn=503
%{
@ -33,6 +34,9 @@
def __truediv__(self, other):
return EDA_ANGLE(self.AsDegrees() / other, DEGREES_T)
def __abs__(self):
return EDA_ANGLE(abs(self.AsDegrees()), DEGREES_T)
%}
}