removing List, Dict typing refs.
This commit is contained in:
@@ -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"""
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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"""
|
||||
|
||||
Reference in New Issue
Block a user