diff --git a/src/Mod/CAM/App/AreaPy.pyi b/src/Mod/CAM/App/AreaPy.pyi index 37542345b6..76c0dfedd6 100644 --- a/src/Mod/CAM/App/AreaPy.pyi +++ b/src/Mod/CAM/App/AreaPy.pyi @@ -1,4 +1,4 @@ -from typing import Final, List, Any +from typing import Final, Any from Base import object from Base.Metadata import export @@ -96,11 +96,11 @@ class AreaPy(object): def abort(self, **kwargs) -> Any: """Abort the current operation.""" ... - Sections: Final[List] # ReadOnly + Sections: Final[list] # ReadOnly """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] # ReadOnly """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 5cee727d3c..7737cb791c 100644 --- a/src/Mod/CAM/App/CommandPy.pyi +++ b/src/Mod/CAM/App/CommandPy.pyi @@ -1,4 +1,3 @@ -from typing import Dict from Base import PersistencePy # Use the correct parent class from Base.Metadata import export from Base.Metadata import constmethod, class_declarations @@ -41,7 +40,7 @@ class CommandPy(PersistencePy): Name: str """The name of the command""" - Parameters: Dict[str, float] + Parameters: dict[str, float] """The parameters of the command""" Placement: Placement diff --git a/src/Mod/CAM/App/PathPy.pyi b/src/Mod/CAM/App/PathPy.pyi index fce66b09b6..1a13d4ec04 100644 --- a/src/Mod/CAM/App/PathPy.pyi +++ b/src/Mod/CAM/App/PathPy.pyi @@ -1,4 +1,4 @@ -from typing import Final, List, Any +from typing import Final, Any from Base import object from Base.Metadata import export from Base.Metadata import constmethod @@ -60,7 +60,7 @@ class PathPy(object): Size: Final[int] # ReadOnly """the number of commands in this path""" - Commands: List + Commands: list """the list of commands of this path""" Center: Any diff --git a/src/Mod/CAM/App/VoronoiEdgePy.pyi b/src/Mod/CAM/App/VoronoiEdgePy.pyi index 9fbdc9c6c4..b2d383802f 100644 --- a/src/Mod/CAM/App/VoronoiEdgePy.pyi +++ b/src/Mod/CAM/App/VoronoiEdgePy.pyi @@ -1,4 +1,4 @@ -from typing import Final, List, Any +from typing import Final, Any from Base import object from Base.Metadata import export from Base.Metadata import constmethod @@ -90,7 +90,7 @@ class VoronoiEdgePy(object): Cell: Final[Any] # ReadOnly """cell the edge belongs to""" - Vertices: Final[List] # ReadOnly + Vertices: Final[list] # ReadOnly """Begin and End voronoi vertex""" Next: Final[Any] # ReadOnly diff --git a/src/Mod/CAM/App/VoronoiPy.pyi b/src/Mod/CAM/App/VoronoiPy.pyi index a7eb86cf66..5e23187d3f 100644 --- a/src/Mod/CAM/App/VoronoiPy.pyi +++ b/src/Mod/CAM/App/VoronoiPy.pyi @@ -1,4 +1,4 @@ -from typing import Final, List, Any +from typing import Final, Any from Base import object from Base.Metadata import export from Base.Metadata import constmethod @@ -83,11 +83,11 @@ class VoronoiPy(object): def numSegments(self) -> Any: """Return number of input segments""" ... - Cells: Final[List] # ReadOnly + Cells: Final[list] # ReadOnly """List of all cells of the voronoi diagram""" - Edges: Final[List] # ReadOnly + Edges: Final[list] # ReadOnly """List of all edges of the voronoi diagram""" - Vertices: Final[List] # ReadOnly + Vertices: Final[list] # ReadOnly """List of all vertices of the voronoi diagram"""