[bindings] Format with yapf (precommit will reformat)

This commit is contained in:
Frank Martinez
2025-10-07 12:07:42 -05:00
parent d4d7cabdc5
commit 0d0689341b
254 changed files with 885 additions and 311 deletions

View File

@@ -5,6 +5,7 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import export
@export(
Include="Mod/CAM/App/Area.h",
Namespace="Path",
@@ -95,6 +96,7 @@ class Area(BaseClass):
def abort(self, **kwargs) -> Any:
"""Abort the current operation."""
...
Sections: Final[list]
"""List of sections in this area."""

View File

@@ -4,6 +4,7 @@ from Base.Metadata import class_declarations, constmethod, export
from Base.Persistence import Persistence
from Base.Placement import Placement
@export(
Include="Mod/CAM/App/Command.h",
Namespace="Path",
@@ -31,6 +32,7 @@ class Command(Persistence):
def transform(self, placement: Placement, /) -> Command:
"""transform(Placement): returns a copy of this command transformed by the given placement"""
...
Name: str
"""The name of the command"""

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/CAM/App/FeatureArea.h",
Namespace="Path",
@@ -28,5 +29,6 @@ class FeatureArea(DocumentObject):
Same usage as Path.Area.setParams(). This function stores the parameters in the properties.
"""
...
WorkPlane: Any
"""The current workplane. If no plane is set, it is derived from the added shapes."""

View File

@@ -6,6 +6,7 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/CAM/App/FeaturePathCompound.h",
TwinPointer="FeatureCompound",

View File

@@ -5,6 +5,7 @@ from typing import Any, Final
from Base.Metadata import constmethod, export
from Base.Persistence import Persistence
@export(
Include="Mod/CAM/App/Path.h",
Twin="Toolpath",
@@ -54,6 +55,7 @@ class Path(Persistence):
def getCycleTime(self) -> Any:
"""return the cycle time estimation for this path in s"""
...
Length: Final[float]
"""the total length of this path in mm"""

View File

@@ -5,6 +5,7 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/Voronoi.h",
Namespace="Path",
@@ -81,6 +82,7 @@ class Voronoi(BaseClass):
def numSegments(self) -> Any:
"""Return number of input segments"""
...
Cells: Final[list]
"""List of all cells of the voronoi diagram"""

View File

@@ -5,6 +5,7 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/VoronoiCell.h",
Namespace="Path",
@@ -39,6 +40,7 @@ class VoronoiCell(BaseClass):
def getSource(self) -> Any:
"""Returns the Source for the cell"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -5,6 +5,7 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/VoronoiEdge.h",
Namespace="Path",
@@ -69,6 +70,7 @@ class VoronoiEdge(BaseClass):
def getSegmentAngle(self) -> Any:
"""Returns the angle (in degree) of the segments if the edge was formed by two segments"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -5,6 +5,7 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/VoronoiVertex.h",
Namespace="Path",
@@ -24,6 +25,7 @@ class VoronoiVertex(BaseClass):
def toPoint(self) -> Any:
"""Returns a Vector - or None if not possible"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -7,6 +7,7 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import export
@export(
FatherInclude="Base/BaseClassPy.h",
Include="Mod/CAM/PathSimulator/App/PathSim.h",
@@ -51,5 +52,6 @@ class PathSim(BaseClass):
Apply a single path command on the stock starting from placement."""
...
Tool: Final[Any]
"""Return current simulation tool."""

View File

@@ -8,6 +8,7 @@ from Base.BaseClass import BaseClass
from Base.Metadata import export
from Metadata import no_args
@export(
Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h",
FatherInclude="Base/BaseClassPy.h",