From 0e5491ca6751d37faaf4803e20e44bf0059bc78c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 19:34:15 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Base/Axis.pyi | 1 - src/Base/BaseClass.pyi | 1 - src/Base/BoundBox.pyi | 65 +++++-------------- src/Base/CoordinateSystem.pyi | 1 - src/Base/Matrix.pyi | 30 ++------- src/Base/Metadata.pyi | 15 +---- src/Base/Persistence.pyi | 1 - src/Base/Placement.pyi | 9 +-- src/Base/Precision.pyi | 1 - src/Base/PyObjectBase.pyi | 1 - src/Base/Quantity.pyi | 33 +++------- src/Base/Rotation.pyi | 1 - src/Base/Type.pyi | 7 +- src/Base/Unit.pyi | 20 ++---- src/Base/Vector.pyi | 1 - src/Gui/AxisOrigin.pyi | 2 - src/Gui/Command.pyi | 1 - src/Gui/Document.pyi | 2 - src/Gui/LinkView.pyi | 50 ++++---------- src/Gui/Navigation/NavigationStyle.pyi | 5 +- src/Gui/PythonWorkbench.pyi | 1 - src/Gui/Selection/SelectionObject.pyi | 4 +- src/Gui/ViewProvider.pyi | 2 - src/Gui/ViewProviderDocumentObject.pyi | 2 - src/Gui/ViewProviderExtension.pyi | 1 - src/Gui/ViewProviderGeometryObject.pyi | 1 - src/Gui/ViewProviderLink.pyi | 1 - src/Gui/Workbench.pyi | 5 +- src/Mod/Assembly/App/AssemblyLink.pyi | 1 - src/Mod/Assembly/App/AssemblyObject.pyi | 8 +-- src/Mod/Assembly/App/BomGroup.pyi | 1 - src/Mod/Assembly/App/BomObject.pyi | 1 - src/Mod/Assembly/App/JointGroup.pyi | 1 - src/Mod/Assembly/App/SimulationGroup.pyi | 1 - src/Mod/Assembly/App/ViewGroup.pyi | 1 - src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 1 - src/Mod/CAM/App/Area.pyi | 2 - src/Mod/CAM/App/Command.pyi | 2 - src/Mod/CAM/App/FeatureArea.pyi | 2 - src/Mod/CAM/App/FeaturePathCompound.pyi | 1 - src/Mod/CAM/App/Path.pyi | 7 +- src/Mod/CAM/App/Voronoi.pyi | 1 - src/Mod/CAM/App/VoronoiCell.pyi | 2 - src/Mod/CAM/App/VoronoiEdge.pyi | 2 - src/Mod/CAM/App/VoronoiVertex.pyi | 2 - src/Mod/CAM/PathSimulator/App/PathSim.pyi | 1 - src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 1 - src/Mod/Fem/App/FemMesh.pyi | 10 +-- src/Mod/Fem/App/FemPostBranchFilter.pyi | 1 - src/Mod/Fem/App/FemPostPipeline.pyi | 8 +-- src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 2 - src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 2 - src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 1 - .../Fem/Gui/ViewProviderFemPostPipeline.pyi | 1 - src/Mod/Import/App/StepShape.pyi | 1 - src/Mod/Measure/App/MeasureBase.pyi | 1 - src/Mod/Measure/App/Measurement.pyi | 1 - src/Mod/Measure/Gui/QuickMeasure.pyi | 1 - src/Mod/Mesh/App/Edge.pyi | 2 - src/Mod/Mesh/App/Facet.pyi | 2 - src/Mod/Mesh/App/Mesh.pyi | 2 - src/Mod/Mesh/App/MeshFeature.pyi | 1 - src/Mod/Mesh/App/MeshPoint.pyi | 2 - src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 1 - src/Mod/Part/App/Arc.pyi | 8 +-- src/Mod/Part/App/ArcOfCircle.pyi | 1 - src/Mod/Part/App/ArcOfConic.pyi | 4 +- src/Mod/Part/App/ArcOfEllipse.pyi | 1 - src/Mod/Part/App/ArcOfHyperbola.pyi | 1 - src/Mod/Part/App/ArcOfParabola.pyi | 1 - src/Mod/Part/App/AttachEngine.pyi | 1 - src/Mod/Part/App/AttachExtension.pyi | 1 - src/Mod/Part/App/BRepFeat/MakePrism.pyi | 1 - .../Part/App/BRepOffsetAPI_MakeFilling.pyi | 47 ++++---------- .../Part/App/BRepOffsetAPI_MakePipeShell.pyi | 15 ++--- src/Mod/Part/App/BSplineCurve.pyi | 25 ++----- src/Mod/Part/App/BSplineSurface.pyi | 1 - src/Mod/Part/App/BezierCurve.pyi | 1 - src/Mod/Part/App/BezierSurface.pyi | 1 - src/Mod/Part/App/BodyBase.pyi | 1 - src/Mod/Part/App/BoundedCurve.pyi | 1 - .../Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 1 - src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 1 - src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 6 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi | 1 - src/Mod/Part/App/Circle.pyi | 20 ++---- src/Mod/Part/App/Cone.pyi | 1 - src/Mod/Part/App/Conic.pyi | 1 - src/Mod/Part/App/Cylinder.pyi | 20 ++---- src/Mod/Part/App/Ellipse.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 4 +- src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi | 17 ++--- src/Mod/Part/App/Geom2d/BezierCurve2d.pyi | 1 - src/Mod/Part/App/Geom2d/Circle2d.pyi | 21 ++---- src/Mod/Part/App/Geom2d/Conic2d.pyi | 1 - src/Mod/Part/App/Geom2d/Curve2d.pyi | 57 ++++------------ src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 20 ++---- src/Mod/Part/App/Geom2d/Geometry2d.pyi | 1 - src/Mod/Part/App/Geom2d/Hyperbola2d.pyi | 16 ++--- src/Mod/Part/App/Geom2d/Line2d.pyi | 1 - src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 13 +--- src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi | 1 - src/Mod/Part/App/Geom2d/Parabola2d.pyi | 1 - .../Part/App/GeomPlate/BuildPlateSurface.pyi | 1 - .../Part/App/GeomPlate/CurveConstraint.pyi | 1 - .../Part/App/GeomPlate/PointConstraint.pyi | 1 - src/Mod/Part/App/Geometry.pyi | 1 - src/Mod/Part/App/GeometryBoolExtension.pyi | 1 - src/Mod/Part/App/GeometryCurve.pyi | 36 ++++------ src/Mod/Part/App/GeometryDoubleExtension.pyi | 1 - src/Mod/Part/App/GeometryExtension.pyi | 1 - src/Mod/Part/App/GeometryIntExtension.pyi | 1 - src/Mod/Part/App/GeometryStringExtension.pyi | 1 - src/Mod/Part/App/GeometrySurface.pyi | 35 ++++------ src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 1 - src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 2 - src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 1 - src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 1 - src/Mod/Part/App/Hyperbola.pyi | 16 ++--- src/Mod/Part/App/Line.pyi | 12 +--- src/Mod/Part/App/LineSegment.pyi | 13 +--- src/Mod/Part/App/OffsetCurve.pyi | 1 - src/Mod/Part/App/OffsetSurface.pyi | 1 - src/Mod/Part/App/Parabola.pyi | 1 - src/Mod/Part/App/Part2DObject.pyi | 1 - src/Mod/Part/App/PartFeature.pyi | 1 - src/Mod/Part/App/Plane.pyi | 1 - src/Mod/Part/App/PlateSurface.pyi | 1 - src/Mod/Part/App/Point.pyi | 14 +--- .../Part/App/RectangularTrimmedSurface.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 1 - .../App/ShapeFix/ShapeFix_EdgeConnect.pyi | 9 +-- src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi | 1 - .../App/ShapeFix/ShapeFix_FaceConnect.pyi | 1 - .../App/ShapeFix/ShapeFix_FixSmallFace.pyi | 1 - .../App/ShapeFix/ShapeFix_FixSmallSolid.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_FreeBounds.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi | 1 - .../App/ShapeFix/ShapeFix_ShapeTolerance.pyi | 21 +++--- src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi | 1 - .../ShapeFix/ShapeFix_SplitCommonVertex.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_SplitTool.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 2 - .../Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 4 +- .../Part/App/ShapeUpgrade/UnifySameDomain.pyi | 1 - src/Mod/Part/App/Sphere.pyi | 1 - src/Mod/Part/App/SurfaceOfExtrusion.pyi | 1 - src/Mod/Part/App/SurfaceOfRevolution.pyi | 6 +- src/Mod/Part/App/TopoShape.pyi | 61 +++++++++-------- src/Mod/Part/App/TopoShapeCompSolid.pyi | 1 - src/Mod/Part/App/TopoShapeCompound.pyi | 5 +- src/Mod/Part/App/TopoShapeEdge.pyi | 33 ++++------ src/Mod/Part/App/TopoShapeFace.pyi | 1 - src/Mod/Part/App/TopoShapeShell.pyi | 1 - src/Mod/Part/App/TopoShapeSolid.pyi | 9 +-- src/Mod/Part/App/TopoShapeVertex.pyi | 1 - src/Mod/Part/App/TopoShapeWire.pyi | 1 - src/Mod/Part/App/Toroid.pyi | 1 - src/Mod/Part/App/TrimmedCurve.pyi | 1 - src/Mod/Part/Gui/ViewProviderPartExt.pyi | 1 - src/Mod/PartDesign/App/Body.pyi | 1 - src/Mod/PartDesign/App/Feature.pyi | 1 - src/Mod/PartDesign/Gui/ViewProvider.pyi | 1 - src/Mod/Points/App/Points.pyi | 2 - src/Mod/Robot/App/Robot6Axis.pyi | 2 - src/Mod/Robot/App/RobotObject.pyi | 1 - src/Mod/Robot/App/Trajectory.pyi | 2 - src/Mod/Robot/App/Waypoint.pyi | 1 - src/Mod/Sketcher/App/Constraint.pyi | 1 - .../App/ExternalGeometryExtension.pyi | 2 - .../Sketcher/App/ExternalGeometryFacade.pyi | 1 - src/Mod/Sketcher/App/GeometryFacade.pyi | 1 - src/Mod/Sketcher/App/Sketch.pyi | 1 - .../Sketcher/App/SketchGeometryExtension.pyi | 1 - src/Mod/Sketcher/App/SketchObject.pyi | 51 +++++++-------- src/Mod/Sketcher/App/SketchObjectSF.pyi | 1 - .../ViewProviderSketchGeometryExtension.pyi | 1 - .../Spreadsheet/App/PropertyColumnWidths.pyi | 1 - .../Spreadsheet/App/PropertyRowHeights.pyi | 1 - src/Mod/Spreadsheet/App/PropertySheet.pyi | 5 +- src/Mod/Spreadsheet/App/Sheet.pyi | 1 - .../Gui/ViewProviderSpreadsheet.pyi | 1 - src/Mod/Surface/App/Blending/BlendCurve.pyi | 1 - src/Mod/Surface/App/Blending/BlendPoint.pyi | 2 - .../bindings/model/generateModel_Python.py | 5 +- 192 files changed, 284 insertions(+), 797 deletions(-) diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index a8670a66cc..b9c2aece02 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -8,7 +8,6 @@ from Vector import Vector from Placement import Placement from typing import overload - @export( Constructor=True, Delete=True, diff --git a/src/Base/BaseClass.pyi b/src/Base/BaseClass.pyi index 4bc22d4d58..a9d21b0ffb 100644 --- a/src/Base/BaseClass.pyi +++ b/src/Base/BaseClass.pyi @@ -6,7 +6,6 @@ from Metadata import constmethod from PyObjectBase import PyObjectBase from typing import List, Final - class BaseClass(PyObjectBase): """ This is the base class diff --git a/src/Base/BoundBox.pyi b/src/Base/BoundBox.pyi index d23514bc2b..01ba954323 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -8,7 +8,6 @@ from Vector import Vector from Matrix import Matrix from typing import overload, Any, Final, Tuple, Union - @export( TwinPointer="BoundBox3d", Constructor=True, @@ -133,17 +132,11 @@ class BoundBox(PyObjectBase): ... @overload - def add(self, minMax: Vector, /) -> None: - ... - + def add(self, minMax: Vector, /) -> None: ... @overload - def add(self, minMax: Tuple[float, float, float], /) -> None: - ... - + def add(self, minMax: Tuple[float, float, float], /) -> None: ... @overload - def add(self, x: float, y: float, z: float, /) -> None: - ... - + def add(self, x: float, y: float, z: float, /) -> None: ... def add(self, *args: Any, **kwargs: Any) -> None: """ Increase the maximum values or decrease the minimum values of this BoundBox by @@ -182,13 +175,9 @@ class BoundBox(PyObjectBase): ... @overload - def closestPoint(self, point: Vector, /) -> Vector: - ... - + def closestPoint(self, point: Vector, /) -> Vector: ... @overload - def closestPoint(self, x: float, y: float, z: float, /) -> Vector: - ... - + def closestPoint(self, x: float, y: float, z: float, /) -> Vector: ... @constmethod def closestPoint(self, *args: Any, **kwargs: Any) -> Vector: """ @@ -206,18 +195,14 @@ class BoundBox(PyObjectBase): ... @overload - def intersect(self, boundBox2: "BoundBox", /) -> bool: - ... - + def intersect(self, boundBox2: "BoundBox", /) -> bool: ... @overload def intersect( self, base: Union[Vector, Tuple[float, float, float]], dir: Union[Vector, Tuple[float, float, float]], /, - ) -> bool: - ... - + ) -> bool: ... def intersect(self, *args: Any) -> bool: """ Checks if the given object intersects with this bounding box. That can be @@ -269,17 +254,11 @@ class BoundBox(PyObjectBase): ... @overload - def move(self, displacement: Vector, /) -> None: - ... - + def move(self, displacement: Vector, /) -> None: ... @overload - def move(self, displacement: Tuple[float, float, float], /) -> None: - ... - + def move(self, displacement: Tuple[float, float, float], /) -> None: ... @overload - def move(self, x: float, y: float, z: float, /) -> None: - ... - + def move(self, x: float, y: float, z: float, /) -> None: ... def move(self, *args: Any, **kwargs: Any) -> None: """ Move the bounding box by the given values. @@ -296,17 +275,11 @@ class BoundBox(PyObjectBase): ... @overload - def scale(self, factor: Vector, /) -> None: - ... - + def scale(self, factor: Vector, /) -> None: ... @overload - def scale(self, factor: Tuple[float, float, float], /) -> None: - ... - + def scale(self, factor: Tuple[float, float, float], /) -> None: ... @overload - def scale(self, x: float, y: float, z: float, /) -> None: - ... - + def scale(self, x: float, y: float, z: float, /) -> None: ... def scale(self, *args: Any, **kwargs: Any) -> None: """ Scale the bounding box by the given values. @@ -343,17 +316,11 @@ class BoundBox(PyObjectBase): ... @overload - def isInside(self, object: Vector, /) -> bool: - ... - + def isInside(self, object: Vector, /) -> bool: ... @overload - def isInside(self, object: "BoundBox", /) -> bool: - ... - + def isInside(self, object: "BoundBox", /) -> bool: ... @overload - def isInside(self, x: float, y: float, z: float, /) -> bool: - ... - + def isInside(self, x: float, y: float, z: float, /) -> bool: ... def isInside(self, *args: Any) -> bool: """ Check if a point or a bounding box is inside this bounding box. diff --git a/src/Base/CoordinateSystem.pyi b/src/Base/CoordinateSystem.pyi index f549cbdc0a..332cce87bc 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -10,7 +10,6 @@ from Placement import Placement from Rotation import Rotation from typing import Union - @export( Constructor=True, Delete=True, diff --git a/src/Base/Matrix.pyi b/src/Base/Matrix.pyi index 063cf913ba..c31e80aa8c 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -8,7 +8,6 @@ from PyObjectBase import PyObjectBase from enum import IntEnum from typing import overload, Union, Tuple, Sequence - class ScaleType(IntEnum): Other = -1 NoScaling = 0 @@ -16,7 +15,6 @@ class ScaleType(IntEnum): NonUniformLeft = 2 Uniform = 3 - @export( TwinPointer="Matrix4D", Constructor=True, @@ -109,13 +107,9 @@ class Matrix(PyObjectBase): """The matrix elements.""" @overload - def move(self, vector: Vector, /) -> None: - ... - + def move(self, vector: Vector, /) -> None: ... @overload - def move(self, x: float, y: float, z: float, /) -> None: - ... - + def move(self, x: float, y: float, z: float, /) -> None: ... def move(self, *args) -> None: """ Move the matrix along a vector, equivalent to left multiply the matrix @@ -132,17 +126,11 @@ class Matrix(PyObjectBase): ... @overload - def scale(self, vector: Vector, /) -> None: - ... - + def scale(self, vector: Vector, /) -> None: ... @overload - def scale(self, x: float, y: float, z: float, /) -> None: - ... - + def scale(self, x: float, y: float, z: float, /) -> None: ... @overload - def scale(self, factor: float, /) -> None: - ... - + def scale(self, factor: float, /) -> None: ... def scale(self, *args) -> None: """ Scale the first three rows of the matrix. @@ -308,13 +296,9 @@ class Matrix(PyObjectBase): ... @overload - def multiply(self, matrix: "Matrix", /) -> "Matrix": - ... - + def multiply(self, matrix: "Matrix", /) -> "Matrix": ... @overload - def multiply(self, vector: Vector, /) -> Vector: - ... - + def multiply(self, vector: Vector, /) -> Vector: ... @constmethod def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]: """ diff --git a/src/Base/Metadata.pyi b/src/Base/Metadata.pyi index 99d5bd9829..b3ffdd645d 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,40 +1,31 @@ # SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations + """ This file keeps auxiliary metadata to be used by the Python API stubs. """ - def export(**kwargs): """ A decorator to attach metadata to a class. """ ... - -def constmethod(method): - ... - - -def no_args(method): - ... - - +def constmethod(method): ... +def no_args(method): ... def forward_declarations(source_code): """ A decorator to attach forward declarations to a class. """ ... - def class_declarations(source_code): """ A decorator to attach forward declarations to a class. """ ... - def sequence_protocol(**kwargs): """ A decorator to attach sequence protocol metadata to a class. diff --git a/src/Base/Persistence.pyi b/src/Base/Persistence.pyi index 8d9c14ce08..1c744f1d88 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -6,7 +6,6 @@ from Metadata import constmethod from BaseClass import BaseClass from typing import Final - class Persistence(BaseClass): """ Base.Persistence class. diff --git a/src/Base/Placement.pyi b/src/Base/Placement.pyi index 510183f3fb..83e5900b01 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -9,7 +9,6 @@ from Rotation import Rotation as RotationPy from Vector import Vector from typing import Sequence, overload - @export( Constructor=True, Delete=True, @@ -114,9 +113,7 @@ class Placement(PyObjectBase): @overload def rotate( self, center: Sequence[float], axis: Sequence[float], angle: float, *, comp: bool = False - ) -> None: - ... - + ) -> None: ... @overload def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None: """ @@ -135,9 +132,7 @@ class Placement(PyObjectBase): behave like TopoShape.rotate() (i.e. the resulting placements are interchangeable). """ - def rotate(self, *args, **kwargs) -> None: - ... - + def rotate(self, *args, **kwargs) -> None: ... @constmethod def multiply(self, placement: "Placement", /) -> "Placement": """ diff --git a/src/Base/Precision.pyi b/src/Base/Precision.pyi index 51f186d450..eb79d6f20a 100644 --- a/src/Base/Precision.pyi +++ b/src/Base/Precision.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from PyObjectBase import PyObjectBase - class Precision(PyObjectBase): """ This is the Precision class diff --git a/src/Base/PyObjectBase.pyi b/src/Base/PyObjectBase.pyi index 0cd5591db3..d1f8efd47c 100644 --- a/src/Base/PyObjectBase.pyi +++ b/src/Base/PyObjectBase.pyi @@ -2,7 +2,6 @@ from __future__ import annotations - class PyObjectBase: """ The most base class for Python bindings. diff --git a/src/Base/Quantity.pyi b/src/Base/Quantity.pyi index b0bbabe8fa..b79ae5fc36 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -7,7 +7,6 @@ from PyObjectBase import PyObjectBase from typing import overload, Final, Tuple, Union from Unit import Unit as UnitPy - @export( NumberProtocol=True, RichCompare=True, @@ -56,13 +55,9 @@ class Quantity(PyObjectBase): # fmt: on @overload - def toStr(self, /) -> str: - ... - + def toStr(self, /) -> str: ... @overload - def toStr(self, decimals: int, /) -> str: - ... - + def toStr(self, decimals: int, /) -> str: ... @constmethod def toStr(self, decimals: int = ..., /) -> str: """ @@ -79,21 +74,13 @@ class Quantity(PyObjectBase): ... @overload - def getValueAs(self, unit: str, /) -> float: - ... - + def getValueAs(self, unit: str, /) -> float: ... @overload - def getValueAs(self, translation: float, unit_signature: int, /) -> float: - ... - + def getValueAs(self, translation: float, unit_signature: int, /) -> float: ... @overload - def getValueAs(self, unit: UnitPy, /) -> float: - ... - + def getValueAs(self, unit: UnitPy, /) -> float: ... @overload - def getValueAs(self, quantity: "Quantity", /) -> float: - ... - + def getValueAs(self, quantity: "Quantity", /) -> float: ... @constmethod def getValueAs(self, *args) -> float: """ @@ -109,13 +96,9 @@ class Quantity(PyObjectBase): ... @overload - def __round__(self, /) -> int: - ... - + def __round__(self, /) -> int: ... @overload - def __round__(self, ndigits: int, /) -> float: - ... - + def __round__(self, ndigits: int, /) -> float: ... @constmethod def __round__(self, ndigits: int = ..., /) -> Union[int, float]: """ diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index f8ef1e5d75..d5a9f5bcb8 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -8,7 +8,6 @@ from Vector import Vector from Matrix import Matrix from typing import overload, Tuple, List, Final - @export( Constructor=True, Delete=True, diff --git a/src/Base/Type.pyi b/src/Base/Type.pyi index 512e777262..fb3a0491f5 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -6,16 +6,17 @@ from Metadata import export, forward_declarations, constmethod from PyObjectBase import PyObjectBase from typing import List, Final - @export( Twin="BaseType", TwinPointer="BaseType", Delete=True, ) -@forward_declarations(""" +@forward_declarations( + """ namespace Base { using BaseType = Type; -}""") +}""" +) class Type(PyObjectBase): """ BaseTypePy class. diff --git a/src/Base/Unit.pyi b/src/Base/Unit.pyi index 817d426fda..69c53f3e3c 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -7,7 +7,6 @@ from PyObjectBase import PyObjectBase from Quantity import Quantity from typing import Final, Tuple, overload - @export( NumberProtocol=True, RichCompare=True, @@ -31,9 +30,7 @@ class Unit(PyObjectBase): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload def __init__( self, @@ -45,20 +42,13 @@ class Unit(PyObjectBase): i6: float, i7: float, i8: float, - ) -> None: - ... - + ) -> None: ... @overload - def __init__(self, quantity: Quantity) -> None: - ... - + def __init__(self, quantity: Quantity) -> None: ... @overload - def __init__(self, unit: Unit) -> None: - ... - + def __init__(self, unit: Unit) -> None: ... @overload - def __init__(self, string: str) -> None: - ... + def __init__(self, string: str) -> None: ... Type: Final[str] = ... """holds the unit type as a string, e.g. 'Area'.""" diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index ee19e80fde..830f16c028 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -6,7 +6,6 @@ from Metadata import export, constmethod, sequence_protocol, class_declarations from PyObjectBase import PyObjectBase from typing import overload, Sequence - @export( TwinPointer="Vector3d", Include="Base/Vector3D.h", diff --git a/src/Gui/AxisOrigin.pyi b/src/Gui/AxisOrigin.pyi index 50e9e71043..4ee26a883e 100644 --- a/src/Gui/AxisOrigin.pyi +++ b/src/Gui/AxisOrigin.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, Tuple, Dict - @export( Constructor=True, Delete=True, @@ -42,7 +41,6 @@ class AxisOrigin(BaseClass): Output Coin path leading to the returned element detail. """ ... - AxisLength: float = 0.0 """Get/set the axis length.""" diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index 7b1da9657e..96f7eeec99 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -6,7 +6,6 @@ from Base.Metadata import constmethod from Base.PyObjectBase import PyObjectBase from typing import Any, Dict, List, Optional - class Command(PyObjectBase): """ FreeCAD Python wrapper of Command functions diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index 60088e6831..31493815dd 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -7,7 +7,6 @@ from Base.Persistence import Persistence from Base.Matrix import Matrix from typing import Any, Final, List, Optional - class Document(Persistence): """ This is a Document class @@ -188,7 +187,6 @@ class Document(Persistence): obj : Gui.ViewProvider """ ... - ActiveObject: Any = ... """The active object of the document.""" diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index cac3c867b7..6a349cdddd 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List, Dict, Tuple, overload - @export( Include="Gui/ViewProviderLink.h", Constructor=True, @@ -27,21 +26,13 @@ class LinkView(BaseClass): ... @overload - def setMaterial(self, material: None, /) -> None: - ... - + def setMaterial(self, material: None, /) -> None: ... @overload - def setMaterial(self, material: Any, /) -> None: - ... - + def setMaterial(self, material: Any, /) -> None: ... @overload - def setMaterial(self, material: List[Any], /) -> None: - ... - + def setMaterial(self, material: List[Any], /) -> None: ... @overload - def setMaterial(self, material: Dict[int, Any], /) -> None: - ... - + def setMaterial(self, material: Dict[int, Any], /) -> None: ... def setMaterial(self, material: Any, /) -> None: """ setMaterial(Material): set the override material of the entire linked object @@ -59,13 +50,9 @@ class LinkView(BaseClass): ... @overload - def setType(self, type: int, /) -> None: - ... - + def setType(self, type: int, /) -> None: ... @overload - def setType(self, type: int, sublink: bool, /) -> None: - ... - + def setType(self, type: int, sublink: bool, /) -> None: ... def setType(self, type: int, sublink: bool = True, /) -> None: """ set the link type. @@ -82,17 +69,11 @@ class LinkView(BaseClass): ... @overload - def setTransform(self, matrix: Any, /) -> None: - ... - + def setTransform(self, matrix: Any, /) -> None: ... @overload - def setTransform(self, matrix: List[Any], /) -> None: - ... - + def setTransform(self, matrix: List[Any], /) -> None: ... @overload - def setTransform(self, matrix: Dict[int, Any], /) -> None: - ... - + def setTransform(self, matrix: Dict[int, Any], /) -> None: ... def setTransform(self, matrix: Any, /) -> None: """ set transformation of the linked object @@ -121,17 +102,11 @@ class LinkView(BaseClass): ... @overload - def setLink(self, obj: Any, /) -> None: - ... - + def setLink(self, obj: Any, /) -> None: ... @overload - def setLink(self, obj: Any, subname: str, /) -> None: - ... - + def setLink(self, obj: Any, subname: str, /) -> None: ... @overload - def setLink(self, obj: Any, subname: List[str], /) -> None: - ... - + def setLink(self, obj: Any, subname: List[str], /) -> None: ... def setLink(self, obj: Any, subname: Any = None, /) -> None: """ Set the link @@ -175,7 +150,6 @@ class LinkView(BaseClass): Get children view objects """ ... - LinkedView: Final[Any] = ... """The linked view object""" diff --git a/src/Gui/Navigation/NavigationStyle.pyi b/src/Gui/Navigation/NavigationStyle.pyi index d6adf27d24..ddb0597c61 100644 --- a/src/Gui/Navigation/NavigationStyle.pyi +++ b/src/Gui/Navigation/NavigationStyle.pyi @@ -3,8 +3,9 @@ from Base.Metadata import export from Base.BaseClass import BaseClass - -@export(Include="Gui/Navigation/NavigationStyle.h", ) +@export( + Include="Gui/Navigation/NavigationStyle.h", +) class NavigationStyle(BaseClass): """ This is the base class for navigation styles diff --git a/src/Gui/PythonWorkbench.pyi b/src/Gui/PythonWorkbench.pyi index a0c274b3b3..ef4de9c421 100644 --- a/src/Gui/PythonWorkbench.pyi +++ b/src/Gui/PythonWorkbench.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Workbench import Workbench from warnings import deprecated - @export( Twin="PythonBaseWorkbench", TwinPointer="PythonBaseWorkbench", diff --git a/src/Gui/Selection/SelectionObject.pyi b/src/Gui/Selection/SelectionObject.pyi index 1dc6574e0e..684bdb713a 100644 --- a/src/Gui/Selection/SelectionObject.pyi +++ b/src/Gui/Selection/SelectionObject.pyi @@ -4,7 +4,6 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Any, Final, Tuple - @export( Include="Gui/Selection/SelectionObject.h", Delete=True, @@ -20,7 +19,7 @@ class SelectionObject(BaseClass): def remove(self) -> None: """ Remove this selection item from the selection. - + -- This object becomes invalid. """ @@ -31,7 +30,6 @@ class SelectionObject(BaseClass): Test for a certain father class. """ ... - ObjectName: Final[str] = "" """Name of the selected object""" diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 3a210e4b77..af9c47cc1f 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -8,7 +8,6 @@ from App.ExtensionContainer import ExtensionContainer from typing import Any, Final, List, Optional import enum - class ViewProvider(ExtensionContainer): """ This is the ViewProvider base class @@ -290,7 +289,6 @@ class ViewProvider(ExtensionContainer): Default to active view. Optional. """ ... - Annotation: Any = ... """A pivy Separator to add a custom scenegraph to this ViewProvider.""" diff --git a/src/Gui/ViewProviderDocumentObject.pyi b/src/Gui/ViewProviderDocumentObject.pyi index 5b1402debf..98491e67f7 100644 --- a/src/Gui/ViewProviderDocumentObject.pyi +++ b/src/Gui/ViewProviderDocumentObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from ViewProvider import ViewProvider from typing import Any, Final - class ViewProviderDocumentObject(ViewProvider): """ This is the ViewProvider base class @@ -19,7 +18,6 @@ class ViewProviderDocumentObject(ViewProvider): Update the view representation of the object """ ... - Object: Any = ... """Set/Get the associated data object""" diff --git a/src/Gui/ViewProviderExtension.pyi b/src/Gui/ViewProviderExtension.pyi index 513162549f..9bd18e068d 100644 --- a/src/Gui/ViewProviderExtension.pyi +++ b/src/Gui/ViewProviderExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import constmethod from App.Extension import Extension - class ViewProviderExtension(Extension): """ Base class for all view provider extensions diff --git a/src/Gui/ViewProviderGeometryObject.pyi b/src/Gui/ViewProviderGeometryObject.pyi index 6cf35a63ad..04c1490c64 100644 --- a/src/Gui/ViewProviderGeometryObject.pyi +++ b/src/Gui/ViewProviderGeometryObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import no_args from ViewProviderDocumentObject import ViewProviderDocumentObject - class ViewProviderGeometryObject(ViewProviderDocumentObject): """ This is the ViewProvider geometry class diff --git a/src/Gui/ViewProviderLink.pyi b/src/Gui/ViewProviderLink.pyi index ac182f50d8..ac173e999c 100644 --- a/src/Gui/ViewProviderLink.pyi +++ b/src/Gui/ViewProviderLink.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from ViewProviderDocumentObject import ViewProviderDocumentObject from typing import Any, Final - class ViewProviderLink(ViewProviderDocumentObject): """ This is the ViewProviderLink class diff --git a/src/Gui/Workbench.pyi b/src/Gui/Workbench.pyi index bce115662c..b51272ffb7 100644 --- a/src/Gui/Workbench.pyi +++ b/src/Gui/Workbench.pyi @@ -6,8 +6,9 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Any, List, Dict - -@export(Include="Gui/Workbench.h", ) +@export( + Include="Gui/Workbench.h", +) class Workbench(BaseClass): """ This is the base class for workbenches diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index e5e9266421..f92bee3d61 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.Part import Part - @export( Include="Mod/Assembly/App/AssemblyLink.h", Namespace="Assembly", diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index fbcae0fcd8..22c4e888a7 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -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.""" diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index b54941a3d6..d6d4797fb7 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -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): """ diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index 12a1ca69b9..1b4387a06e 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -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", diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index 5a0389586b..dd2554c3bf 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -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): """ diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index 15f288147d..d6f5bba688 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -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): """ diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index 310ca1da1a..eb00242ace 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -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): """ diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 97f08b7aa5..6d8d6ddb10 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -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.""" diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index 1f5163ee1c..f8684bbf74 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -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.""" diff --git a/src/Mod/CAM/App/Command.pyi b/src/Mod/CAM/App/Command.pyi index 62766ce427..f4779d4c7f 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -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""" diff --git a/src/Mod/CAM/App/FeatureArea.pyi b/src/Mod/CAM/App/FeatureArea.pyi index 3540c8a60c..95110418d9 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -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.""" diff --git a/src/Mod/CAM/App/FeaturePathCompound.pyi b/src/Mod/CAM/App/FeaturePathCompound.pyi index 738a3e3d0d..4ae39aeaa6 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/CAM/App/FeaturePathCompound.h", TwinPointer="FeatureCompound", diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index a092d84f3b..b088ad1f7c 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -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""" diff --git a/src/Mod/CAM/App/Voronoi.pyi b/src/Mod/CAM/App/Voronoi.pyi index c4b34642f7..5ae6f52a73 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -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""" diff --git a/src/Mod/CAM/App/VoronoiCell.pyi b/src/Mod/CAM/App/VoronoiCell.pyi index fb153ad0e3..62729e97b7 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -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.""" diff --git a/src/Mod/CAM/App/VoronoiEdge.pyi b/src/Mod/CAM/App/VoronoiEdge.pyi index 57f48d9813..de6ee617bb 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -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.""" diff --git a/src/Mod/CAM/App/VoronoiVertex.pyi b/src/Mod/CAM/App/VoronoiVertex.pyi index e08c24706a..78e6ec1eb8 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -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.""" diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 3f4c25dfc0..d086884343 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -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.""" diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index 236e4fc6cf..b5fc184fe1 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -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", diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index d375ada75d..0873c5680f 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -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())""" diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index 599319c49f..231b705294 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Fem.FemPostFilter import FemPostFilter - @export( Include="Mod/Fem/App/FemPostBranchFilter.h", Namespace="Fem", diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 0c5065dd37..7f3b223914 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -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. diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index cdd5f15d41..aadfbc28b4 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -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""" diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index dec1c29aa2..5ad02ede9b 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -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.""" diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index d8c3f8707d..4cc9424653 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject - @export( Twin="ViewProviderFemPostObject", TwinPointer="ViewProviderFemPostObject", diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index b0b59b867a..52c94c0207 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject - @export( Include="Mod/Fem/Gui/ViewProviderFemPostPipeline.h", Namespace="FemGui", diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 283ae67778..0749dfb8d6 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -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", diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index af43cd33d0..67c34e25e9 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/Measure/App/MeasureBase.h", Namespace="Measure", diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index 341da5c1ee..501009b2a2 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -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", diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index e1d594db17..e7c52e916e 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -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", diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 68d3271e76..f70778ff19 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -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""" diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 6738fee35b..6778b913e7 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -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""" diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index 72a7129ce8..ae2018ea54 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -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 diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 6c30eff115..4f02925b49 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.GeoFeature import GeoFeature - @export( Twin="Feature", TwinPointer="Feature", diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index a1faca5804..3a00f9e7bf 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -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""" diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index 18442503e1..3b2e4a82e4 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -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", diff --git a/src/Mod/Part/App/Arc.pyi b/src/Mod/Part/App/Arc.pyi index 2c72b051c1..3bdcccd350 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -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: ... diff --git a/src/Mod/Part/App/ArcOfCircle.pyi b/src/Mod/Part/App/ArcOfCircle.pyi index 360d0f54d2..407d240d09 100644 --- a/src/Mod/Part/App/ArcOfCircle.pyi +++ b/src/Mod/Part/App/ArcOfCircle.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final - @export( PythonName="Part.ArcOfCircle", Twin="GeomArcOfCircle", diff --git a/src/Mod/Part/App/ArcOfConic.pyi b/src/Mod/Part/App/ArcOfConic.pyi index 0d1ecf9841..a602f01ae1 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -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.""" diff --git a/src/Mod/Part/App/ArcOfEllipse.pyi b/src/Mod/Part/App/ArcOfEllipse.pyi index 5eb58edbbc..58c63f8cd7 100644 --- a/src/Mod/Part/App/ArcOfEllipse.pyi +++ b/src/Mod/Part/App/ArcOfEllipse.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final - @export( PythonName="Part.ArcOfEllipse", Twin="GeomArcOfEllipse", diff --git a/src/Mod/Part/App/ArcOfHyperbola.pyi b/src/Mod/Part/App/ArcOfHyperbola.pyi index b70cabd42a..a835a04b38 100644 --- a/src/Mod/Part/App/ArcOfHyperbola.pyi +++ b/src/Mod/Part/App/ArcOfHyperbola.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.ArcOfConic import ArcOfConic from typing import Final - @export( Father="ArcOfConicPy", Name="ArcOfHyperbolaPy", diff --git a/src/Mod/Part/App/ArcOfParabola.pyi b/src/Mod/Part/App/ArcOfParabola.pyi index 839a4995c5..319491cdda 100644 --- a/src/Mod/Part/App/ArcOfParabola.pyi +++ b/src/Mod/Part/App/ArcOfParabola.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final - @export( Father="ArcOfConicPy", Name="ArcOfParabolaPy", diff --git a/src/Mod/Part/App/AttachEngine.pyi b/src/Mod/Part/App/AttachEngine.pyi index 6c58704527..dc767d6657 100644 --- a/src/Mod/Part/App/AttachEngine.pyi +++ b/src/Mod/Part/App/AttachEngine.pyi @@ -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", diff --git a/src/Mod/Part/App/AttachExtension.pyi b/src/Mod/Part/App/AttachExtension.pyi index 0dd9984655..5b30436f3b 100644 --- a/src/Mod/Part/App/AttachExtension.pyi +++ b/src/Mod/Part/App/AttachExtension.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension from typing import Any, Final - @export( Twin="AttachExtension", TwinPointer="AttachExtension", diff --git a/src/Mod/Part/App/BRepFeat/MakePrism.pyi b/src/Mod/Part/App/BRepFeat/MakePrism.pyi index 5138c167b9..0b7671810e 100644 --- a/src/Mod/Part/App/BRepFeat/MakePrism.pyi +++ b/src/Mod/Part/App/BRepFeat/MakePrism.pyi @@ -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", diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi index a41e6ca4be..6bfdbb550b 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -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]) diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi index 503711a302..ceac325ab8 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -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) diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index d7caab5356..788a9c6d9d 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -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. diff --git a/src/Mod/Part/App/BSplineSurface.pyi b/src/Mod/Part/App/BSplineSurface.pyi index df216fb7c0..b363b12e64 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -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", diff --git a/src/Mod/Part/App/BezierCurve.pyi b/src/Mod/Part/App/BezierCurve.pyi index 804cf5c6fc..5b70a12558 100644 --- a/src/Mod/Part/App/BezierCurve.pyi +++ b/src/Mod/Part/App/BezierCurve.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from BoundedCurve import BoundedCurve from typing import Final, List - @export( Twin="GeomBezierCurve", TwinPointer="GeomBezierCurve", diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index 39019cf1fd..5c6be7676d 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -9,7 +9,6 @@ from Base.Metadata import ( from GeometrySurface import GeometrySurface from typing import Final, Tuple, Any - @export( Twin="GeomBezierSurface", TwinPointer="GeomBezierSurface", diff --git a/src/Mod/Part/App/BodyBase.pyi b/src/Mod/Part/App/BodyBase.pyi index 7d86d80d03..f7549cbcbc 100644 --- a/src/Mod/Part/App/BodyBase.pyi +++ b/src/Mod/Part/App/BodyBase.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from PartFeature import PartFeature - @export( Twin="BodyBase", TwinPointer="BodyBase", diff --git a/src/Mod/Part/App/BoundedCurve.pyi b/src/Mod/Part/App/BoundedCurve.pyi index c3c0965e5e..01a478817a 100644 --- a/src/Mod/Part/App/BoundedCurve.pyi +++ b/src/Mod/Part/App/BoundedCurve.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Any, Final - @export( Twin="GeomBoundedCurve", TwinPointer="GeomBoundedCurve", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index b0bbe7fc8d..b3b2530d06 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -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", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi index 3572f1e5c2..0eab002295 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -7,7 +7,6 @@ from typing import Tuple from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ChFi2d.ChamferAPI", Twin="ChFi2d_ChamferAPI", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi index 91ba03133c..6b0204fbef 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -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) diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi index 482c7e11db..1a7647dba1 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi @@ -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", diff --git a/src/Mod/Part/App/Circle.pyi b/src/Mod/Part/App/Circle.pyi index 7c0768f562..07bbb45c5b 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Cone.pyi b/src/Mod/Part/App/Cone.pyi index 1b099f2bac..d9e89c0bee 100644 --- a/src/Mod/Part/App/Cone.pyi +++ b/src/Mod/Part/App/Cone.pyi @@ -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", diff --git a/src/Mod/Part/App/Conic.pyi b/src/Mod/Part/App/Conic.pyi index 3cbcfe274c..40d78298ae 100644 --- a/src/Mod/Part/App/Conic.pyi +++ b/src/Mod/Part/App/Conic.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Final - @export( PythonName="Part.Conic", Twin="GeomConic", diff --git a/src/Mod/Part/App/Cylinder.pyi b/src/Mod/Part/App/Cylinder.pyi index 75f6a73086..211d6a05e4 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Ellipse.pyi b/src/Mod/Part/App/Ellipse.pyi index 6a14ae39ee..72b44872f2 100644 --- a/src/Mod/Part/App/Ellipse.pyi +++ b/src/Mod/Part/App/Ellipse.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Conic import Conic from typing import Final - @export( Twin="GeomEllipse", TwinPointer="GeomEllipse", diff --git a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index 495698a5d3..aa173bfaed 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -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 diff --git a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi index eaa16a4fce..1633a9a62f 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -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", diff --git a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi index 31fe585ca7..3199ebaf18 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index 50559406e3..658503146f 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index ddaa706489..5cec0559f6 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi index 59f7cdfbce..bfb6d7a688 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi @@ -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. diff --git a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi index 732caeede3..fa5117aed5 100644 --- a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi @@ -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", diff --git a/src/Mod/Part/App/Geom2d/Circle2d.pyi b/src/Mod/Part/App/Geom2d/Circle2d.pyi index 88625eaa07..2ddba75053 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -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: """ diff --git a/src/Mod/Part/App/Geom2d/Conic2d.pyi b/src/Mod/Part/App/Geom2d/Conic2d.pyi index 10cb602dfd..5a13a9ad68 100644 --- a/src/Mod/Part/App/Geom2d/Conic2d.pyi +++ b/src/Mod/Part/App/Geom2d/Conic2d.pyi @@ -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", diff --git a/src/Mod/Part/App/Geom2d/Curve2d.pyi b/src/Mod/Part/App/Geom2d/Curve2d.pyi index f389d2a4ae..d4b074420b 100644 --- a/src/Mod/Part/App/Geom2d/Curve2d.pyi +++ b/src/Mod/Part/App/Geom2d/Curve2d.pyi @@ -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) diff --git a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi index eda35b092a..789a73884f 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index 2a423ed193..971e0453bc 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase - @export( Twin="Geometry2d", TwinPointer="Geometry2d", diff --git a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi index 549538bca1..e445bf3cdd 100644 --- a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Geom2d/Line2d.pyi b/src/Mod/Part/App/Geom2d/Line2d.pyi index f7515eb117..43293ca306 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -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", diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index a3b5c6205c..92297e38fc 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -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. diff --git a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi index b1ec72b215..18efbc5da8 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Metadata import export from Part.Geom2d import Curve2d - @export( Name="OffsetCurve2dPy", Namespace="Part", diff --git a/src/Mod/Part/App/Geom2d/Parabola2d.pyi b/src/Mod/Part/App/Geom2d/Parabola2d.pyi index 39e56ad12f..cba41e83c7 100644 --- a/src/Mod/Part/App/Geom2d/Parabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Parabola2d.pyi @@ -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", diff --git a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi index 1c9a1379c9..166ccebb44 100644 --- a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi +++ b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi @@ -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", diff --git a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi index da64f6ce92..dd57bbb6b7 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -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", diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index a30d69b969..c6aba5250a 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -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", diff --git a/src/Mod/Part/App/Geometry.pyi b/src/Mod/Part/App/Geometry.pyi index 72265b63ef..cc077e1cf0 100644 --- a/src/Mod/Part/App/Geometry.pyi +++ b/src/Mod/Part/App/Geometry.pyi @@ -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, diff --git a/src/Mod/Part/App/GeometryBoolExtension.pyi b/src/Mod/Part/App/GeometryBoolExtension.pyi index b09d91dd96..12a40f8d08 100644 --- a/src/Mod/Part/App/GeometryBoolExtension.pyi +++ b/src/Mod/Part/App/GeometryBoolExtension.pyi @@ -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", diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index 553a872164..9d1c56ed97 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -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). diff --git a/src/Mod/Part/App/GeometryDoubleExtension.pyi b/src/Mod/Part/App/GeometryDoubleExtension.pyi index 4031272538..537c16c1c6 100644 --- a/src/Mod/Part/App/GeometryDoubleExtension.pyi +++ b/src/Mod/Part/App/GeometryDoubleExtension.pyi @@ -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", diff --git a/src/Mod/Part/App/GeometryExtension.pyi b/src/Mod/Part/App/GeometryExtension.pyi index 85d8d3a404..6ce1048da2 100644 --- a/src/Mod/Part/App/GeometryExtension.pyi +++ b/src/Mod/Part/App/GeometryExtension.pyi @@ -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, diff --git a/src/Mod/Part/App/GeometryIntExtension.pyi b/src/Mod/Part/App/GeometryIntExtension.pyi index 8c3260de15..2b379986ac 100644 --- a/src/Mod/Part/App/GeometryIntExtension.pyi +++ b/src/Mod/Part/App/GeometryIntExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.GeometryExtension import GeometryExtension - @export( Father="GeometryExtensionPy", Name="GeometryIntExtensionPy", diff --git a/src/Mod/Part/App/GeometryStringExtension.pyi b/src/Mod/Part/App/GeometryStringExtension.pyi index 85188f483f..22c0f87d15 100644 --- a/src/Mod/Part/App/GeometryStringExtension.pyi +++ b/src/Mod/Part/App/GeometryStringExtension.pyi @@ -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", diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index 29c0153a49..e86e7e4143 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -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, diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index c804cd5d1d..df38a7b7a0 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -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", diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index d2dc847187..724075bcf7 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -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 = ... diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index 17fd5598c1..74afc101be 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -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", diff --git a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi index a53e687a58..0b9a639ed7 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -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", diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index 495a1ab6a6..6e2775426c 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -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: ... diff --git a/src/Mod/Part/App/Line.pyi b/src/Mod/Part/App/Line.pyi index a8703db4da..b80a8c3773 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -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: ... diff --git a/src/Mod/Part/App/LineSegment.pyi b/src/Mod/Part/App/LineSegment.pyi index 3d8a54c1f8..43c493fbb2 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -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 diff --git a/src/Mod/Part/App/OffsetCurve.pyi b/src/Mod/Part/App/OffsetCurve.pyi index 34811cf0d8..56f4b29b45 100644 --- a/src/Mod/Part/App/OffsetCurve.pyi +++ b/src/Mod/Part/App/OffsetCurve.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve - @export( PythonName="Part.OffsetCurve", Twin="GeomOffsetCurve", diff --git a/src/Mod/Part/App/OffsetSurface.pyi b/src/Mod/Part/App/OffsetSurface.pyi index aaf06005e0..d0978b134f 100644 --- a/src/Mod/Part/App/OffsetSurface.pyi +++ b/src/Mod/Part/App/OffsetSurface.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface - @export( Twin="GeomOffsetSurface", TwinPointer="GeomOffsetSurface", diff --git a/src/Mod/Part/App/Parabola.pyi b/src/Mod/Part/App/Parabola.pyi index 94bc93c8cf..cf3fa57d55 100644 --- a/src/Mod/Part/App/Parabola.pyi +++ b/src/Mod/Part/App/Parabola.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Conic import Conic from typing import Final - @export( Twin="GeomParabola", TwinPointer="GeomParabola", diff --git a/src/Mod/Part/App/Part2DObject.pyi b/src/Mod/Part/App/Part2DObject.pyi index 2a973f46d3..f23d04bc71 100644 --- a/src/Mod/Part/App/Part2DObject.pyi +++ b/src/Mod/Part/App/Part2DObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from PartFeature import PartFeature - @export( Twin="Part2DObject", TwinPointer="Part2DObject", diff --git a/src/Mod/Part/App/PartFeature.pyi b/src/Mod/Part/App/PartFeature.pyi index 70579119f6..a252dfebcf 100644 --- a/src/Mod/Part/App/PartFeature.pyi +++ b/src/Mod/Part/App/PartFeature.pyi @@ -7,7 +7,6 @@ from App.GeoFeature import GeoFeature from App.DocumentObject import DocumentObject from typing import List, Tuple, Union - @export( Twin="Feature", TwinPointer="Feature", diff --git a/src/Mod/Part/App/Plane.pyi b/src/Mod/Part/App/Plane.pyi index f21f10aadb..f684ccb8ed 100644 --- a/src/Mod/Part/App/Plane.pyi +++ b/src/Mod/Part/App/Plane.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface - @export( PythonName="Part.Plane", Twin="GeomPlane", diff --git a/src/Mod/Part/App/PlateSurface.pyi b/src/Mod/Part/App/PlateSurface.pyi index 946413f9fa..290b98924d 100644 --- a/src/Mod/Part/App/PlateSurface.pyi +++ b/src/Mod/Part/App/PlateSurface.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface - @export( Twin="GeomPlateSurface", TwinPointer="GeomPlateSurface", diff --git a/src/Mod/Part/App/Point.pyi b/src/Mod/Part/App/Point.pyi index 94da16a100..2ce0efb4b4 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Geometry import Geometry from typing import overload - @export( PythonName="Part.Point", Twin="GeomPoint", @@ -34,24 +33,17 @@ class Point(Geometry): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, other: "Point") -> None: - ... - + def __init__(self, other: "Point") -> None: ... @overload - def __init__(self, coordinates: Vector) -> None: - ... - + def __init__(self, coordinates: Vector) -> None: ... @constmethod def toShape(self) -> object: """ Create a vertex from this point. """ ... - X: float = ... """X component of this point.""" diff --git a/src/Mod/Part/App/RectangularTrimmedSurface.pyi b/src/Mod/Part/App/RectangularTrimmedSurface.pyi index cbd3417ced..a55943033f 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurface.pyi +++ b/src/Mod/Part/App/RectangularTrimmedSurface.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from GeometrySurface import GeometrySurface from typing import Any, Final, Tuple - @export( Twin="GeomTrimmedSurface", TwinPointer="GeomTrimmedSurface", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index 0c676c4942..203266260d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.Edge", Include="ShapeFix_Edge.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi index be8753a296..a4d891a586 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -8,7 +8,6 @@ from Part.App.TopoShapeEdge import TopoShapeEdge from Part.App.TopoShape import TopoShape from typing import overload - @export( PythonName="Part.ShapeFix.EdgeConnect", Include="ShapeFix_EdgeConnect.hxx", @@ -24,13 +23,9 @@ class ShapeFix_EdgeConnect(PyObjectBase): """ @overload - def add(self, edge1: TopoShapeEdge, edge2: TopoShapeEdge, /) -> None: - ... - + def add(self, edge1: TopoShapeEdge, edge2: TopoShapeEdge, /) -> None: ... @overload - def add(self, shape: TopoShape, /) -> None: - ... - + def add(self, shape: TopoShape, /) -> None: ... def add(self, *args, **kwargs) -> None: """ add(edge, edge) diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi index c19740fcfa..6d7c2725e4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -8,7 +8,6 @@ from Part.TopoShapeFace import TopoShapeFace from Part.TopoShapeShell import TopoShapeShell from typing import Union - @export( PythonName="Part.ShapeFix.Face", Include="ShapeFix_Face.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi index 0cee8752f5..8cc7a62ac9 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.FaceConnect", Include="ShapeFix_FaceConnect.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index 11ba58beb6..c18e79f370 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.App.TopoShape import TopoShape - @export( PythonName="Part.ShapeFix.FixSmallFace", Include="ShapeFix_FixSmallFace.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi index 91aed38680..8d64b5f02e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.FixSmallSolid", Include="ShapeFix_FixSmallSolid.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi index 9742f2bbe0..180d90ceeb 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase from Part.App.TopoShapeCompound import TopoShapeCompound from Part.App.TopoShape import TopoShape - @export( PythonName="Part.ShapeFix.FreeBounds", Include="ShapeFix_FreeBounds.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi index 4937fe62c5..8b087ca05e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.Root", Include="ShapeFix_Root.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi index 89a857a9a7..36a3a0d923 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.TopoShape import TopoShape - @export( PythonName="Part.ShapeFix.Shape", Include="ShapeFix_Shape.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index a36d4c5b7d..f76510afe5 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase from Part.App.TopoShape import TopoShape from typing import overload - @export( PythonName="Part.ShapeFix.ShapeTolerance", Include="ShapeFix_ShapeTolerance.hxx", @@ -23,13 +22,11 @@ class ShapeFix_ShapeTolerance(PyObjectBase): """ @overload - def limitTolerance(self, shape: TopoShape, tmin: float, /) -> None: - ... - + def limitTolerance(self, shape: TopoShape, tmin: float, /) -> None: ... @overload - def limitTolerance(self, shape: TopoShape, tmin: float, tmax: float, ShapeEnum: str = None, /) -> None: - ... - + def limitTolerance( + self, shape: TopoShape, tmin: float, tmax: float, ShapeEnum: str = None, / + ) -> None: ... def limitTolerance( self, shape: TopoShape, tmin: float, tmax: float = 0, ShapeEnum: str = None, / ) -> None: @@ -39,13 +36,11 @@ class ShapeFix_ShapeTolerance(PyObjectBase): ... @overload - def setTolerance(self, shape: TopoShape, precision: float, /) -> None: - ... - + def setTolerance(self, shape: TopoShape, precision: float, /) -> None: ... @overload - def setTolerance(self, shape: TopoShape, precision: float, ShapeEnum: str = None, /) -> None: - ... - + def setTolerance( + self, shape: TopoShape, precision: float, ShapeEnum: str = None, / + ) -> None: ... def setTolerance(self, shape: TopoShape, precision: float, ShapeEnum: str = None, /) -> None: """ setTolerance(shape, precision, [ShapeEnum=SHAPE]) diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi index 37e492ebb6..cb94af5bd3 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Shell", Twin="ShapeFix_Shell", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi index f27a985a76..e023e4ff60 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Solid", Twin="ShapeFix_Solid", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi index 7c1ecf0f73..f659da956c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.SplitCommonVertex", Include="ShapeFix_SplitCommonVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi index 497fd855d6..e2d8a9fd8c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.SplitTool", Include="ShapeFix_SplitTool.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 53f2cdffce..5c309aeb73 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Wire", Twin="ShapeFix_Wire", @@ -230,7 +229,6 @@ class ShapeFix_Wire(ShapeFix_Root): This method examines the geometry and applies corrective actions to eliminate or reduce the presence of tails. """ pass - ModifyTopologyMode: bool = ... """Mode for modifying topology of the wire""" diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index bcea75aca2..8f8211f685 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.WireVertex", Include="ShapeFix_WireVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi index 7234f6d6e0..7a63f8c06d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Wireframe", Twin="ShapeFix_Wireframe", @@ -52,5 +51,4 @@ class ShapeFix_Wireframe(ShapeFix_Root): """ ... - def shape(self) -> None: - ... + def shape(self) -> None: ... diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index 48d780975f..885323d12a 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeUpgrade.UnifySameDomain", Include="ShapeUpgrade_UnifySameDomain.hxx", diff --git a/src/Mod/Part/App/Sphere.pyi b/src/Mod/Part/App/Sphere.pyi index f54858d951..c98bcf6ab6 100644 --- a/src/Mod/Part/App/Sphere.pyi +++ b/src/Mod/Part/App/Sphere.pyi @@ -8,7 +8,6 @@ from Base.Axis import Axis as AxisPy from GeometrySurface import GeometrySurface from typing import Final - @export( Twin="GeomSphere", TwinPointer="GeomSphere", diff --git a/src/Mod/Part/App/SurfaceOfExtrusion.pyi b/src/Mod/Part/App/SurfaceOfExtrusion.pyi index 93784c52e3..798b97ab10 100644 --- a/src/Mod/Part/App/SurfaceOfExtrusion.pyi +++ b/src/Mod/Part/App/SurfaceOfExtrusion.pyi @@ -7,7 +7,6 @@ from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve from Base.Vector import Vector - @export( Twin="GeomSurfaceOfExtrusion", TwinPointer="GeomSurfaceOfExtrusion", diff --git a/src/Mod/Part/App/SurfaceOfRevolution.pyi b/src/Mod/Part/App/SurfaceOfRevolution.pyi index e58f12938f..2b77df30bc 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -9,7 +9,6 @@ from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve from typing import overload - @export( Twin="GeomSurfaceOfRevolution", TwinPointer="GeomSurfaceOfRevolution", @@ -36,5 +35,6 @@ class SurfaceOfRevolution(GeometrySurface): """Sets or gets the basic curve.""" @overload - def __init__(self, location: Placement, direction: Vector, basis_curve: GeometryCurve) -> None: - ... + def __init__( + self, location: Placement, direction: Vector, basis_curve: GeometryCurve + ) -> None: ... diff --git a/src/Mod/Part/App/TopoShape.pyi b/src/Mod/Part/App/TopoShape.pyi index 9fcfb60199..444e8a79fe 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -9,7 +9,6 @@ from Base.BoundBox import BoundBox from App.ComplexGeoData import ComplexGeoData from typing import Final, List, Tuple, Union, overload - @export( Include="Mod/Part/App/TopoShape.h", FatherInclude="App/ComplexGeoDataPy.h", @@ -88,7 +87,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def writeInventor(self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object) -> str: + def writeInventor( + self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object + ) -> str: """ Write the mesh in OpenInventor format to a string. writeInventor() -> string @@ -295,11 +296,7 @@ class TopoShape(ComplexGeoData): @constmethod def section( - self, - tool: Tuple[TopoShape, ...], - tolerance: float = 0.0, - approximation: bool = False, - / + self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, approximation: bool = False, / ) -> TopoShape: """ Section of this with a given (list of) topo shape. @@ -352,10 +349,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def generalFuse(self, - shapes: Tuple[TopoShape, ...], - fuzzy_value: float = 0.0, - /) -> Tuple[TopoShape, List[List[TopoShape]]]: + def generalFuse( + self, shapes: Tuple[TopoShape, ...], fuzzy_value: float = 0.0, / + ) -> Tuple[TopoShape, List[List[TopoShape]]]: """ Run general fuse algorithm (GFA) between this and given shapes. generalFuse(list_of_other_shapes, [fuzzy_value = 0.0]) -> (result, map) @@ -456,7 +452,9 @@ class TopoShape(ComplexGeoData): """ ... - def transformShape(self, matrix: Matrix, copy: bool = False, checkScale: bool = False, /) -> None: + def transformShape( + self, matrix: Matrix, copy: bool = False, checkScale: bool = False, / + ) -> None: """ Apply transformation on a shape without changing the underlying geometry. transformShape(Matrix, [boolean copy=False, checkScale=False]) -> None @@ -525,14 +523,10 @@ class TopoShape(ComplexGeoData): @overload @constmethod - def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: - ... - + def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: ... @overload @constmethod - def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: - ... - + def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeFillet(self, *args) -> TopoShape: """ @@ -545,14 +539,10 @@ class TopoShape(ComplexGeoData): @overload @constmethod - def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: - ... - + def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: ... @overload @constmethod - def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: - ... - + def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeChamfer(self, *args) -> TopoShape: """ @@ -796,7 +786,9 @@ class TopoShape(ComplexGeoData): """ ... - def fix(self, working_precision: float, minimum_precision: float, maximum_precision: float, /) -> bool: + def fix( + self, working_precision: float, minimum_precision: float, maximum_precision: float, / + ) -> bool: """ Tries to fix a broken shape. fix(working precision, minimum precision, maximum precision) -> bool @@ -972,7 +964,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def proximity(self, shape: TopoShape, tolerance: float = None, /) -> Tuple[List[int], List[int]]: + def proximity( + self, shape: TopoShape, tolerance: float = None, / + ) -> Tuple[List[int], List[int]]: """ Returns two lists of Face indexes for the Faces involved in the intersection. proximity(shape,[tolerance]) -> (selfFaces, shapeFaces) @@ -980,10 +974,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def distToShape(self, - shape: TopoShape, - tol: float = 1e-7, - /) -> Tuple[float, List[Tuple[Vector, Vector]], List[Tuple]]: + def distToShape( + self, shape: TopoShape, tol: float = 1e-7, / + ) -> Tuple[float, List[Tuple[Vector, Vector]], List[Tuple]]: """ Find the minimum distance to another shape. distToShape(shape, tol=1e-7) -> (dist, vectors, infos) @@ -1028,7 +1021,9 @@ class TopoShape(ComplexGeoData): """ ... - def mapSubElement(self, shape: Union[TopoShape, Tuple[TopoShape, ...]], op: str = "", /) -> None: + def mapSubElement( + self, shape: Union[TopoShape, Tuple[TopoShape, ...]], op: str = "", / + ) -> None: """ mapSubElement(shape|[shape...], op='') - maps the sub element of other shape @@ -1101,7 +1096,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def inTolerance(self, valmin: float, valmax: float, ShapeType: str = "Shape", /) -> List[TopoShape]: + def inTolerance( + self, valmin: float, valmax: float, ShapeType: str = "Shape", / + ) -> List[TopoShape]: """ Determines which shapes have a tolerance within a given interval inTolerance(valmin, valmax, [ShapeType=Shape]) -> ShapeList diff --git a/src/Mod/Part/App/TopoShapeCompSolid.pyi b/src/Mod/Part/App/TopoShapeCompSolid.pyi index c0861bd8c9..ed8c02bf9e 100644 --- a/src/Mod/Part/App/TopoShapeCompSolid.pyi +++ b/src/Mod/Part/App/TopoShapeCompSolid.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from TopoShape import TopoShape - @export( Father="TopoShapePy", Name="TopoShapeCompSolidPy", diff --git a/src/Mod/Part/App/TopoShapeCompound.pyi b/src/Mod/Part/App/TopoShapeCompound.pyi index 3047584775..0e21eaa91d 100644 --- a/src/Mod/Part/App/TopoShapeCompound.pyi +++ b/src/Mod/Part/App/TopoShapeCompound.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from TopoShape import TopoShape - @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -29,7 +28,9 @@ class TopoShapeCompound(TopoShape): ... @constmethod - def connectEdgesToWires(self, Shared: bool = True, Tolerance: float = 1e-7, /) -> "TopoShapeCompound": + def connectEdgesToWires( + self, Shared: bool = True, Tolerance: float = 1e-7, / + ) -> "TopoShapeCompound": """ Build a compound of wires out of the edges of this compound. connectEdgesToWires([Shared = True, Tolerance = 1e-7]) -> Compound diff --git a/src/Mod/Part/App/TopoShapeEdge.pyi b/src/Mod/Part/App/TopoShapeEdge.pyi index bf27bd80d5..a918f70a88 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -9,7 +9,6 @@ from Vertex import Vertex from TopoShape import TopoShape from typing import Final, Tuple, Dict, List, overload - @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -456,29 +455,27 @@ class TopoShapeEdge(TopoShape): @constmethod @overload - def discretize(self, Number: int, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize(self, Number: int, First: float = ..., Last: float = ...) -> List[Vector]: ... @constmethod @overload - def discretize(self, QuasiNumber: int, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, QuasiNumber: int, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload - def discretize(self, Distance: float, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, Distance: float, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload - def discretize(self, Deflection: float, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, Deflection: float, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload - def discretize(self, QuasiDeflection: float, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, QuasiDeflection: float, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload def discretize( @@ -488,9 +485,7 @@ class TopoShapeEdge(TopoShape): Minimum: int = ..., First: float = ..., Last: float = ..., - ) -> List[Vector]: - ... - + ) -> List[Vector]: ... @constmethod def discretize(self, **kwargs) -> List[Vector]: """ diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 1a819d740e..70842ba3b5 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import Final, Tuple, Dict, Optional, List - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeShell.pyi b/src/Mod/Part/App/TopoShapeShell.pyi index ce30f1b1de..8401f96a8e 100644 --- a/src/Mod/Part/App/TopoShapeShell.pyi +++ b/src/Mod/Part/App/TopoShapeShell.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Final, Dict - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index 81a8722924..719d89b1fe 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -8,7 +8,6 @@ from Base.Vector import Vector from Base.Matrix import Matrix from typing import Final, Dict, Tuple, overload - @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -99,14 +98,10 @@ class TopoShapeSolid(TopoShape): @overload @constmethod - def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: - ... - + def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: ... @overload @constmethod - def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: - ... - + def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: ... @constmethod def offsetFaces(self, *args, **kwargs) -> TopoShape: """ diff --git a/src/Mod/Part/App/TopoShapeVertex.pyi b/src/Mod/Part/App/TopoShapeVertex.pyi index 9c0461d6e7..0f3555054a 100644 --- a/src/Mod/Part/App/TopoShapeVertex.pyi +++ b/src/Mod/Part/App/TopoShapeVertex.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import Final - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index 49eea8f24b..bc1ac4d3c5 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Dict, List, Final, overload, Optional - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/Toroid.pyi b/src/Mod/Part/App/Toroid.pyi index 68d97590aa..05b6394c9d 100644 --- a/src/Mod/Part/App/Toroid.pyi +++ b/src/Mod/Part/App/Toroid.pyi @@ -7,7 +7,6 @@ from Part.GeometrySurface import GeometrySurface from Base.Vector import Vector from typing import Final - @export( Name="ToroidPy", Namespace="Part", diff --git a/src/Mod/Part/App/TrimmedCurve.pyi b/src/Mod/Part/App/TrimmedCurve.pyi index e26e0b199d..dcc1b35fbe 100644 --- a/src/Mod/Part/App/TrimmedCurve.pyi +++ b/src/Mod/Part/App/TrimmedCurve.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from BoundedCurve import BoundedCurve - @export( Twin="GeomTrimmedCurve", TwinPointer="GeomTrimmedCurve", diff --git a/src/Mod/Part/Gui/ViewProviderPartExt.pyi b/src/Mod/Part/Gui/ViewProviderPartExt.pyi index 92997a3298..84673132db 100644 --- a/src/Mod/Part/Gui/ViewProviderPartExt.pyi +++ b/src/Mod/Part/Gui/ViewProviderPartExt.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject - @export( Include="Mod/Part/Gui/ViewProviderExt.h", Namespace="PartGui", diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index c360704232..bbd13efb94 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.BodyBase import BodyBase from typing import Final - @export( Include="Mod/PartDesign/App/Body.h", FatherInclude="Mod/Part/App/BodyBasePy.h", diff --git a/src/Mod/PartDesign/App/Feature.pyi b/src/Mod/PartDesign/App/Feature.pyi index b503667040..e51c64bb16 100644 --- a/src/Mod/PartDesign/App/Feature.pyi +++ b/src/Mod/PartDesign/App/Feature.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.PartFeature import PartFeature from typing import Optional, overload - @export( Include="Mod/PartDesign/App/Feature.h", FatherInclude="Mod/Part/App/PartFeaturePy.h", diff --git a/src/Mod/PartDesign/Gui/ViewProvider.pyi b/src/Mod/PartDesign/Gui/ViewProvider.pyi index 20a6669510..d7553c4aba 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderPartExt import ViewProviderPartExt - @export( Include="Mod/PartDesign/Gui/ViewProvider.h", Namespace="PartDesignGui", diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 072d8cb11b..d664d2a4e2 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import constmethod, export from Data import object - @export( Father="ComplexGeoDataPy", Twin="PointKernel", @@ -61,7 +60,6 @@ class Points(object): def fromValid(self) -> Any: """Get a new point object from points with valid coordinates (i.e. that are not NaN)""" ... - CountPoints: Final[int] """Return the number of vertices of the points object.""" diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index 19818fee00..2bd15a1ecb 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Robot/App/Robot6Axis.h", Namespace="Robot", @@ -26,7 +25,6 @@ class Robot6Axis(Persistence): """Checks the shape and report errors in the shape structure. This is a more detailed check as done in isValid().""" ... - Axis1: float """Pose of Axis 1 in degrees""" diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index 007b24941c..d1acb465bd 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/Robot/App/RobotObject.h", Namespace="Robot", diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index 54ac07cb63..b0a00bc26d 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Robot/App/Trajectory.h", Namespace="Robot", @@ -40,7 +39,6 @@ class Trajectory(Persistence): deleteLast() - delete the last waypoint """ ... - Duration: Final[float] """duration of the trajectory""" diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index 2cc35d2b0a..c6a210c035 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Robot/App/Waypoint.h", Namespace="Robot", diff --git a/src/Mod/Sketcher/App/Constraint.pyi b/src/Mod/Sketcher/App/Constraint.pyi index 7c1fc572af..cb087612aa 100644 --- a/src/Mod/Sketcher/App/Constraint.pyi +++ b/src/Mod/Sketcher/App/Constraint.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Base.Persistence import Persistence from typing import Final - @export( Include="Mod/Sketcher/App/Constraint.h", Constructor=True, diff --git a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi index e8c7db262b..8889456292 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension - @export( PythonName="Sketcher.ExternalGeometryExtension", Include="Mod/Sketcher/App/ExternalGeometryExtension.h", @@ -32,6 +31,5 @@ class ExternalGeometryExtension(GeometryExtension): Sets the given bit to true/false. """ ... - Ref: str = "" """Returns the reference string of this external geometry.""" diff --git a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi index 4e5cfef41b..106045c85a 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List - @export( PythonName="Sketcher.ExternalGeometryFacade", Include="Mod/Sketcher/App/ExternalGeometryFacade.h", diff --git a/src/Mod/Sketcher/App/GeometryFacade.pyi b/src/Mod/Sketcher/App/GeometryFacade.pyi index 648fb5493d..2ac7a8e84a 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.pyi +++ b/src/Mod/Sketcher/App/GeometryFacade.pyi @@ -11,7 +11,6 @@ from Base.Vector import Vector from App.DocumentObjectExtension import DocumentObjectExtension from typing import Final, List - @export( PythonName="Sketcher.GeometryFacade", Include="Mod/Sketcher/App/GeometryFacade.h", diff --git a/src/Mod/Sketcher/App/Sketch.pyi b/src/Mod/Sketcher/App/Sketch.pyi index a7bfadaadb..bab1f3b5ec 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -7,7 +7,6 @@ from Base.Persistence import Persistence from Base.Vector import Vector from typing import Final, Tuple - @export( Include="Mod/Sketcher/App/Sketch.h", FatherInclude="Base/PersistencePy.h", diff --git a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi index 9e4079a2c5..e7c55ebbb5 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension - @export( Name="SketchGeometryExtensionPy", PythonName="Sketcher.SketchGeometryExtension", diff --git a/src/Mod/Sketcher/App/SketchObject.pyi b/src/Mod/Sketcher/App/SketchObject.pyi index 858fb0cbf1..8816f4cfed 100644 --- a/src/Mod/Sketcher/App/SketchObject.pyi +++ b/src/Mod/Sketcher/App/SketchObject.pyi @@ -11,7 +11,6 @@ from Part.App.Geometry import Geometry from Sketcher.App.Constraint import Constraint from typing import List, Tuple, Union, Final, overload - @export( Include="Mod/Sketcher/App/SketchObject.h", FatherInclude="Mod/Part/App/Part2DObjectPy.h", @@ -84,17 +83,14 @@ class SketchObject(Part2DObject): ... @overload - def addGeometry(self, geo: Geometry, isConstruction: bool = False, /) -> int: - ... - + def addGeometry(self, geo: Geometry, isConstruction: bool = False, /) -> int: ... @overload - def addGeometry(self, geo: List[Geometry], isConstruction: bool = False, /) -> Tuple[int, ...]: - ... - - def addGeometry(self, - geo: Union[Geometry, List[Geometry]], - isConstruction: bool = False, - /) -> Union[int, Tuple[int, ...]]: + def addGeometry( + self, geo: List[Geometry], isConstruction: bool = False, / + ) -> Tuple[int, ...]: ... + def addGeometry( + self, geo: Union[Geometry, List[Geometry]], isConstruction: bool = False, / + ) -> Union[int, Tuple[int, ...]]: """ Add geometric objects to the sketch. @@ -231,15 +227,12 @@ class SketchObject(Part2DObject): ... @overload - def addConstraint(self, constraint: Constraint, /) -> int: - ... - + def addConstraint(self, constraint: Constraint, /) -> int: ... @overload - def addConstraint(self, constraints: List[Constraint], /) -> Tuple[int, ...]: - ... - - def addConstraint(self, constraint: Union[Constraint, List[Constraint]], /) -> Union[int, Tuple[int, - ...]]: + def addConstraint(self, constraints: List[Constraint], /) -> Tuple[int, ...]: ... + def addConstraint( + self, constraint: Union[Constraint, List[Constraint]], / + ) -> Union[int, Tuple[int, ...]]: """ Add constraints to the sketch. @@ -268,7 +261,9 @@ class SketchObject(Part2DObject): """ ... - def delConstraints(self, constraintIndices: List[int], updateGeometry: bool, noSolve: bool, /) -> None: + def delConstraints( + self, constraintIndices: List[int], updateGeometry: bool, noSolve: bool, / + ) -> None: """ Delete multiple constraints from a sketch @@ -347,13 +342,9 @@ class SketchObject(Part2DObject): ... @overload - def delConstraintOnPoint(self, vertexId: int, /) -> None: - ... - + def delConstraintOnPoint(self, vertexId: int, /) -> None: ... @overload - def delConstraintOnPoint(self, geoId: int, pointPos: int, /) -> None: - ... - + def delConstraintOnPoint(self, geoId: int, pointPos: int, /) -> None: ... def delConstraintOnPoint(self, *args: int) -> None: """ Delete coincident constraints associated with a sketch point. @@ -592,7 +583,9 @@ class SketchObject(Part2DObject): """ ... - def moveGeometry(self, GeoIndex: int, PointPos: int, Vector: Vector, relative: bool = False, /) -> None: + def moveGeometry( + self, GeoIndex: int, PointPos: int, Vector: Vector, relative: bool = False, / + ) -> None: """ Move a given point (or curve) to another location. @@ -608,7 +601,9 @@ class SketchObject(Part2DObject): """ ... - def moveGeometries(self, Geos: List[Tuple[int, int]], Vector: Vector, relative: bool = False, /) -> None: + def moveGeometries( + self, Geos: List[Tuple[int, int]], Vector: Vector, relative: bool = False, / + ) -> None: """ Move given points and curves to another location. diff --git a/src/Mod/Sketcher/App/SketchObjectSF.pyi b/src/Mod/Sketcher/App/SketchObjectSF.pyi index c7f24bf633..02ef6b118f 100644 --- a/src/Mod/Sketcher/App/SketchObjectSF.pyi +++ b/src/Mod/Sketcher/App/SketchObjectSF.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.Part2DObject import Part2DObject - @export( Include="Mod/Sketcher/App/SketchObjectSF.h", FatherInclude="Mod/Part/App/Part2DObjectPy.h", diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi index d22c357da5..498575b055 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.GeometryExtension import GeometryExtension - @export( PythonName="SketcherGui.ViewProviderSketchGeometryExtension", Include="Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.h", diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index 6b244d55bf..94cf6b18e3 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Spreadsheet/App/PropertyColumnWidths.h", Namespace="Spreadsheet", diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 7d50b61052..848fa6fd2e 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Spreadsheet/App/PropertyRowHeights.h", Namespace="Spreadsheet", diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index de468f3d75..56960acb6a 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -5,13 +5,14 @@ from __future__ import annotations from Base.Metadata import export, sequence_protocol from Base.Persistence import Persistence - @export( Include="Mod/Spreadsheet/App/PropertySheet.h", Namespace="Spreadsheet", Constructor=True, ) -@sequence_protocol(mp_subscript="true", ) +@sequence_protocol( + mp_subscript="true", +) class PropertySheet(Persistence): """ Internal spreadsheet object diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index e7b396aa15..c8e0b94075 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/Spreadsheet/App/Sheet.h", Namespace="Spreadsheet", diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 3c9fb6cef2..f9fac6f720 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject - @export( Twin="ViewProviderSheet", TwinPointer="ViewProviderSheet", diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index c851fc7efb..c39ce25319 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.BaseClass import PyObjectBase from Base.Metadata import export - @export( Include="Mod/Surface/App/Blending/BlendCurve.h", Namespace="Surface", diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index dd240c6bfc..39d2a67ea4 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.BaseClass import PyObjectBase from Base.Metadata import constmethod, export - @export( Include="Mod/Surface/App/Blending/BlendPoint.h", Namespace="Surface", @@ -44,6 +43,5 @@ class BlendPoint(PyObjectBase): BlendPoint.setvectors([Point, D1, D2, ..., DN]) """ ... - Vectors: Final[list] """The list of vectors of this BlendPoint.""" diff --git a/src/Tools/bindings/model/generateModel_Python.py b/src/Tools/bindings/model/generateModel_Python.py index 08bd9b9fb3..3bb87271b2 100644 --- a/src/Tools/bindings/model/generateModel_Python.py +++ b/src/Tools/bindings/model/generateModel_Python.py @@ -22,6 +22,7 @@ from model.typedModel import ( SIGNATURE_SEP = re.compile(r"\s+--\s+", re.DOTALL) SELF_CLS_ARG = re.compile(r"\(\s*(self|cls)(\s*,\s*)?") + class ArgumentKind(Enum): PositionOnly = 0 Arg = 1 @@ -213,7 +214,7 @@ class Function: return any(sig.noargs_flag for sig in self.signatures) def add_signature_docs(self, doc: Documentation) -> None: - if len (self.signatures) == 1: + if len(self.signatures) == 1: docstring = [self.signatures[0].text] signature = [self.signatures[0].annotated_text] else: @@ -226,7 +227,7 @@ class Function: user_doc = doc.UserDocu or "" marker = SIGNATURE_SEP.search(user_doc) if marker: - user_doc = user_doc[marker.end():].strip() + user_doc = user_doc[marker.end() :].strip() docstring.append("--\n") # mark __text_signature__ docstring.extend(signature) # Include real annotated signature in user docstring