[pre-commit.ci] auto fixes from pre-commit.com hooks

for more information, see https://pre-commit.ci
This commit is contained in:
pre-commit-ci[bot]
2025-11-11 19:34:15 +00:00
parent 5e343b0b99
commit 0e5491ca67
192 changed files with 284 additions and 797 deletions

View File

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

View File

@@ -4,7 +4,6 @@ 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",
@@ -32,7 +31,6 @@ class Command(Persistence):
def transform(self, placement: Placement, /) -> Command:
"""returns a copy of this command transformed by the given placement"""
...
Name: str
"""The name of the command"""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/CAM/App/FeatureArea.h",
Namespace="Path",
@@ -32,6 +31,5 @@ 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,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/CAM/App/FeaturePathCompound.h",
TwinPointer="FeatureCompound",

View File

@@ -27,10 +27,8 @@ class Path(Persistence):
@overload
def addCommands(self, command: Command, /) -> Path: ...
@overload
def addCommands(self, commands: list[Command], /) -> Path: ...
def addCommands(self, arg: Union[Command, list[Command]], /) -> Path:
"""adds a command or a list of commands at the end of the path"""
...
@@ -62,10 +60,11 @@ class Path(Persistence):
...
@constmethod
def getCycleTime(self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, /) -> float:
def getCycleTime(
self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, /
) -> float:
"""return the cycle time estimation for this path in s"""
...
Length: Final[float]
"""the total length of this path in mm"""

View File

@@ -83,7 +83,6 @@ 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,7 +5,6 @@ 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",
@@ -40,7 +39,6 @@ class VoronoiCell(BaseClass):
def getSource(self) -> Any:
"""Returns the Source for the cell"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -5,7 +5,6 @@ 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",
@@ -70,7 +69,6 @@ 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,7 +5,6 @@ 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",
@@ -25,7 +24,6 @@ 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

@@ -53,6 +53,5 @@ class PathSim(BaseClass):
Apply a single path command on the stock starting from placement.
"""
...
Tool: Final[Any]
"""Return current simulation tool."""

View File

@@ -10,7 +10,6 @@ from Base.Metadata import export, no_args
from Part.App.TopoShape import TopoShape
from CAM.App.Command import Command
@export(
Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h",
FatherInclude="Base/BaseClassPy.h",