From 2e3e05e27094ab86108b2d2dd79c4596f827722b Mon Sep 17 00:00:00 2001 From: Ian 'z0r0' Abreu Date: Sun, 20 Jul 2025 08:51:45 -0400 Subject: [PATCH] Removal of comments. --- src/Mod/CAM/App/AreaPy.pyi | 8 ++++---- src/Mod/CAM/App/CommandPy.pyi | 7 +++---- src/Mod/CAM/App/PathPy.pyi | 10 +++++----- src/Mod/CAM/App/VoronoiCellPy.pyi | 10 +++++----- src/Mod/CAM/App/VoronoiEdgePy.pyi | 16 ++++++++-------- src/Mod/CAM/App/VoronoiPy.pyi | 6 +++--- src/Mod/CAM/App/VoronoiVertexPy.pyi | 8 ++++---- 7 files changed, 32 insertions(+), 33 deletions(-) diff --git a/src/Mod/CAM/App/AreaPy.pyi b/src/Mod/CAM/App/AreaPy.pyi index 76c0dfedd6..e22b2bc83d 100644 --- a/src/Mod/CAM/App/AreaPy.pyi +++ b/src/Mod/CAM/App/AreaPy.pyi @@ -12,8 +12,8 @@ from Base.Metadata import export FatherInclude="Base/BaseClassPy.h", FatherNamespace="Base", ReadOnly=["Sections", "Shapes"], - Constructor=True, # Allow constructing this object - Delete=True, # Allow deleting this object + Constructor=True, + Delete=True, ) class AreaPy(object): """ @@ -96,11 +96,11 @@ class AreaPy(object): def abort(self, **kwargs) -> Any: """Abort the current operation.""" ... - Sections: Final[list] # ReadOnly + Sections: Final[list] """List of sections in this area.""" Workplane: Any """The current workplane. If no plane is set, it is derived from the added shapes.""" - Shapes: Final[list] # ReadOnly + Shapes: Final[list] """A list of tuple: [(shape,op), ...] containing the added shapes together with their operation code""" diff --git a/src/Mod/CAM/App/CommandPy.pyi b/src/Mod/CAM/App/CommandPy.pyi index 7737cb791c..7623803d30 100644 --- a/src/Mod/CAM/App/CommandPy.pyi +++ b/src/Mod/CAM/App/CommandPy.pyi @@ -1,7 +1,7 @@ -from Base import PersistencePy # Use the correct parent class +from Base import PersistencePy from Base.Metadata import export from Base.Metadata import constmethod, class_declarations -from Base.Placement import Placement # Import Placement explicitly +from Base.Placement import Placement @export( Father="PersistencePy", @@ -13,7 +13,7 @@ from Base.Placement import Placement # Import Placement explicitly FatherInclude="Base/PersistencePy.h", FatherNamespace="Base", Delete=True, - Constructor=True, # Allow constructing this object + Constructor=True, ) @class_declarations("mutable Py::Dict parameters_copy_dict;") class CommandPy(PersistencePy): @@ -36,7 +36,6 @@ class CommandPy(PersistencePy): def transform(self, placement: Placement) -> "CommandPy": """transform(Placement): returns a copy of this command transformed by the given placement""" ... - # Define properties as attributes, not methods Name: str """The name of the command""" diff --git a/src/Mod/CAM/App/PathPy.pyi b/src/Mod/CAM/App/PathPy.pyi index 1a13d4ec04..0490b247f2 100644 --- a/src/Mod/CAM/App/PathPy.pyi +++ b/src/Mod/CAM/App/PathPy.pyi @@ -13,8 +13,8 @@ from Base.Metadata import constmethod FatherInclude="Base/PersistencePy.h", FatherNamespace="Base", ReadOnly=["Length", "Size", "BoundBox"], - Delete=True, # Allow deleting this object - Constructor=True, # Allow constructing this object + Delete=True, + Constructor=True, ) class PathPy(object): """ @@ -54,10 +54,10 @@ class PathPy(object): def getCycleTime(self) -> Any: """return the cycle time estimation for this path in s""" ... - Length: Final[float] # ReadOnly + Length: Final[float] """the total length of this path in mm""" - Size: Final[int] # ReadOnly + Size: Final[int] """the number of commands in this path""" Commands: list @@ -66,5 +66,5 @@ class PathPy(object): Center: Any """the center position for all rotational parameters""" - BoundBox: Final[Any] # ReadOnly + BoundBox: Final[Any] """the extent of this path""" diff --git a/src/Mod/CAM/App/VoronoiCellPy.pyi b/src/Mod/CAM/App/VoronoiCellPy.pyi index 76ef80bddb..da6042bc0a 100644 --- a/src/Mod/CAM/App/VoronoiCellPy.pyi +++ b/src/Mod/CAM/App/VoronoiCellPy.pyi @@ -48,20 +48,20 @@ class VoronoiCellPy(object): def getSource(self) -> Any: """Returns the Source for the cell""" ... - Index: Final[int] # ReadOnly + Index: Final[int] """Internal id of the element.""" Color: int """Assigned color of the receiver.""" - SourceIndex: Final[int] # ReadOnly + SourceIndex: Final[int] """Returns the index of the cell's source""" - SourceCategory: Final[int] # ReadOnly + SourceCategory: Final[int] """Returns the cell's category as an integer""" - SourceCategoryName: Final[str] # ReadOnly + SourceCategoryName: Final[str] """Returns the cell's category as a string""" - IncidentEdge: Final[Any] # ReadOnly + IncidentEdge: Final[Any] """Incident edge of the cell - if exists""" diff --git a/src/Mod/CAM/App/VoronoiEdgePy.pyi b/src/Mod/CAM/App/VoronoiEdgePy.pyi index b2d383802f..91e1bb3619 100644 --- a/src/Mod/CAM/App/VoronoiEdgePy.pyi +++ b/src/Mod/CAM/App/VoronoiEdgePy.pyi @@ -81,29 +81,29 @@ class VoronoiEdgePy(object): def getSegmentAngle(self) -> Any: """Returns the angle (in degree) of the segments if the edge was formed by two segments""" ... - Index: Final[int] # ReadOnly + Index: Final[int] """Internal id of the element.""" Color: int """Assigned color of the receiver.""" - Cell: Final[Any] # ReadOnly + Cell: Final[Any] """cell the edge belongs to""" - Vertices: Final[list] # ReadOnly + Vertices: Final[list] """Begin and End voronoi vertex""" - Next: Final[Any] # ReadOnly + Next: Final[Any] """CCW next edge within voronoi cell""" - Prev: Final[Any] # ReadOnly + Prev: Final[Any] """CCW previous edge within voronoi cell""" - RotNext: Final[Any] # ReadOnly + RotNext: Final[Any] """Rotated CCW next edge within voronoi cell""" - RotPrev: Final[Any] # ReadOnly + RotPrev: Final[Any] """Rotated CCW previous edge within voronoi cell""" - Twin: Final[Any] # ReadOnly + Twin: Final[Any] """Twin edge""" diff --git a/src/Mod/CAM/App/VoronoiPy.pyi b/src/Mod/CAM/App/VoronoiPy.pyi index 5e23187d3f..bbac06b9ba 100644 --- a/src/Mod/CAM/App/VoronoiPy.pyi +++ b/src/Mod/CAM/App/VoronoiPy.pyi @@ -83,11 +83,11 @@ class VoronoiPy(object): def numSegments(self) -> Any: """Return number of input segments""" ... - Cells: Final[list] # ReadOnly + Cells: Final[list] """List of all cells of the voronoi diagram""" - Edges: Final[list] # ReadOnly + Edges: Final[list] """List of all edges of the voronoi diagram""" - Vertices: Final[list] # ReadOnly + Vertices: Final[list] """List of all vertices of the voronoi diagram""" diff --git a/src/Mod/CAM/App/VoronoiVertexPy.pyi b/src/Mod/CAM/App/VoronoiVertexPy.pyi index 34208e9f67..1009bcb4de 100644 --- a/src/Mod/CAM/App/VoronoiVertexPy.pyi +++ b/src/Mod/CAM/App/VoronoiVertexPy.pyi @@ -27,17 +27,17 @@ class VoronoiVertexPy(object): def toPoint(self) -> Any: """Returns a Vector - or None if not possible""" ... - Index: Final[int] # ReadOnly + Index: Final[int] """Internal id of the element.""" Color: int """Assigned color of the receiver.""" - X: Final[float] # ReadOnly + X: Final[float] """X position""" - Y: Final[float] # ReadOnly + Y: Final[float] """Y position""" - IncidentEdge: Final[Any] # ReadOnly + IncidentEdge: Final[Any] """Y position"""