[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

@@ -8,7 +8,6 @@ from Base.Metadata import export
from App.Part import Part
@export(
Include="Mod/Assembly/App/AssemblyLink.h",
Namespace="Assembly",

View File

@@ -9,7 +9,6 @@ from Base.Metadata import constmethod, export
from App.Part import Part
from App.DocumentObject import DocumentObject
@export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly")
class AssemblyObject(Part):
"""
@@ -145,10 +144,8 @@ class AssemblyObject(Part):
@constmethod
def getDownstreamParts(
self,
start_part: DocumentObject,
joint_to_ignore: DocumentObject,
/) -> list[DocumentObject]:
self, start_part: DocumentObject, joint_to_ignore: DocumentObject, /
) -> list[DocumentObject]:
"""
Finds all parts connected to a start_part that are not connected to ground
when a specific joint is ignored.
@@ -165,6 +162,5 @@ class AssemblyObject(Part):
A list of App.DocumentObject instances representing the downstream parts.
"""
...
Joints: Final[list]
"""A list of all joints this assembly has."""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObjectGroup import DocumentObjectGroup
@export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly")
class BomGroup(DocumentObjectGroup):
"""

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from Spreadsheet.Sheet import Sheet
@export(
Include="Mod/Assembly/App/BomObject.h",
FatherInclude="Mod/Spreadsheet/App/SheetPy.h",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObjectGroup import DocumentObjectGroup
@export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly")
class JointGroup(DocumentObjectGroup):
"""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObjectGroup import DocumentObjectGroup
@export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly")
class SimulationGroup(DocumentObjectGroup):
"""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObjectGroup import DocumentObjectGroup
@export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly")
class ViewGroup(DocumentObjectGroup):
"""

View File

@@ -51,7 +51,6 @@ class ViewProviderAssembly(ViewProvider):
Restores the visual state of all components, clearing any active isolation.
"""
...
EnableMovement: bool
"""Enable moving the parts by clicking and dragging."""

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",

View File

@@ -51,10 +51,8 @@ class FemMesh(ComplexGeoData):
@overload
def addEdge(self, n1: int, n2: int, /) -> int: ...
@overload
def addEdge(self, nodes: list[int], elem_id: int | None = None, /) -> int: ...
def addEdge(self, *args) -> int:
"""Add an edge by setting two node indices."""
...
@@ -65,10 +63,8 @@ class FemMesh(ComplexGeoData):
@overload
def addFace(self, n1: int, n2: int, n3: int, /) -> int: ...
@overload
def addFace(self, nodes: list[int], elem_id: int | None = None, /) -> int: ...
def addFace(self) -> Any:
"""Add a face by setting three node indices."""
...
@@ -83,10 +79,8 @@ class FemMesh(ComplexGeoData):
@overload
def addVolume(self, n1: int, n2: int, n3: int, n4: int, /) -> int: ...
@overload
def addVolume(self, nodes: list[int], elem_id: int | None = None, /) -> int: ...
def addVolume(self, *args) -> int:
"""Add a volume by setting an arbitrary number of node indices."""
...
@@ -121,7 +115,8 @@ class FemMesh(ComplexGeoData):
groupParam: bool,
volVariant: str = "standard",
faceVariant: str = "shell",
edgeVariant: str = "beam") -> None:
edgeVariant: str = "beam",
) -> None:
"""
Write out as ABAQUS inp.
@@ -295,7 +290,6 @@ class FemMesh(ComplexGeoData):
def getIdByElementType(self, elem_type: str, /) -> tuple[int, ...]:
"""Return a tuple of IDs to a given element type"""
...
Nodes: Final[dict]
"""Dictionary of Nodes by ID (int ID:Vector())"""

View File

@@ -8,7 +8,6 @@ from Base.Metadata import export
from Fem.FemPostFilter import FemPostFilter
@export(
Include="Mod/Fem/App/FemPostBranchFilter.h",
Namespace="Fem",

View File

@@ -27,7 +27,6 @@ class FemPostPipeline(FemPostObject):
@overload
def read(self, file_name: str, /) -> None: ...
@overload
def read(
self,
@@ -36,8 +35,7 @@ class FemPostPipeline(FemPostObject):
unit: Unit,
frame_type: str,
/,
) -> None: ...
) -> None: ...
def read(self, *args) -> None:
"""
Reads in a single vtk file or creates a multiframe result by reading in multiple result files.
@@ -56,7 +54,6 @@ class FemPostPipeline(FemPostObject):
@overload
def load(self, obj: DocumentObject, /) -> None: ...
@overload
def load(
self,
@@ -65,8 +62,7 @@ class FemPostPipeline(FemPostObject):
unit: Unit,
frame_type: str,
/,
) -> None: ...
) -> None: ...
def load(self, *args) -> Any:
"""
Load a single result object or create a multiframe result by loading multiple result frames.

View File

@@ -8,7 +8,6 @@ from Base.Metadata import export
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
@export(
Include="Mod/Fem/Gui/ViewProviderFemConstraint.h",
Namespace="FemGui",
@@ -33,7 +32,6 @@ class ViewProviderFemConstraint(ViewProviderGeometryObject):
Open Inventor file.
"""
...
SymbolNode: Final[Any]
"""A pivy SoSeparator with the nodes of the constraint symbols"""

View File

@@ -8,7 +8,6 @@ from Base.Metadata import export
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
@export(
Include="Mod/Fem/Gui/ViewProviderFemMesh.h",
Namespace="FemGui",
@@ -44,7 +43,6 @@ class ViewProviderFemMesh(ViewProviderGeometryObject):
def setNodeDisplacementByVectors(self) -> Any:
""""""
...
NodeColor: dict
"""Postprocessing color of the nodes. The faces between the nodes get interpolated."""

View File

@@ -8,7 +8,6 @@ from Base.Metadata import export
from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject
@export(
Twin="ViewProviderFemPostObject",
TwinPointer="ViewProviderFemPostObject",

View File

@@ -8,7 +8,6 @@ from Base.Metadata import export
from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject
@export(
Include="Mod/Fem/Gui/ViewProviderFemPostPipeline.h",
Namespace="FemGui",

View File

@@ -7,7 +7,6 @@ from typing import Any
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Import/App/StepShape.h",
Namespace="Import",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/Measure/App/MeasureBase.h",
Namespace="Measure",

View File

@@ -7,7 +7,6 @@ from typing import Any
from Base.BaseClass import BaseClass
from Base.Metadata import export
@export(
Include="Mod/Measure/App/Measurement.h",
Namespace="Measure",

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Measure/Gui/QuickMeasure.h",
Namespace="MeasureGui",

View File

@@ -7,7 +7,6 @@ from typing import Final, Any
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Mesh/App/Edge.h",
Namespace="Mesh",
@@ -46,7 +45,6 @@ class Edge(PyObjectBase):
After calling unbound() no topological operation will
work!"""
...
Index: Final[int]
"""The index of this edge of the facet"""

View File

@@ -7,7 +7,6 @@ from typing import Any, Final
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Mesh/App/Facet.h",
Namespace="Mesh",
@@ -57,7 +56,6 @@ class Facet(PyObjectBase):
"""getEdge(int) -> Edge
Returns the edge of the facet."""
...
Index: Final[int]
"""The index of this facet in the MeshObject"""

View File

@@ -8,7 +8,6 @@ from Base.Metadata import constmethod, export, class_declarations
from App.ComplexGeoData import ComplexGeoData
@export(
Twin="MeshObject",
TwinPointer="MeshObject",
@@ -510,7 +509,6 @@ class Mesh(ComplexGeoData):
The items in the list contains minimum and maximum curvature with their directions
"""
...
Points: Final[list]
"""A collection of the mesh points
With this attribute it is possible to get access to the points of the mesh

View File

@@ -8,7 +8,6 @@ from Base.Metadata import export
from App.GeoFeature import GeoFeature
@export(
Twin="Feature",
TwinPointer="Feature",

View File

@@ -7,7 +7,6 @@ from typing import Any, Final
from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Mesh/App/MeshPoint.h",
Namespace="Mesh",
@@ -34,7 +33,6 @@ class MeshPoint(PyObjectBase):
After calling unbound() no topological operation will
work!"""
...
Index: Final[int]
"""The index of this point in the MeshObject"""

View File

@@ -6,7 +6,6 @@ from typing import Any
from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject
from Base.Metadata import export
@export(
Include="Mod/Mesh/Gui/ViewProvider.h",
Namespace="MeshGui",

View File

@@ -7,7 +7,6 @@ from TrimmedCurve import TrimmedCurve
from Geometry import Geom_Circle, Geom_Ellipse
from typing import overload
@export(
Father="TrimmedCurvePy",
PythonName="Part.Arc",
@@ -26,9 +25,6 @@ class Arc(TrimmedCurve):
"""
@overload
def __init__(self, circ: Geom_Circle, T: type = ...) -> None:
...
def __init__(self, circ: Geom_Circle, T: type = ...) -> None: ...
@overload
def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None:
...
def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None: ...

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from ArcOfConic import ArcOfConic
from typing import Final
@export(
PythonName="Part.ArcOfCircle",
Twin="GeomArcOfCircle",

View File

@@ -7,7 +7,6 @@ from Base.Vector import Vector
from TrimmedCurve import TrimmedCurve
from typing import overload
@export(
Father="TrimmedCurvePy",
PythonName="Part.ArcOfConic",
@@ -26,8 +25,7 @@ class ArcOfConic(TrimmedCurve):
"""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
Location: Vector = ...
"""Center of the conic."""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from ArcOfConic import ArcOfConic
from typing import Final
@export(
PythonName="Part.ArcOfEllipse",
Twin="GeomArcOfEllipse",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from Part.ArcOfConic import ArcOfConic
from typing import Final
@export(
Father="ArcOfConicPy",
Name="ArcOfHyperbolaPy",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from ArcOfConic import ArcOfConic
from typing import Final
@export(
Father="ArcOfConicPy",
Name="ArcOfParabolaPy",

View File

@@ -8,7 +8,6 @@ from Base.Placement import Placement
from App.DocumentObject import DocumentObject
from typing import Final, Optional
@export(
Include="Mod/Part/App/Attacher.h",
Namespace="Attacher",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObjectExtension import DocumentObjectExtension
from typing import Any, Final
@export(
Twin="AttachExtension",
TwinPointer="AttachExtension",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
from typing import List
@export(
PythonName="Part.BRepFeat.MakePrism",
Twin="BRepFeat_MakePrism",

View File

@@ -10,7 +10,6 @@ from Part.App.TopoShapeEdge import TopoShapeEdge
from Part.App.TopoShapeFace import TopoShapeFace
from typing import overload
@export(
PythonName="Part.BRepOffsetAPI_MakeFilling",
Include="BRepOffsetAPI_MakeFilling.hxx",
@@ -63,25 +62,17 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
...
@overload
def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None:
...
def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None: ...
@overload
def add(self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True) -> None:
...
def add(
self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True
) -> None: ...
@overload
def add(self, Support: TopoShapeFace, Order: int) -> None:
...
def add(self, Support: TopoShapeFace, Order: int) -> None: ...
@overload
def add(self, Point: Point) -> None:
...
def add(self, Point: Point) -> None: ...
@overload
def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None:
...
def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None: ...
def add(self, **kwargs) -> None:
"""
add(Edge, Order, IsBound=True)
@@ -106,13 +97,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
...
@overload
def G0Error(self, /) -> float:
...
def G0Error(self, /) -> float: ...
@overload
def G0Error(self, arg: int, /) -> float:
...
def G0Error(self, arg: int, /) -> float: ...
def G0Error(self, arg: int = 0, /) -> float:
"""
G0Error([int])
@@ -121,13 +108,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
...
@overload
def G1Error(self, /) -> float:
...
def G1Error(self, /) -> float: ...
@overload
def G1Error(self, arg: int, /) -> float:
...
def G1Error(self, arg: int, /) -> float: ...
def G1Error(self, arg: int = 0, /) -> float:
"""
G1Error([int])
@@ -136,13 +119,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase):
...
@overload
def G2Error(self, /) -> float:
...
def G2Error(self, /) -> float: ...
@overload
def G2Error(self, arg: int, /) -> float:
...
def G2Error(self, arg: int, /) -> float: ...
def G2Error(self, arg: int = 0, /) -> float:
"""
G2Error([int])

View File

@@ -8,7 +8,6 @@ from Base.Vector import Vector
from TopoShape import TopoShape
from typing import overload
@export(
PythonName="Part.BRepOffsetAPI_MakePipeShell",
Include="BRepOffsetAPI_MakePipeShell.hxx",
@@ -58,7 +57,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase):
"""
...
def setAuxiliarySpine(self, wire: TopoShape, CurvilinearEquivalence: bool, TypeOfContact: int, /) -> None:
def setAuxiliarySpine(
self, wire: TopoShape, CurvilinearEquivalence: bool, TypeOfContact: int, /
) -> None:
"""
setAuxiliarySpine(wire, CurvilinearEquivalence, TypeOfContact)
Sets an auxiliary spine to define the Normal.
@@ -76,9 +77,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase):
...
@overload
def add(self, Profile: TopoShape, *, WithContact: bool = False, WithCorrection: bool = False) -> None:
...
def add(
self, Profile: TopoShape, *, WithContact: bool = False, WithCorrection: bool = False
) -> None: ...
@overload
def add(
self,
@@ -87,9 +88,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase):
*,
WithContact: bool = False,
WithCorrection: bool = False,
) -> None:
...
) -> None: ...
def add(self, **kwargs) -> None:
"""
add(shape Profile, bool WithContact=False, bool WithCorrection=False)

View File

@@ -9,7 +9,6 @@ from Part.App.Arc import Arc
from Part.App.BezierCurve import BezierCurve
from typing import Final, List, overload, Any
@export(
PythonName="Part.BSplineCurve",
Twin="GeomBSplineCurve",
@@ -107,13 +106,9 @@ class BSplineCurve(BoundedCurve):
...
@overload
def increaseMultiplicity(self, index: int, mult: int, /) -> None:
...
def increaseMultiplicity(self, index: int, mult: int, /) -> None: ...
@overload
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None:
...
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: ...
def increaseMultiplicity(self, *args, **kwargs) -> None:
"""
increaseMultiplicity(int index, int mult)
@@ -347,9 +342,7 @@ class BSplineCurve(BoundedCurve):
TorsionWeight: float = 0.0,
Parameters: List[float] = None,
ParamType: str = "Uniform",
) -> None:
...
) -> None: ...
def approximate(self, **kwargs) -> None:
"""
Replaces this B-Spline curve by approximating a set of points.
@@ -386,9 +379,7 @@ class BSplineCurve(BoundedCurve):
@overload
@constmethod
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]:
...
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: ...
@constmethod
def getCardinalSplineTangents(self, **kwargs) -> List[Vector]:
"""
@@ -407,9 +398,7 @@ class BSplineCurve(BoundedCurve):
FinalTangent: Vector = None,
Tangents: List[Vector] = None,
TangentFlags: List[bool] = None,
) -> None:
...
) -> None: ...
def interpolate(self, **kwargs) -> None:
"""
Replaces this B-Spline curve by interpolating a set of points.
@@ -486,9 +475,7 @@ class BSplineCurve(BoundedCurve):
degree: int,
weights: List[float] = None,
CheckRational: bool = False,
) -> None:
...
) -> None: ...
def buildFromPolesMultsKnots(self, **kwargs) -> None:
"""
Builds a B-Spline by a lists of Poles, Mults, Knots.

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
from GeometrySurface import GeometrySurface
from typing import Final, List, Any
@export(
PythonName="Part.BSplineSurface",
Twin="GeomBSplineSurface",

View File

@@ -7,7 +7,6 @@ from Base.Vector import Vector
from BoundedCurve import BoundedCurve
from typing import Final, List
@export(
Twin="GeomBezierCurve",
TwinPointer="GeomBezierCurve",

View File

@@ -9,7 +9,6 @@ from Base.Metadata import (
from GeometrySurface import GeometrySurface
from typing import Final, Tuple, Any
@export(
Twin="GeomBezierSurface",
TwinPointer="GeomBezierSurface",

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from PartFeature import PartFeature
@export(
Twin="BodyBase",
TwinPointer="BodyBase",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from GeometryCurve import GeometryCurve
from typing import Any, Final
@export(
Twin="GeomBoundedCurve",
TwinPointer="GeomBoundedCurve",

View File

@@ -6,7 +6,6 @@ from Metadata import export
from Base.PyObjectBase import PyObjectBase
from typing import Tuple
@export(
Name="ChFi2d_AnaFilletAlgoPy",
PythonName="Part.ChFi2d.AnaFilletAlgo",

View File

@@ -7,7 +7,6 @@ from typing import Tuple
from Base.PyObjectBase import PyObjectBase
@export(
PythonName="Part.ChFi2d.ChamferAPI",
Twin="ChFi2d_ChamferAPI",

View File

@@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase
from Part.TopoShapeEdgePy import TopoShapeEdge
from Part.PointPy import Point
@export(
PythonName="Part.ChFi2d.FilletAPI",
Twin="ChFi2d_FilletAPI",
@@ -44,8 +43,9 @@ class ChFi2d_FilletAPI(PyObjectBase):
"""
...
def result(self, point: Point, solution: int = -1,
/) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]:
def result(
self, point: Point, solution: int = -1, /
) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]:
"""
result(point, solution=-1)

View File

@@ -6,7 +6,6 @@ from Metadata import export
from Base.PyObjectBase import PyObjectBase
from Base.Vector import Vector
@export(
Name="ChFi2d_FilletAlgoPy",
PythonName="Part.ChFi2d.FilletAlgo",

View File

@@ -8,7 +8,6 @@ from Conic import Conic
from Point import Point
from typing import overload
@export(
PythonName="Part.Circle",
Twin="GeomCircle",
@@ -42,21 +41,12 @@ class Circle(Conic):
"""The radius of the circle."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, circle: "Circle") -> None:
...
def __init__(self, circle: "Circle") -> None: ...
@overload
def __init__(self, circle: "Circle", distance: float) -> None:
...
def __init__(self, circle: "Circle", distance: float) -> None: ...
@overload
def __init__(self, center: Point, normal: Vector, radius: float) -> None:
...
def __init__(self, center: Point, normal: Vector, radius: float) -> None: ...
@overload
def __init__(self, point1: Point, point2: Point, point3: Point) -> None:
...
def __init__(self, point1: Point, point2: Point, point3: Point) -> None: ...

View File

@@ -8,7 +8,6 @@ from Base.Axis import Axis as AxisPy
from GeometrySurface import GeometrySurface
from typing import Final
@export(
PythonName="Part.Cone",
Twin="GeomCone",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from GeometryCurve import GeometryCurve
from typing import Final
@export(
PythonName="Part.Conic",
Twin="GeomConic",

View File

@@ -8,7 +8,6 @@ from Circle import Circle
from GeometrySurface import GeometrySurface
from typing import overload
@export(
PythonName="Part.Cylinder",
Twin="GeomCylinder",
@@ -52,21 +51,12 @@ class Cylinder(GeometrySurface):
"""The axis direction of the cylinder"""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, cylinder: "Cylinder") -> None:
...
def __init__(self, cylinder: "Cylinder") -> None: ...
@overload
def __init__(self, cylinder: "Cylinder", distance: float) -> None:
...
def __init__(self, cylinder: "Cylinder", distance: float) -> None: ...
@overload
def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None:
...
def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None: ...
@overload
def __init__(self, circle: Circle) -> None:
...
def __init__(self, circle: Circle) -> None: ...

View File

@@ -7,7 +7,6 @@ from Base.Vector import Vector
from Conic import Conic
from typing import Final
@export(
Twin="GeomEllipse",
TwinPointer="GeomEllipse",

View File

@@ -6,7 +6,6 @@ from Metadata import export
from typing import Final, overload
from Part.Geom2d import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfCircle2d",
Twin="Geom2dArcOfCircle",
@@ -30,8 +29,7 @@ class ArcOfCircle2d(ArcOfConic2d):
"""The internal circle representation"""
@overload
def __init__(self, Radius: float, Circle: object) -> None:
...
def __init__(self, Radius: float, Circle: object) -> None: ...
"""
ArcOfCircle2d(Radius, Circle) -> None

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from typing import Final
from Part.Geom2d import Curve2d
@export(
PythonName="Part.Geom2d.ArcOfConic2d",
Twin="Geom2dArcOfConic",

View File

@@ -6,7 +6,6 @@ from Metadata import export
from typing import Final, overload
from Part import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfEllipse2d",
Twin="Geom2dArcOfEllipse",
@@ -32,5 +31,4 @@ class ArcOfEllipse2d(ArcOfConic2d):
"""The internal ellipse representation"""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export, overload
from typing import Final
from Part.Geom2d import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfHyperbola2d",
Twin="Geom2dArcOfHyperbola",
@@ -31,5 +30,4 @@ class ArcOfHyperbola2d(ArcOfConic2d):
"""The internal hyperbola representation"""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...

View File

@@ -6,7 +6,6 @@ from Metadata import export, overload
from typing import Final
from Part.Geom2d import ArcOfConic2d
@export(
PythonName="Part.Geom2d.ArcOfParabola2d",
Twin="Geom2dArcOfParabola",
@@ -30,5 +29,4 @@ class ArcOfParabola2d(ArcOfConic2d):
"""The internal parabola representation."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...

View File

@@ -7,7 +7,6 @@ from typing import Final, overload
from Part.Curve2d import Curve2d
from Base.Vector import Vector
@export(
Twin="Geom2dBSplineCurve",
TwinPointer="Geom2dBSplineCurve",
@@ -88,13 +87,9 @@ class BSplineCurve2d(Curve2d):
...
@overload
def increaseMultiplicity(self, index: int, mult: int, /) -> None:
...
def increaseMultiplicity(self, index: int, mult: int, /) -> None: ...
@overload
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None:
...
def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: ...
def increaseMultiplicity(self, *args, **kwargs) -> None:
"""
increaseMultiplicity(int index, int mult)
@@ -387,9 +382,7 @@ class BSplineCurve2d(Curve2d):
knots: tuple[float, ...],
periodic: bool,
degree: int,
) -> None:
...
) -> None: ...
@overload
def buildFromPolesMultsKnots(
self,
@@ -400,9 +393,7 @@ class BSplineCurve2d(Curve2d):
degree: int,
weights: tuple[float, ...],
CheckRational: bool,
) -> None:
...
) -> None: ...
def buildFromPolesMultsKnots(self, **kwargs) -> None:
"""
Builds a B-Spline by a lists of Poles, Mults, Knots.

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
from Part.Curve2d import Curve2d
from typing import Final, List
@export(
Twin="Geom2dBezierCurve",
TwinPointer="Geom2dBezierCurve",

View File

@@ -6,7 +6,6 @@ from Metadata import export
from typing import overload, Tuple
from Part.Geom2d import Conic2d
@export(
PythonName="Part.Geom2d.Circle2d",
Twin="Geom2dCircle",
@@ -42,27 +41,17 @@ class Circle2d(Conic2d):
"""The radius of the circle."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, circle: "Circle2d") -> None:
...
def __init__(self, circle: "Circle2d") -> None: ...
@overload
def __init__(self, circle: "Circle2d", Distance: float) -> None:
...
def __init__(self, circle: "Circle2d", Distance: float) -> None: ...
@overload
def __init__(self, Center: Tuple[float, float], Radius: float) -> None:
...
def __init__(self, Center: Tuple[float, float], Radius: float) -> None: ...
@overload
def __init__(
self, Point1: Tuple[float, float], Point2: Tuple[float, float], Point3: Tuple[float, float]
) -> None:
...
) -> None: ...
@overload
def __init__(self, *args, **kwargs) -> None:
"""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from typing import Final
from Part.Geom2d import Curve2d
@export(
PythonName="Part.Geom2d.Conic2d",
Twin="Geom2dConic",

View File

@@ -8,7 +8,6 @@ from Part.App.Geom2d.Geometry2d import Geometry2d
from Part.App.Geom2d.BSplineCurve import BSplineCurve
from typing import Final, overload, List
@export(
Include="Mod/Part/App/Geometry2d.h",
FatherInclude="Mod/Part/App/Geom2d/Geometry2dPy.h",
@@ -54,34 +53,22 @@ class Curve2d(Geometry2d):
@overload
@constmethod
def discretize(self, *, Number: int) -> List[Vector]:
...
def discretize(self, *, Number: int) -> List[Vector]: ...
@overload
@constmethod
def discretize(self, *, QuasiNumber: int) -> List[Vector]:
...
def discretize(self, *, QuasiNumber: int) -> List[Vector]: ...
@overload
@constmethod
def discretize(self, *, Distance: float) -> List[Vector]:
...
def discretize(self, *, Distance: float) -> List[Vector]: ...
@overload
@constmethod
def discretize(self, *, Deflection: float) -> List[Vector]:
...
def discretize(self, *, Deflection: float) -> List[Vector]: ...
@overload
@constmethod
def discretize(self, *, QuasiDeflection: float) -> List[Vector]:
...
def discretize(self, *, QuasiDeflection: float) -> List[Vector]: ...
@overload
@constmethod
def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]:
...
def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]: ...
@constmethod
def discretize(self, **kwargs) -> List[Vector]:
"""
@@ -120,21 +107,13 @@ class Curve2d(Geometry2d):
...
@overload
def length(self, /) -> float:
...
def length(self, /) -> float: ...
@overload
def length(self, uMin: float, /) -> float:
...
def length(self, uMin: float, /) -> float: ...
@overload
def length(self, uMin: float, uMax: float, /) -> float:
...
def length(self, uMin: float, uMax: float, /) -> float: ...
@overload
def length(self, uMin: float, uMax: float, Tol: float, /) -> float:
...
def length(self, uMin: float, uMax: float, Tol: float, /) -> float: ...
def length(self, *args: float) -> float:
"""
Computes the length of a curve
@@ -143,13 +122,9 @@ class Curve2d(Geometry2d):
...
@overload
def parameterAtDistance(self, abscissa: float, /) -> float:
...
def parameterAtDistance(self, abscissa: float, /) -> float: ...
@overload
def parameterAtDistance(self, abscissa: float, startingParameter: float, /) -> float:
...
def parameterAtDistance(self, abscissa: float, startingParameter: float, /) -> float: ...
def parameterAtDistance(self, *args: float) -> float:
"""
Returns the parameter on the curve of a point at
@@ -206,13 +181,9 @@ class Curve2d(Geometry2d):
...
@overload
def toBSpline(self, /) -> BSplineCurve:
...
def toBSpline(self, /) -> BSplineCurve: ...
@overload
def toBSpline(self, First: float, Last: float, /) -> BSplineCurve:
...
def toBSpline(self, First: float, Last: float, /) -> BSplineCurve: ...
def toBSpline(self, *args: float) -> BSplineCurve:
"""
Converts a curve of any type (only part from First to Last)

View File

@@ -6,7 +6,6 @@ from typing import Final, overload
from Base.Metadata import export
from Part.Conic2d import Conic2d
@export(
Twin="Geom2dEllipse",
TwinPointer="Geom2dEllipse",
@@ -56,21 +55,12 @@ class Ellipse2d(Conic2d):
"""The second focus is on the negative side of the major axis of the ellipse."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, Ellipse: "Ellipse2d") -> None:
...
def __init__(self, Ellipse: "Ellipse2d") -> None: ...
@overload
def __init__(self, S1: object, S2: object, Center: object) -> None:
...
def __init__(self, S1: object, S2: object, Center: object) -> None: ...
@overload
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None:
...
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ...
@overload
def __init__(self, *args, **kwargs) -> None:
...
def __init__(self, *args, **kwargs) -> None: ...

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
@export(
Twin="Geometry2d",
TwinPointer="Geometry2d",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from Part.Conic2d import Conic2d
from typing import Final, overload
@export(
Twin="Geom2dHyperbola",
TwinPointer="Geom2dHyperbola",
@@ -62,17 +61,10 @@ class Hyperbola2d(Conic2d):
"""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, Hyperbola: "Hyperbola2d") -> None:
...
def __init__(self, Hyperbola: "Hyperbola2d") -> None: ...
@overload
def __init__(self, S1: object, S2: object, Center: object) -> None:
...
def __init__(self, S1: object, S2: object, Center: object) -> None: ...
@overload
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None:
...
def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ...

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from Part.Geom2d.Curve2d import Curve2d
@export(
PythonName="Part.Geom2d.Line2d",
Twin="Geom2dLine",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from typing import overload
from Part.Geom2d import Curve2d
@export(
PythonName="Part.Geom2d.Line2dSegment",
Twin="Geom2dLineSegment",
@@ -37,17 +36,11 @@ class Line2dSegment(Curve2d):
"""Returns the end point of this line segment."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, Line: "Line2dSegment") -> None:
...
def __init__(self, Line: "Line2dSegment") -> None: ...
@overload
def __init__(self, Point1: object, Point2: object) -> None:
...
def __init__(self, Point1: object, Point2: object) -> None: ...
def setParameterRange(self) -> None:
"""
Set the parameter range of the underlying line segment geometry.

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Metadata import export
from Part.Geom2d import Curve2d
@export(
Name="OffsetCurve2dPy",
Namespace="Part",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from Part.App.Geom2d.Conic2d import Conic2d
from typing import Final
@export(
Include="Mod/Part/App/Geometry2d.h",
FatherInclude="Mod/Part/App/Geom2d/Conic2dPy.h",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
from typing import List
@export(
PythonName="Part.GeomPlate.BuildPlateSurfacePy",
Twin="GeomPlate_BuildPlateSurface",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
from typing import Final
@export(
PythonName="Part.GeomPlate.CurveConstraintPy",
Twin="GeomPlate_CurveConstraint",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from Base.PyObjectBase import PyObjectBase
from typing import Tuple
@export(
PythonName="Part.GeomPlate.PointConstraintPy",
Twin="GeomPlate_PointConstraint",

View File

@@ -9,7 +9,6 @@ from Base.Vector import Vector
from Base.Matrix import Matrix
from typing import Final, List, Optional
@export(
Include="Mod/Part/App/Geometry.h",
Constructor=True,

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from GeometryExtension import GeometryExtension
@export(
PythonName="Part.GeometryBoolExtension",
Include="Mod/Part/App/GeometryDefaultExtension.h",

View File

@@ -10,7 +10,6 @@ from Part.App.BSplineCurve import BSplineCurve
from Part.App.TrimmedCurve import TrimmedCurve
from typing import Final, overload, List, Union, Optional, Tuple
@export(
Twin="GeomCurve",
TwinPointer="GeomCurve",
@@ -48,8 +47,9 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(self, Number: int, *, First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
def discretize(
self, Number: int, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
"""
Discretizes the curve and returns a list of points.
"""
@@ -57,11 +57,9 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(self,
QuasiNumber: int,
*,
First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
def discretize(
self, QuasiNumber: int, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
"""
Discretizes the curve and returns a list of quasi equidistant points.
"""
@@ -69,11 +67,9 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(self,
Distance: float,
*,
First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
def discretize(
self, Distance: float, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
"""
Discretizes the curve and returns a list of equidistant points with distance 'd'.
"""
@@ -81,11 +77,9 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(self,
Deflection: float,
*,
First: Optional[float] = None,
Last: Optional[float] = None) -> List[Vector]:
def discretize(
self, Deflection: float, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
"""
Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve.
"""
@@ -94,11 +88,7 @@ class GeometryCurve(Geometry):
@overload
@constmethod
def discretize(
self,
QuasiDeflection: float,
*,
First: Optional[float] = None,
Last: Optional[float] = None
self, QuasiDeflection: float, *, First: Optional[float] = None, Last: Optional[float] = None
) -> List[Vector]:
"""
Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve (faster).

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from GeometryExtension import GeometryExtension
@export(
PythonName="Part.GeometryDoubleExtension",
Include="Mod/Part/App/GeometryDefaultExtension.h",

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from Base.PyObjectBase import PyObjectBase
@export(
Include="Mod/Part/App/GeometryExtension.h",
Constructor=True,

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from Part.GeometryExtension import GeometryExtension
@export(
Father="GeometryExtensionPy",
Name="GeometryIntExtensionPy",

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from GeometryExtension import GeometryExtension
@export(
PythonName="Part.GeometryStringExtension",
Include="Mod/Part/App/GeometryDefaultExtension.h",

View File

@@ -10,7 +10,6 @@ from GeometryCurve import GeometryCurve
from Line import Line
from typing import Final, overload, Any, Tuple, List, Literal, Union
@export(
Twin="GeomSurface",
TwinPointer="GeomSurface",
@@ -86,29 +85,23 @@ class GeometrySurface(Geometry):
...
@overload
def projectPoint(self, Point: Vector, Method: Literal["NearestPoint"] = "NearestPoint") -> Vector:
...
def projectPoint(
self, Point: Vector, Method: Literal["NearestPoint"] = "NearestPoint"
) -> Vector: ...
@overload
def projectPoint(self, Point: Vector, Method: Literal["LowerDistance"]) -> float:
...
def projectPoint(self, Point: Vector, Method: Literal["LowerDistance"]) -> float: ...
@overload
def projectPoint(self, Point: Vector, Method: Literal["LowerDistanceParameters"]) -> Tuple[float, float]:
...
def projectPoint(
self, Point: Vector, Method: Literal["LowerDistanceParameters"]
) -> Tuple[float, float]: ...
@overload
def projectPoint(self, Point: Vector, Method: Literal["Distance"]) -> List[float]:
...
def projectPoint(self, Point: Vector, Method: Literal["Distance"]) -> List[float]: ...
@overload
def projectPoint(self, Point: Vector, Method: Literal["Parameters"]) -> List[Tuple[float, float]]:
...
def projectPoint(
self, Point: Vector, Method: Literal["Parameters"]
) -> List[Tuple[float, float]]: ...
@overload
def projectPoint(self, Point: Vector, Method: Literal["Point"]) -> List[Vector]:
...
def projectPoint(self, Point: Vector, Method: Literal["Point"]) -> List[Vector]: ...
@constmethod
def projectPoint(self, Point: Vector, Method: str = ...) -> Any:
"""
@@ -242,9 +235,7 @@ class GeometrySurface(Geometry):
max_degree_v: int = 25,
max_segments: int = 1000,
precision_code: int = 0,
) -> Any:
...
) -> Any: ...
@constmethod
def toBSpline(
self,

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export, class_declarations
from Base.PyObjectBase import PyObjectBase
@export(
Twin="HLRBRep_Algo",
TwinPointer="HLRBRep_Algo",

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export, class_declarations
from Base.PyObjectBase import PyObjectBase
from Part.TopoShapePy import TopoShape
@export(
PythonName="Part.HLRBRep_PolyAlgo",
Twin="HLRBRep_PolyAlgo",
@@ -175,7 +174,6 @@ class HLRBRep_PolyAlgo(PyObjectBase):
Make a shape with the internal outlines in each face of shape S.
"""
...
TolAngular: float = ...
TolCoef: float = ...

View File

@@ -7,7 +7,6 @@ from Part.TopoShapePy import TopoShape
from Base.PyObjectBase import PyObjectBase
from typing import Optional
@export(
PythonName="Part.HLRToShapePy",
Twin="HLRBRep_HLRToShape",

View File

@@ -8,7 +8,6 @@ from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo
from Part.TopoShapePy import TopoShape
from typing import Optional
@export(
PythonName="Part.PolyHLRToShapePy",
Twin="HLRBRep_PolyHLRToShape",

View File

@@ -7,7 +7,6 @@ from Base.Vector import Vector
from Conic import Conic
from typing import Final, overload
@export(
Name="HyperbolaPy",
Namespace="Part",
@@ -62,17 +61,10 @@ class Hyperbola(Conic):
"""The second focus is on the negative side of the major axis of the hyperbola."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, hyperbola: "Hyperbola") -> None:
...
def __init__(self, hyperbola: "Hyperbola") -> None: ...
@overload
def __init__(self, S1: Vector, S2: Vector, Center: Vector) -> None:
...
def __init__(self, S1: Vector, S2: Vector, Center: Vector) -> None: ...
@overload
def __init__(self, Center: Vector, MajorRadius: float, MinorRadius: float) -> None:
...
def __init__(self, Center: Vector, MajorRadius: float, MinorRadius: float) -> None: ...

View File

@@ -7,7 +7,6 @@ from Base.Vector import Vector
from GeometryCurve import GeometryCurve
from typing import overload
@export(
PythonName="Part.Line",
Twin="GeomLine",
@@ -40,13 +39,8 @@ class Line(GeometryCurve):
"""Returns the direction of this line."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, line: "Line") -> None:
...
def __init__(self, line: "Line") -> None: ...
@overload
def __init__(self, point1: Vector, point2: Vector) -> None:
...
def __init__(self, point1: Vector, point2: Vector) -> None: ...

View File

@@ -8,7 +8,6 @@ from TrimmedCurve import TrimmedCurve
from Point import Point
from typing import overload
@export(
PythonName="Part.LineSegment",
Twin="GeomLineSegment",
@@ -38,17 +37,11 @@ class LineSegment(TrimmedCurve):
"""Returns the end point point of this line."""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
@overload
def __init__(self, line_segment: "LineSegment") -> None:
...
def __init__(self, line_segment: "LineSegment") -> None: ...
@overload
def __init__(self, point1: Point, point2: Point) -> None:
...
def __init__(self, point1: Point, point2: Point) -> None: ...
def setParameterRange(self) -> None:
"""
Set the parameter range of the underlying line geometry

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from Base.Vector import Vector
from GeometryCurve import GeometryCurve
@export(
PythonName="Part.OffsetCurve",
Twin="GeomOffsetCurve",

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export
from GeometrySurface import GeometrySurface
@export(
Twin="GeomOffsetSurface",
TwinPointer="GeomOffsetSurface",

View File

@@ -7,7 +7,6 @@ from Base.Vector import Vector
from Conic import Conic
from typing import Final
@export(
Twin="GeomParabola",
TwinPointer="GeomParabola",

Some files were not shown because too many files have changed in this diff Show More