From 591e8a36b33ca33c6923c810eebaa31fcaefb4a8 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Fri, 26 Sep 2025 13:23:01 -0500 Subject: [PATCH] black formatting --- src/App/ApplicationDirectories.pyi | 1 - src/App/ComplexGeoData.pyi | 10 +-- src/App/Document.pyi | 1 - src/App/DocumentObject.pyi | 3 +- src/App/DocumentObjectExtension.pyi | 2 +- src/App/DocumentObjectGroup.pyi | 2 +- src/App/Extension.pyi | 1 - src/App/ExtensionContainer.pyi | 1 - src/App/GeoFeature.pyi | 1 - src/App/GeoFeatureGroupExtension.pyi | 2 +- src/App/GroupExtension.pyi | 5 +- src/App/LinkBaseExtension.pyi | 23 +++---- src/App/Material.pyi | 12 ++-- src/App/MeasureManager.pyi | 1 - src/App/Metadata.pyi | 16 ++--- src/App/OriginGroupExtension.pyi | 2 +- src/App/Part.pyi | 2 +- src/App/PropertyContainer.pyi | 5 +- src/App/StringHasher.pyi | 14 +--- src/App/StringID.pyi | 8 +-- src/App/SuppressibleExtension.pyi | 2 +- 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 | 5 +- src/Base/Precision.pyi | 1 - src/Base/PyObjectBase.pyi | 1 - src/Base/Quantity.pyi | 32 +++------ src/Base/Rotation.pyi | 1 - src/Base/Type.pyi | 7 +- src/Base/Unit.pyi | 20 ++---- src/Base/Vector.pyi | 1 - src/Gui/LinkView.pyi | 48 ++++--------- src/Gui/Navigation/NavigationStyle.pyi | 5 +- src/Gui/Workbench.pyi | 5 +- src/Mod/Assembly/App/AssemblyLink.pyi | 1 - src/Mod/Assembly/App/AssemblyObject.pyi | 3 +- 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 | 2 - src/Mod/CAM/App/Voronoi.pyi | 2 - 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 | 2 - src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 1 - src/Mod/Fem/App/FemMesh.pyi | 2 - src/Mod/Fem/App/FemPostBranchFilter.pyi | 1 - src/Mod/Fem/App/FemPostFilter.pyi | 1 - src/Mod/Fem/App/FemPostObject.pyi | 1 - src/Mod/Fem/App/FemPostPipeline.pyi | 1 - 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/Material/App/Array2D.pyi | 3 +- src/Mod/Material/App/Array3D.pyi | 3 +- src/Mod/Material/App/Material.pyi | 1 - src/Mod/Material/App/MaterialFilter.pyi | 3 +- .../Material/App/MaterialFilterOptions.pyi | 8 ++- src/Mod/Material/App/MaterialLibrary.pyi | 1 - src/Mod/Material/App/MaterialManager.pyi | 3 +- src/Mod/Material/App/MaterialProperty.pyi | 3 +- src/Mod/Material/App/Model.pyi | 1 - src/Mod/Material/App/ModelManager.pyi | 5 +- src/Mod/Material/App/ModelProperty.pyi | 1 - src/Mod/Material/App/UUIDs.pyi | 3 +- src/Mod/Material/Gui/MaterialTreeWidget.pyi | 9 ++- 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 | 7 +- src/Mod/Part/App/ArcOfConic.pyi | 3 +- src/Mod/Part/App/BRepFeat/MakePrism.pyi | 1 - .../Part/App/BRepOffsetAPI_MakeFilling.pyi | 26 ++----- .../Part/App/BRepOffsetAPI_MakePipeShell.pyi | 17 +++-- src/Mod/Part/App/BSplineCurve.pyi | 24 ++----- src/Mod/Part/App/BSplineSurface.pyi | 4 +- .../Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 1 - src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 1 - src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 5 +- src/Mod/Part/App/Circle.pyi | 19 ++---- src/Mod/Part/App/Cylinder.pyi | 19 ++---- src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 1 - src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi | 37 +++++----- 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 | 33 +++------ src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 17 ++--- 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 - .../Part/App/GeomPlate/BuildPlateSurface.pyi | 1 - .../Part/App/GeomPlate/CurveConstraint.pyi | 1 - .../Part/App/GeomPlate/PointConstraint.pyi | 1 - src/Mod/Part/App/GeometryCurve.pyi | 31 ++++----- src/Mod/Part/App/GeometrySurface.pyi | 36 ++++------ src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 1 - src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 3 +- src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 1 - src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 1 - src/Mod/Part/App/Hyperbola.pyi | 15 ++--- src/Mod/Part/App/Line.pyi | 11 +-- src/Mod/Part/App/LineSegment.pyi | 12 +--- src/Mod/Part/App/PlateSurface.pyi | 2 +- src/Mod/Part/App/Point.pyi | 12 +--- 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_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 - .../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 - src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 1 - .../Part/App/ShapeUpgrade/UnifySameDomain.pyi | 1 - src/Mod/Part/App/SurfaceOfRevolution.pyi | 5 +- src/Mod/Part/App/TopoShape.pyi | 67 +++++++++---------- src/Mod/Part/App/TopoShapeCompound.pyi | 4 +- src/Mod/Part/App/TopoShapeEdge.pyi | 32 ++++----- src/Mod/Part/App/TopoShapeSolid.pyi | 8 +-- 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 - src/Mod/TechDraw/App/CenterLine.pyi | 4 +- src/Mod/TechDraw/App/CosmeticEdge.pyi | 3 +- src/Mod/TechDraw/App/CosmeticExtension.pyi | 3 +- src/Mod/TechDraw/App/CosmeticVertex.pyi | 4 +- src/Mod/TechDraw/App/DrawBrokenView.pyi | 3 +- src/Mod/TechDraw/App/DrawGeomHatch.pyi | 3 +- src/Mod/TechDraw/App/DrawHatch.pyi | 3 +- src/Mod/TechDraw/App/DrawLeaderLine.pyi | 3 +- src/Mod/TechDraw/App/DrawPage.pyi | 4 +- .../TechDraw/App/DrawParametricTemplate.pyi | 4 +- src/Mod/TechDraw/App/DrawProjGroup.pyi | 3 +- src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 3 +- src/Mod/TechDraw/App/DrawRichAnno.pyi | 3 +- src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 3 +- src/Mod/TechDraw/App/DrawTemplate.pyi | 3 +- src/Mod/TechDraw/App/DrawTile.pyi | 3 +- src/Mod/TechDraw/App/DrawTileWeld.pyi | 3 +- src/Mod/TechDraw/App/DrawView.pyi | 3 +- src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 3 +- src/Mod/TechDraw/App/DrawViewClip.pyi | 3 +- src/Mod/TechDraw/App/DrawViewCollection.pyi | 3 +- src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 3 +- src/Mod/TechDraw/App/DrawViewDimension.pyi | 3 +- src/Mod/TechDraw/App/DrawViewPart.pyi | 3 +- src/Mod/TechDraw/App/DrawViewSymbol.pyi | 3 +- src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 3 +- src/Mod/TechDraw/App/GeomFormat.pyi | 4 +- .../bindings/model/generateModel_Python.py | 46 ++++--------- src/Tools/bindings/model/typedModel.py | 1 - 205 files changed, 381 insertions(+), 853 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index e3b65512e5..01dd557124 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.PyObjectBase import PyObjectBase - class ApplicationDirectories(PyObjectBase): """ Provides access to the directory versioning methods of its C++ counterpart. diff --git a/src/App/ComplexGeoData.pyi b/src/App/ComplexGeoData.pyi index 638f4579fa..3534b4b29a 100644 --- a/src/App/ComplexGeoData.pyi +++ b/src/App/ComplexGeoData.pyi @@ -12,7 +12,6 @@ from Base.Matrix import Matrix from StringHasher import StringHasher from typing import Any, Final - @export( Namespace="Data", Reference=True, @@ -37,14 +36,18 @@ class ComplexGeoData(Persistence): ... @constmethod - def getFacesFromSubElement(self,) -> tuple[list[Vector], list[tuple[int, int, int]]]: + def getFacesFromSubElement( + self, + ) -> tuple[list[Vector], list[tuple[int, int, int]]]: """ Return vertexes and faces from a sub-element. """ ... @constmethod - def getLinesFromSubElement(self,) -> tuple[list[Vector], list[tuple[int, int]]]: + def getLinesFromSubElement( + self, + ) -> tuple[list[Vector], list[tuple[int, int]]]: """ Return vertexes and lines from a sub-element. """ @@ -133,7 +136,6 @@ class ComplexGeoData(Persistence): Return the mapped element name """ ... - BoundBox: Final[BoundBox] = ... """Get the bounding box (BoundBox) of the complex geometric data.""" diff --git a/src/App/Document.pyi b/src/App/Document.pyi index eb56f4fd69..3e5d8b4438 100644 --- a/src/App/Document.pyi +++ b/src/App/Document.pyi @@ -6,7 +6,6 @@ from PropertyContainer import PropertyContainer from DocumentObject import DocumentObject from typing import Final, Sequence - class Document(PropertyContainer): """ This is the Document class. diff --git a/src/App/DocumentObject.pyi b/src/App/DocumentObject.pyi index d9700c2c70..101147a69c 100644 --- a/src/App/DocumentObject.pyi +++ b/src/App/DocumentObject.pyi @@ -9,7 +9,6 @@ from DocumentObjectGroup import DocumentObjectGroup from ExtensionContainer import ExtensionContainer from typing import Any, Final, List, Optional, Union, Tuple - class DocumentObject(ExtensionContainer): """ This is the father of all classes handled by the document @@ -75,7 +74,7 @@ class DocumentObject(ExtensionContainer): read_only: bool = False, hidden: bool = False, locked: bool = False, - enum_vals: list = [] + enum_vals: list = [], ) -> "DocumentObject": """ addProperty(type: string, name: string, group="", doc="", attr=0, read_only=False, hidden=False, locked = False, enum_vals=[]) -- Add a generic property. diff --git a/src/App/DocumentObjectExtension.pyi b/src/App/DocumentObjectExtension.pyi index 651ef55bb9..930c0d16ee 100644 --- a/src/App/DocumentObjectExtension.pyi +++ b/src/App/DocumentObjectExtension.pyi @@ -4,11 +4,11 @@ from __future__ import annotations from Extension import Extension - class DocumentObjectExtension(Extension): """ Base class for all document object extensions Author: Stefan Troeger (stefantroeger@gmx.net) Licence: LGPL """ + ... diff --git a/src/App/DocumentObjectGroup.pyi b/src/App/DocumentObjectGroup.pyi index 2b9d92fe8e..3519c294f6 100644 --- a/src/App/DocumentObjectGroup.pyi +++ b/src/App/DocumentObjectGroup.pyi @@ -4,11 +4,11 @@ from __future__ import annotations from DocumentObject import DocumentObject - class DocumentObjectGroup(DocumentObject): """ This class handles document objects in group Author: Werner Mayer (wmayer@users.sourceforge.net) Licence: LGPL """ + ... diff --git a/src/App/Extension.pyi b/src/App/Extension.pyi index 282d53acca..855938e93a 100644 --- a/src/App/Extension.pyi +++ b/src/App/Extension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from typing import Final, Any from Base.PyObjectBase import PyObjectBase - class Extension(PyObjectBase): """ Base class for all extensions diff --git a/src/App/ExtensionContainer.pyi b/src/App/ExtensionContainer.pyi index ecf688249f..8e2ef712bf 100644 --- a/src/App/ExtensionContainer.pyi +++ b/src/App/ExtensionContainer.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from PropertyContainer import PropertyContainer - @export( Initialization=True, Constructor=True, diff --git a/src/App/GeoFeature.pyi b/src/App/GeoFeature.pyi index 0c96ddaa88..e42bc5be0e 100644 --- a/src/App/GeoFeature.pyi +++ b/src/App/GeoFeature.pyi @@ -6,7 +6,6 @@ from DocumentObject import DocumentObject from Base import Placement from typing import Any, Final, Optional - class GeoFeature(DocumentObject): """ App.GeoFeature class. diff --git a/src/App/GeoFeatureGroupExtension.pyi b/src/App/GeoFeatureGroupExtension.pyi index 756cac6efc..7e7ed2ddd0 100644 --- a/src/App/GeoFeatureGroupExtension.pyi +++ b/src/App/GeoFeatureGroupExtension.pyi @@ -4,11 +4,11 @@ from __future__ import annotations from GroupExtension import GroupExtension - class GeoFeatureGroupExtension(GroupExtension): """ Author: Werner Mayer (wmayer@users.sourceforge.net) Licence: LGPL This class handles placeable group of document objects """ + ... diff --git a/src/App/GroupExtension.pyi b/src/App/GroupExtension.pyi index b1d3506ded..1aef56034e 100644 --- a/src/App/GroupExtension.pyi +++ b/src/App/GroupExtension.pyi @@ -6,8 +6,9 @@ from Base.Metadata import export from DocumentObjectExtension import DocumentObjectExtension from typing import Any, List - -@export(Include="App/DocumentObjectGroup.h",) +@export( + Include="App/DocumentObjectGroup.h", +) class GroupExtension(DocumentObjectExtension): """ Extension class which allows grouping of document objects diff --git a/src/App/LinkBaseExtension.pyi b/src/App/LinkBaseExtension.pyi index 67d72275be..5d6b05e73f 100644 --- a/src/App/LinkBaseExtension.pyi +++ b/src/App/LinkBaseExtension.pyi @@ -6,8 +6,9 @@ from Base.Metadata import export from DocumentObjectExtension import DocumentObjectExtension from typing import Any, Final, List, Tuple, Optional, Union, overload - -@export(Include="App/Link.h",) +@export( + Include="App/Link.h", +) class LinkBaseExtension(DocumentObjectExtension): """ Link extension base class @@ -45,28 +46,22 @@ class LinkBaseExtension(DocumentObjectExtension): def getLinkExtProperty(self, name: str, /) -> Any: """ - getLinkExtProperty(name): return the property value by its predefined name + getLinkExtProperty(name): return the property value by its predefined name """ ... def getLinkExtPropertyName(self, name: str, /) -> str: """ - getLinkExtPropertyName(name): lookup the property name by its predefined name + getLinkExtPropertyName(name): lookup the property name by its predefined name """ ... @overload - def getLinkPropertyInfo(self, /) -> tuple: - ... - + def getLinkPropertyInfo(self, /) -> tuple: ... @overload - def getLinkPropertyInfo(self, index: int, /) -> tuple: - ... - + def getLinkPropertyInfo(self, index: int, /) -> tuple: ... @overload - def getLinkPropertyInfo(self, name: str, /) -> tuple: - ... - + def getLinkPropertyInfo(self, name: str, /) -> tuple: ... def getLinkPropertyInfo(self, arg: Any = None, /) -> tuple: """ getLinkPropertyInfo(): return a tuple of (name,type,doc) for all supported properties. @@ -82,7 +77,7 @@ class LinkBaseExtension(DocumentObjectExtension): obj: Any, subName: Optional[str] = None, subElements: Optional[Union[str, Tuple[str, ...]]] = None, - / + /, ) -> None: """ setLink(obj,subName=None,subElements=None): Set link object. diff --git a/src/App/Material.pyi b/src/App/Material.pyi index 2c88d8a051..d27a9df51e 100644 --- a/src/App/Material.pyi +++ b/src/App/Material.pyi @@ -6,14 +6,15 @@ from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Any, overload - @export( Constructor=True, Delete=True, ) -@class_declarations("""public: +@class_declarations( + """public: static Base::Color toColor(PyObject* value); - """) + """ +) class Material(PyObjectBase): """ App.Material class. @@ -24,9 +25,7 @@ class Material(PyObjectBase): """ @overload - def __init__(self, *args: Any, **kwargs: Any) -> None: - ... - + def __init__(self, *args: Any, **kwargs: Any) -> None: ... def set(self, string: str, /) -> None: """ Set(string) -- Set the material. @@ -36,7 +35,6 @@ class Material(PyObjectBase): Satin, Metalized, Neon GNC, Chrome, Aluminium, Obsidian, Neon PHC, Jade, Ruby or Emerald. """ ... - AmbientColor: Any = ... """Ambient color""" diff --git a/src/App/MeasureManager.pyi b/src/App/MeasureManager.pyi index 3c9c115e14..949e4e8710 100644 --- a/src/App/MeasureManager.pyi +++ b/src/App/MeasureManager.pyi @@ -8,7 +8,6 @@ from typing import List, Tuple, TypeAlias MeasureType: TypeAlias = object - @export( Constructor=False, Delete=True, diff --git a/src/App/Metadata.pyi b/src/App/Metadata.pyi index 37b5bb4392..b399382521 100644 --- a/src/App/Metadata.pyi +++ b/src/App/Metadata.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Any, List, Dict, overload, Optional - @export( Constructor=True, Delete=True, @@ -53,20 +52,13 @@ class Metadata(PyObjectBase): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, metadata: "Metadata") -> None: - ... - + def __init__(self, metadata: "Metadata") -> None: ... @overload - def __init__(self, file: str) -> None: - ... - + def __init__(self, file: str) -> None: ... @overload - def __init__(self, bytes: bytes) -> None: - ... + def __init__(self, bytes: bytes) -> None: ... Name: str = "" """String representing the name of this item.""" diff --git a/src/App/OriginGroupExtension.pyi b/src/App/OriginGroupExtension.pyi index 499b2a1a65..e9d24800ac 100644 --- a/src/App/OriginGroupExtension.pyi +++ b/src/App/OriginGroupExtension.pyi @@ -4,11 +4,11 @@ from __future__ import annotations from GeoFeatureGroupExtension import GeoFeatureGroupExtension - class OriginGroupExtension(GeoFeatureGroupExtension): """ Author: Alexander Golubev (fatzer2@gmail.com) Licence: LGPL This class handles placable group of document objects with an Origin """ + ... diff --git a/src/App/Part.pyi b/src/App/Part.pyi index 4146df2c33..4b542e59c8 100644 --- a/src/App/Part.pyi +++ b/src/App/Part.pyi @@ -4,11 +4,11 @@ from __future__ import annotations from GeoFeature import GeoFeature - class Part(GeoFeature): """ Author: Juergen Riegel (FreeCAD@juergen-riegel.net) Licence: LGPL This class handles document objects in Part """ + ... diff --git a/src/App/PropertyContainer.pyi b/src/App/PropertyContainer.pyi index afa9047b42..1066ec6f6d 100644 --- a/src/App/PropertyContainer.pyi +++ b/src/App/PropertyContainer.pyi @@ -6,8 +6,9 @@ from Base.Metadata import export, constmethod from Base.Persistence import Persistence from typing import Any, Final, Union, List, Optional - -@export(DisableNotify=True,) +@export( + DisableNotify=True, +) class PropertyContainer(Persistence): """ App.PropertyContainer class. diff --git a/src/App/StringHasher.pyi b/src/App/StringHasher.pyi index 16d626d6be..7a881f4edd 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, overload, Dict - @export( Constructor=True, Reference=True, @@ -20,9 +19,7 @@ class StringHasher(BaseClass): """ @overload - def __init__(self, *args: Any, **kwargs: Any) -> None: - ... - + def __init__(self, *args: Any, **kwargs: Any) -> None: ... def getID(self, arg: Any, base64: bool = False, /) -> Any: """ getID(txt|id, base64=False) -> StringID @@ -38,20 +35,15 @@ class StringHasher(BaseClass): ... @overload - def getID(self, txt: str, base64: bool = False, /) -> Any: - ... - + def getID(self, txt: str, base64: bool = False, /) -> Any: ... @overload - def getID(self, id: int, base64: bool = False, /) -> Any: - ... - + def getID(self, id: int, base64: bool = False, /) -> Any: ... @constmethod def isSame(self, other: "StringHasher", /) -> bool: """ Check if two hasher are the same """ ... - Count: Final[int] = 0 """Return count of used hashes""" diff --git a/src/App/StringID.pyi b/src/App/StringID.pyi index dd4681f210..6e41805997 100644 --- a/src/App/StringID.pyi +++ b/src/App/StringID.pyi @@ -6,15 +6,16 @@ from Base.Metadata import export, constmethod, class_declarations from Base.BaseClass import BaseClass from typing import Any, Final, List - @export( Include="App/StringHasher.h", Reference=True, ) -@class_declarations("""private: +@class_declarations( + """private: friend class StringID; int _index = 0; - """) + """ +) class StringID(BaseClass): """ This is the StringID class @@ -29,7 +30,6 @@ class StringID(BaseClass): Check if two StringIDs are the same """ ... - Value: Final[int] = 0 """Return the integer value of this ID""" diff --git a/src/App/SuppressibleExtension.pyi b/src/App/SuppressibleExtension.pyi index 872396d8bb..4146458c62 100644 --- a/src/App/SuppressibleExtension.pyi +++ b/src/App/SuppressibleExtension.pyi @@ -4,11 +4,11 @@ from __future__ import annotations from DocumentObjectExtension import DocumentObjectExtension - class SuppressibleExtension(DocumentObjectExtension): """ Author: Florian Foinant-Willig (flachyjoe@users.sourceforge.net) Licence: LGPL Extension class which allows suppressing of document objects """ + ... diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index 373291b42e..7f0ea391d9 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 94ca026794..0fd55ecef0 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 d550308bcb..c76036fcf7 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, @@ -137,17 +136,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: """ add(minMax) -> None @@ -193,13 +186,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: """ @@ -220,18 +209,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: """ intersect(boundBox2) -> bool @@ -294,17 +279,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(displacement) -> None @@ -324,17 +303,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(factor) -> None @@ -378,17 +351,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: """ isInside(object) -> bool diff --git a/src/Base/CoordinateSystem.pyi b/src/Base/CoordinateSystem.pyi index 20b9236959..e65f143940 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 efa51c5179..bd144f584d 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(vector) -> None @@ -135,17 +129,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(vector) -> None @@ -347,13 +335,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 60e157db50..627775c30a 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,40 +1,31 @@ # SPDX-License: 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(): - ... - - -def no_args(): - ... - - +def constmethod(): ... +def no_args(): ... 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 9f024acca7..25ba13ac72 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 b698b09411..d45cd4873f 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, @@ -120,9 +119,7 @@ class Placement(PyObjectBase): @overload def rotate( self, center: Sequence[float], axis: Sequence[float], angle: float, *, comp: bool = False - ) -> None: - ... - + ) -> None: ... def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None: """ rotate(center, axis, angle, comp) -> None diff --git a/src/Base/Precision.pyi b/src/Base/Precision.pyi index b5502b1d16..b3ef75334f 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 fb9d63780d..7094cf8e73 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 4173dd9811..8845cfad4b 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, @@ -66,13 +65,9 @@ class Quantity(PyObjectBase): ... @overload - def toStr(self, /) -> str: - ... - + def toStr(self, /) -> str: ... @overload - def toStr(self, decimals: int, /) -> str: - ... - + def toStr(self, decimals: int, /) -> str: ... @constmethod def getUserPreferred(self) -> Tuple["Quantity", str]: """ @@ -81,21 +76,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: """ @@ -119,9 +106,6 @@ 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: ... diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index 78ddb46fb2..aa6346cbde 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 717dc6d858..bb888e1be6 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 6304c28389..876b713069 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -8,7 +8,6 @@ from Quantity import Quantity from Unit import Unit from typing import Final, Tuple, overload - @export( NumberProtocol=True, RichCompare=True, @@ -32,9 +31,7 @@ class Unit(PyObjectBase): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload def __init__( self, @@ -46,20 +43,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 17b7cbd8a1..e62c8258b6 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, TYPE_CHECKING - @export( TwinPointer="Vector3d", Include="Base/Vector3D.h", diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index fc800f3620..0c4027e2d0 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -42,21 +42,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 setType(self, type: int, sublink: bool = True, /) -> None: """ setType(type, sublink=True): set the link type. @@ -73,13 +65,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 setTransform(self, matrix: Any, /) -> None: """ setTransform(matrix): set transformation of the linked object @@ -93,17 +81,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 setChildren(self, children: List[Any], vis: List[Any] = [], type: int = 0, /) -> None: """ setChildren([obj...],vis=[],type=0) @@ -138,17 +120,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 getDetailPath(self, element: Any, /) -> Tuple[Any, Any]: """ getDetailPath(element): get the 3d path an detail of an element. diff --git a/src/Gui/Navigation/NavigationStyle.pyi b/src/Gui/Navigation/NavigationStyle.pyi index c09ce379a4..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/Workbench.pyi b/src/Gui/Workbench.pyi index 1c2f825151..2bff9d2b59 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 a9f4290283..c5e8bf9d4c 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 5aaf85dcf5..cc5fa9dad2 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -8,7 +8,6 @@ from Base.Metadata import constmethod, export from App.Part import Part - @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") class AssemblyObject(Part): """ @@ -153,7 +152,6 @@ class AssemblyObject(Part): Args: fileName: The name of the file where the ASMT will be exported.""" ... - @constmethod def getDownstreamParts( self, start_part: "App.DocumentObject", joint_to_ignore: "App.DocumentObject", / @@ -176,5 +174,6 @@ 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 220d3e76a6..12c69672fa 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 2f5709f251..bdb3d684ef 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 1604d4afa0..6c452712ab 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 b33e08cb9e..f4cef9043b 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 63c3e990f8..8092311fd0 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 31396d59be..a4518edb3e 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProvider import ViewProvider - @export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui") class ViewProviderAssembly(ViewProvider): """ diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index 206363a8e8..dc688ca4c9 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", @@ -96,7 +95,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 896d970399..e9c1323b46 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, /) -> "CommandPy": """transform(Placement): 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 dcc49facaa..7a1877a0a8 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", @@ -29,6 +28,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 05dbfce859..7033ce2622 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -5,7 +5,6 @@ from typing import Any, Final from Base.Metadata import constmethod, export from Base.Persistence import Persistence - @export( Include="Mod/CAM/App/Path.h", Twin="Toolpath", @@ -55,7 +54,6 @@ class Path(Persistence): def getCycleTime(self) -> Any: """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 013f8fcead..fb46da51df 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.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/Voronoi.h", Namespace="Path", @@ -82,7 +81,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 4f67ff2788..322f9f31f8 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import export - @export( FatherInclude="Base/BaseClassPy.h", Include="Mod/CAM/PathSimulator/App/PathSim.h", @@ -52,6 +51,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 4f54097f03..c5189a1ceb 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -8,7 +8,6 @@ from Base.BaseClass import BaseClass from Base.Metadata import export from Metadata import no_args - @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 14e5c0c6a4..20c6f05dfd 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -8,7 +8,6 @@ from Base.Metadata import constmethod, export from App.ComplexGeoData import ComplexGeoData - @export( Include="Mod/Fem/App/FemMesh.h", Namespace="Fem", @@ -261,7 +260,6 @@ class FemMesh(ComplexGeoData): def getIdByElementType(self) -> Any: """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 a756469e5a..7fae9c27bf 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/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index bc756ce819..52db00dc52 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Fem.FemPostObject import FemPostObject - @export( Include="Mod/Fem/App/FemPostFilter.h", Namespace="Fem", diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index e3c0e95ff6..11f4bb1766 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.GeoFeature import GeoFeature - @export( Include="Mod/Fem/App/FemPostObject.h", Namespace="Fem", diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index aba0bf7a97..d22535364d 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Fem.FemPostObject import FemPostObject - @export( Include="Mod/Fem/App/FemPostPipeline.h", Namespace="Fem", diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index f4fc527a68..d64ba3d0e3 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): filename : str 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 522c140e6a..3ca4703201 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 e35842681b..1f24bd16de 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 79216e15bf..437ec02dff 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 1fdee6f85b..247216a716 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/Material/App/Array2D.pyi b/src/Mod/Material/App/Array2D.pyi index 5b089570c3..370033eaeb 100644 --- a/src/Mod/Material/App/Array2D.pyi +++ b/src/Mod/Material/App/Array2D.pyi @@ -7,14 +7,13 @@ from Base.BaseClass import BaseClass from Base.Metadata import constmethod from typing import Final, List, Any - @export( Twin="Array2D", TwinPointer="Array2D", Namespace="Materials", Include="Mod/Material/App/MaterialValue.h", Delete=True, - Constructor=True + Constructor=True, ) class Array2D(BaseClass): """ diff --git a/src/Mod/Material/App/Array3D.pyi b/src/Mod/Material/App/Array3D.pyi index 9ad00b2461..95bd528462 100644 --- a/src/Mod/Material/App/Array3D.pyi +++ b/src/Mod/Material/App/Array3D.pyi @@ -6,14 +6,13 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List - @export( Twin="Array3D", TwinPointer="Array3D", Namespace="Materials", Include="Mod/Material/App/MaterialValue.h", Delete=True, - Constructor=True + Constructor=True, ) class Array3D(BaseClass): """ diff --git a/src/Mod/Material/App/Material.pyi b/src/Mod/Material/App/Material.pyi index 47c8b84b72..c4017a40a4 100644 --- a/src/Mod/Material/App/Material.pyi +++ b/src/Mod/Material/App/Material.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, no_args, sequence_protocol from Base.BaseClass import BaseClass from typing import Final, Dict - @export( Include="Mod/Material/App/Materials.h", Namespace="Materials", diff --git a/src/Mod/Material/App/MaterialFilter.pyi b/src/Mod/Material/App/MaterialFilter.pyi index 513f89e9af..e29a47c017 100644 --- a/src/Mod/Material/App/MaterialFilter.pyi +++ b/src/Mod/Material/App/MaterialFilter.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import List - @export( Include="Mod/Material/App/MaterialFilter.h", Namespace="Materials", @@ -28,4 +27,4 @@ class MaterialFilter(BaseClass): """Materials must include the specified models.""" RequiredCompleteModels: List = ... - """Materials must have complete versions of the specified models.""" \ No newline at end of file + """Materials must have complete versions of the specified models.""" diff --git a/src/Mod/Material/App/MaterialFilterOptions.pyi b/src/Mod/Material/App/MaterialFilterOptions.pyi index 9d6a0851f3..418113a06a 100644 --- a/src/Mod/Material/App/MaterialFilterOptions.pyi +++ b/src/Mod/Material/App/MaterialFilterOptions.pyi @@ -5,8 +5,12 @@ from __future__ import annotations from Base.Metadata import export from Base.BaseClass import BaseClass - -@export(Include="Mod/Material/App/MaterialFilter.h", Namespace="Materials", Constructor=True, Delete=True) +@export( + Include="Mod/Material/App/MaterialFilter.h", + Namespace="Materials", + Constructor=True, + Delete=True, +) class MaterialFilterOptions(BaseClass): """ Material filtering options. diff --git a/src/Mod/Material/App/MaterialLibrary.pyi b/src/Mod/Material/App/MaterialLibrary.pyi index 1afafb87da..80690567bc 100644 --- a/src/Mod/Material/App/MaterialLibrary.pyi +++ b/src/Mod/Material/App/MaterialLibrary.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final - @export( Include="Mod/Material/App/MaterialLibrary.h", Namespace="Materials", diff --git a/src/Mod/Material/App/MaterialManager.pyi b/src/Mod/Material/App/MaterialManager.pyi index 83a76234f7..02ff1f46c1 100644 --- a/src/Mod/Material/App/MaterialManager.pyi +++ b/src/Mod/Material/App/MaterialManager.pyi @@ -6,12 +6,11 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List, Dict, overload - @export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True) class MaterialManager(BaseClass): """ Material descriptions. - + Author: DavidCarter (dcarter@davidcarter.ca) Licence: LGPL """ diff --git a/src/Mod/Material/App/MaterialProperty.pyi b/src/Mod/Material/App/MaterialProperty.pyi index c1a8d8d572..be748b7457 100644 --- a/src/Mod/Material/App/MaterialProperty.pyi +++ b/src/Mod/Material/App/MaterialProperty.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ModelProperty import ModelProperty from typing import Final - @export( Include="Mod/Material/App/Materials.h", Namespace="Materials", @@ -18,7 +17,7 @@ from typing import Final class MaterialProperty(ModelProperty): """ Material property descriptions. - + Author: DavidCarter (dcarter@davidcarter.ca) Licence: LGPL """ diff --git a/src/Mod/Material/App/Model.pyi b/src/Mod/Material/App/Model.pyi index c7b2babe2d..ae99831298 100644 --- a/src/Mod/Material/App/Model.pyi +++ b/src/Mod/Material/App/Model.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List, Dict, overload - @export( Include="Mod/Material/App/Model.h", Namespace="Materials", diff --git a/src/Mod/Material/App/ModelManager.pyi b/src/Mod/Material/App/ModelManager.pyi index 35380ab9d9..1dbda87a49 100644 --- a/src/Mod/Material/App/ModelManager.pyi +++ b/src/Mod/Material/App/ModelManager.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List, Dict - @export(Include="Mod/Material/App/ModelManager.h", Namespace="Materials", Constructor=True) class ModelManager(BaseClass): """ @@ -25,13 +24,13 @@ class ModelManager(BaseClass): Models: Final[Dict] = ... """List of model libraries.""" - def getModel(self) ->...: + def getModel(self) -> ...: """ Get a model object by specifying its UUID """ ... - def getModelByPath(self) ->...: + def getModelByPath(self) -> ...: """ Get a model object by specifying its path """ diff --git a/src/Mod/Material/App/ModelProperty.pyi b/src/Mod/Material/App/ModelProperty.pyi index c745ab0763..3402d10677 100644 --- a/src/Mod/Material/App/ModelProperty.pyi +++ b/src/Mod/Material/App/ModelProperty.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final - @export( Include="Mod/Material/App/Model.h", Namespace="Materials", diff --git a/src/Mod/Material/App/UUIDs.pyi b/src/Mod/Material/App/UUIDs.pyi index fbbfec04da..c243afa582 100644 --- a/src/Mod/Material/App/UUIDs.pyi +++ b/src/Mod/Material/App/UUIDs.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final - @export( PythonName="Material.UUIDs", Twin="ModelUUIDs", @@ -19,7 +18,7 @@ from typing import Final class UUIDs(BaseClass): """ Material model UUID identifiers. - + Author: DavidCarter (dcarter@davidcarter.ca) Licence: LGPL """ diff --git a/src/Mod/Material/Gui/MaterialTreeWidget.pyi b/src/Mod/Material/Gui/MaterialTreeWidget.pyi index a1ef763b01..96a22830a9 100644 --- a/src/Mod/Material/Gui/MaterialTreeWidget.pyi +++ b/src/Mod/Material/Gui/MaterialTreeWidget.pyi @@ -2,11 +2,16 @@ from __future__ import annotations -from Metadata import export, constmethod, forward_declarations, class_declarations, sequence_protocol +from Metadata import ( + export, + constmethod, + forward_declarations, + class_declarations, + sequence_protocol, +) from Base.BaseClass import BaseClass from typing import Final, overload - @export( Twin="MaterialTreeWidget", TwinPointer="MaterialTreeWidget", diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index 577e537a81..18c562aeb0 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 fc67232999..d5657ee8d1 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 067c5dc151..d274f81185 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 0e5988c6d0..016cdfef86 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -7,7 +7,6 @@ from typing import Final 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 99bb48aad5..1dcdf1eb84 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 8d1772e5c7..64765f1a28 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 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 31f610220f..ad2ada3cca 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 318938fa34..a47bb396e6 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 2bbba6ea8e..8d73f82620 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 ff65500dbf..706256a880 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -25,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/ArcOfConic.pyi b/src/Mod/Part/App/ArcOfConic.pyi index 9f90aa50c8..0270897665 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -25,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/BRepFeat/MakePrism.pyi b/src/Mod/Part/App/BRepFeat/MakePrism.pyi index 01f4fa97f1..92ce616001 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 12d173a816..b476f2f228 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -30,7 +30,7 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): Tol2d: float = 0.00001, Tol3d: float = 0.0001, TolAng: float = 0.01, - TolCurv: float = 0.1 + TolCurv: float = 0.1, ) -> None: """ setConstrParam(Tol2d=0.00001, Tol3d=0.0001, TolAng=0.01, TolCurv=0.1) @@ -97,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]) @@ -112,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]) @@ -127,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 6eed37a243..83f9a3e851 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, @@ -86,10 +87,8 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): Location: TopoShape, *, WithContact: bool = False, - WithCorrection: bool = False - ) -> None: - ... - + WithCorrection: bool = False, + ) -> 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 364248f076..523fd95708 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -104,13 +104,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) @@ -344,9 +340,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. @@ -383,9 +377,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]: """ @@ -404,9 +396,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. @@ -483,9 +473,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 da1915e721..c10412a2d2 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -664,7 +664,7 @@ class BSplineSurface(GeometrySurface): ParamType: str = ..., LengthWeight: float = ..., CurvatureWeight: float = ..., - TorsionWeight: float = ... + TorsionWeight: float = ..., ) -> None: """ Replaces this B-Spline surface by approximating a set of points. @@ -725,7 +725,7 @@ class BSplineSurface(GeometrySurface): vperiodic: bool = ..., udegree: int = ..., vdegree: int = ..., - weights: List[List[float]] = ... + weights: List[List[float]] = ..., ) -> None: """ Builds a B-Spline by a lists of Poles, Mults and Knots diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index 8b3af2e48a..9b4594c092 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, constmethod 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 49e100d310..8b9f3faddc 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, overload 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 b591fffab2..7efdca1e34 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -44,8 +44,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/Circle.pyi b/src/Mod/Part/App/Circle.pyi index 8c881e087c..32a001b9b2 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -41,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/Cylinder.pyi b/src/Mod/Part/App/Cylinder.pyi index b35a3e019a..9116ac1c44 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -51,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/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index 3bb7a84fe8..61f8014f73 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, constmethod 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 b38b45717c..d2533cdc18 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, constmethod, overload 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 c595e2c504..05a04a355e 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, constmethod from typing import Final, overload from Part import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfEllipse2d", Twin="Geom2dArcOfEllipse", diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index dcfb80dcc9..e108eca788 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, constmethod, overload from typing import Final from Part.Geom2d import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfHyperbola2d", Twin="Geom2dArcOfHyperbola", diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index 6417467c9d..1499f0921e 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, constmethod, overload from typing import Final from Part.Geom2d import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfParabola2d", Twin="Geom2dArcOfParabola", diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi index 4c06a2c0e4..2a434ce988 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) @@ -131,7 +126,7 @@ class BSplineCurve2d(Curve2d): list_of_ints: list[int], tol: float = 0.0, bool_add: bool = True, - / + /, ) -> None: """ insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True) @@ -381,18 +376,24 @@ class BSplineCurve2d(Curve2d): @overload def buildFromPolesMultsKnots( - self, poles: list[Vector], mults: tuple[int, ...], knots: tuple[float, ...], periodic: bool, - degree: int - ) -> None: - ... - + self, + poles: list[Vector], + mults: tuple[int, ...], + knots: tuple[float, ...], + periodic: bool, + degree: int, + ) -> None: ... @overload def buildFromPolesMultsKnots( - self, poles: list[Vector], mults: tuple[int, ...], knots: tuple[float, ...], periodic: bool, - degree: int, weights: tuple[float, ...], CheckRational: bool - ) -> None: - ... - + self, + poles: list[Vector], + mults: tuple[int, ...], + knots: tuple[float, ...], + periodic: bool, + degree: int, + weights: tuple[float, ...], + CheckRational: bool, + ) -> 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 0f4b748893..8896ec6f00 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 78b60f4db8..4ebea3e42d 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, constmethod from typing import Final, 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 a6c377cfe1..978f9ff1d4 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 de8b7faa32..d0b65d7b22 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", @@ -108,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 @@ -131,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 @@ -194,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 14af0cdaa7..1035e4aecc 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, constmethod from Part.Conic2d import Conic2d - @export( Twin="Geom2dEllipse", TwinPointer="Geom2dEllipse", @@ -56,20 +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: ... diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index 4e958d321a..ca61d6d4b8 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import overload - @export( Twin="Geometry2d", TwinPointer="Geometry2d", diff --git a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi index 852c1a7ee4..d45cb3ff41 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 4009317fd7..236e158d5a 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Part.Geom2d.Curve2d import Curve2d from typing import overload - @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 9c24774d1c..1c8af07de7 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, constmethod from typing import Final, 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 9030954cc9..46c114cff5 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -6,7 +6,6 @@ from Metadata import export from typing import Final from Part.Geom2d import Curve2d - @export( Name="OffsetCurve2dPy", Namespace="Part", diff --git a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi index 580b749813..06bf0eb202 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 59e9f2a4cb..4f3975999a 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, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final, overload - @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 06a880483e..8e4bcabf12 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, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final, overload - @export( PythonName="Part.GeomPlate.PointConstraintPy", Twin="GeomPlate_PointConstraint", diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index 7e8f9ea94f..08b7543d2d 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -45,8 +45,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. """ @@ -54,11 +55,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. """ @@ -66,11 +65,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'. """ @@ -78,11 +75,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. """ @@ -107,7 +102,7 @@ class GeometryCurve(Geometry): Minimum: int = 2, *, First: Optional[float] = None, - Last: Optional[float] = None + Last: Optional[float] = None, ) -> List[Vector]: """ Discretizes the curve and returns a list of points with an angular deflection of 'a' and a curvature deflection of 'c'. diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index c606a391fc..662ffa0aa3 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -85,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: """ @@ -241,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, @@ -253,7 +245,7 @@ class GeometrySurface(Geometry): max_degree_u: int = 25, max_degree_v: int = 25, max_segments: int = 1000, - precision_code: int = 0 + precision_code: int = 0, ) -> Any: """ Returns a B-Spline representation of this surface. diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index d9c68b75c1..29a7b5a4a9 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Final - @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 0b53d837ac..c1bc4ecba1 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase from Part.TopoShapePy import TopoShape from typing import Final, overload - @export( PythonName="Part.HLRBRep_PolyAlgo", Twin="HLRBRep_PolyAlgo", @@ -113,7 +112,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): Origin: tuple[float, float, float] = (0.0, 0.0, 0.0), ZDir: tuple[float, float, float] = (0.0, 0.0, 0.0), XDir: tuple[float, float, float] = (0.0, 0.0, 0.0), - focus: float = float("nan") + focus: float = float("nan"), ) -> None: """ setProjector(Origin=(0, 0, 0), ZDir=(0,0,0), XDir=(0,0,0), focus=NaN) diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index 09271bc4e8..cc3b17d3bc 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, overload - @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 24750f2356..a79afc5930 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, overload - @export( PythonName="Part.PolyHLRToShapePy", Twin="HLRBRep_PolyHLRToShape", diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index 627c1c3ee4..15d2c0c0ba 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -61,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 5f9a5fec0d..11cdb6395b 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -39,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 7422d36ccd..a977096da6 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -37,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/PlateSurface.pyi b/src/Mod/Part/App/PlateSurface.pyi index f801c976fd..0d55b800be 100644 --- a/src/Mod/Part/App/PlateSurface.pyi +++ b/src/Mod/Part/App/PlateSurface.pyi @@ -27,7 +27,7 @@ class PlateSurface(GeometrySurface): MaxDistance: float = 0, CritOrder: int = 0, Continuity: str = "", - EnlargeCoeff: float = 0 + EnlargeCoeff: float = 0, ) -> None: """ Approximate the plate surface to a B-Spline surface diff --git a/src/Mod/Part/App/Point.pyi b/src/Mod/Part/App/Point.pyi index 034fd7e143..3be16f85f5 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -33,17 +33,11 @@ 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: """ diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index 9276b41485..dacefa6c53 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Final - @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 a601c32121..acad1f2a0a 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 431811faed..8b13d3fa16 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 Final, Union, overload - @export( PythonName="Part.ShapeFix.Face", Include="ShapeFix_Face.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index d443d2fc8c..d2e4873263 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -7,7 +7,6 @@ from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.App.TopoShape import TopoShape from typing import Final, overload - @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 bc824c286b..1efcd01bd6 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import overload - @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 829dfe4b0d..a314490f7e 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 71f94c1189..e9b429c842 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final, overload - @export( PythonName="Part.ShapeFix.Root", Include="ShapeFix_Root.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index c79a6b45f0..3597142f05 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 Final, 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 dfbd029878..fd44d06384 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -6,7 +6,6 @@ from Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final, overload - @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 484b13a90c..371f015fa7 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final - @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 61c6723b88..478a53d208 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import overload - @export( PythonName="Part.ShapeFix.SplitCommonVertex", Include="ShapeFix_SplitCommonVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 96580bc169..044104870d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final - @export( PythonName="Part.ShapeFix.Wire", Twin="ShapeFix_Wire", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index 0cc2aba5e8..0b1eaebb19 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, constmethod 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 695776f3d5..77287d8ce4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final - @export( PythonName="Part.ShapeFix.Wireframe", Twin="ShapeFix_Wireframe", diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index 2acc90c424..e6c7ddc7bc 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import overload - @export( PythonName="Part.ShapeUpgrade.UnifySameDomain", Include="ShapeUpgrade_UnifySameDomain.hxx", diff --git a/src/Mod/Part/App/SurfaceOfRevolution.pyi b/src/Mod/Part/App/SurfaceOfRevolution.pyi index b2c489e608..9295628f01 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -35,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 92e90945c3..de97dbf347 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", @@ -297,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. @@ -354,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) @@ -458,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 @@ -537,14 +533,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 makeChamfer(self, *args) -> TopoShape: """ @@ -557,14 +549,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 makeThickness(self, faces: List, offset: float, tolerance: float, /) -> TopoShape: """ @@ -587,7 +575,7 @@ class TopoShape(ComplexGeoData): self_inter: bool = False, offsetMode: int = 0, join: int = 0, - fill: bool = False + fill: bool = False, ) -> TopoShape: """ Makes an offset shape (3d offsetting). @@ -622,7 +610,7 @@ class TopoShape(ComplexGeoData): join: int = 0, fill: bool = False, openResult: bool = False, - intersection: bool = False + intersection: bool = False, ) -> TopoShape: """ Makes an offset shape (2d offsetting). @@ -798,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 @@ -858,7 +848,7 @@ class TopoShape(ComplexGeoData): UpDir: Vector = None, EdgeType: str = None, Visible: bool = True, - OnShape: bool = False + OnShape: bool = False, ) -> TopoShape: """ Build projection or reflect lines of a shape according to a view direction. @@ -974,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) @@ -982,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) @@ -1030,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 @@ -1044,7 +1037,7 @@ class TopoShape(ComplexGeoData): generated: List[Tuple[TopoShape, TopoShape]], modified: List[Tuple[TopoShape, TopoShape]], op: str = "", - / + /, ) -> None: """ mapShapes(generated, modified, op='') @@ -1103,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 @@ -1192,7 +1187,7 @@ class TopoShape(ComplexGeoData): needName: bool = False, checkGeometry: bool = True, tol: float = 1e-7, - atol: float = 1e-12 + atol: float = 1e-12, ) -> Union[List[Tuple[str, TopoShape]], List[TopoShape]]: """ findSubShapesWithSharedVertex(shape, needName=False, checkGeometry=True, tol=1e-7, atol=1e-12) -> Shape diff --git a/src/Mod/Part/App/TopoShapeCompound.pyi b/src/Mod/Part/App/TopoShapeCompound.pyi index 7b7b44c503..7389ac78e3 100644 --- a/src/Mod/Part/App/TopoShapeCompound.pyi +++ b/src/Mod/Part/App/TopoShapeCompound.pyi @@ -28,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 e717ba83a5..6ced86b057 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -455,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( @@ -487,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/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index 435f2d3aac..f392f62b12 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -98,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/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index 74dd06dd3e..773fcbe946 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Part.BodyBase import BodyBase from typing import Final, overload - @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 22308d0ffe..1bb573e5c8 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 9214123ead..bbfd8fa060 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Gui.ViewProviderPartExt import ViewProviderPartExt from typing import Final, overload - @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 5b05d62fe8..34a931d244 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 f4f7db2665..7021edaae5 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 05602a99e1..83f91b16b2 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 b528494c65..6e78fe8ba7 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 b655da7d48..d793ea0f34 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 fb17f65cf0..bda851deae 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 68ae6ec24c..e809190d31 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension from typing import Final, overload - @export( PythonName="Sketcher.ExternalGeometryExtension", Include="Mod/Sketcher/App/ExternalGeometryExtension.h", @@ -33,6 +32,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 0e2104ea16..37580a7033 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 4249aa5848..561be3cb90 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 9daab0671e..0ab324906a 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 8b766d5796..2e8cfe069e 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 f7e573d090..43a334bb82 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 6c360b3265..0df672b9fd 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 f0c8740f0b..d12ff8d5f3 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 8689a97272..1617880935 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 c1bf6f3a16..3a09048616 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 c7c3e46a27..c3b6b2a319 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 e3d1e0047e..f2afe739d9 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 d3e4e5e958..96d60ce2ec 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 e394ae9ed8..a2622c6393 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 6f8d48b3c2..1a0cfd9d6e 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/Mod/TechDraw/App/CenterLine.pyi b/src/Mod/TechDraw/App/CenterLine.pyi index 0b48094e1f..d3d7beafae 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.PyObjectBase import PyObjectBase from Base.Metadata import constmethod, export - @export( Include="Mod/TechDraw/App/CenterLine.h", Namespace="TechDraw", @@ -17,7 +16,7 @@ from Base.Metadata import constmethod, export class CenterLine(PyObjectBase): """ CenterLine specifies additional mark up edges in a View - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ @@ -31,7 +30,6 @@ class CenterLine(PyObjectBase): def copy(self) -> Any: """Create a copy of this centerline""" ... - Tag: Final[str] """Gives the tag of the CenterLine as string.""" diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index d1129dfc53..098c0a09d9 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -7,7 +7,6 @@ from typing import Final from Base.PyObjectBase import PyObjectBase from Base.Metadata import export - @export( Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", @@ -18,7 +17,7 @@ from Base.Metadata import export class CosmeticEdge(PyObjectBase): """ CosmeticEdge specifies an extra (cosmetic) edge in Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index f9c617bfee..8cddfb5b63 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension - @export( Include="Mod/TechDraw/App/CosmeticExtension.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from App.DocumentObjectExtension import DocumentObjectExtension class CosmeticExtension(DocumentObjectExtension): """ This object represents cosmetic features for a DrawViewPart. - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index 191e5ce958..e11fb22bb3 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.PyObjectBase import PyObjectBase from Base.Metadata import constmethod, export - @export( Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", @@ -17,7 +16,7 @@ from Base.Metadata import constmethod, export class CosmeticVertex(PyObjectBase): """ CosmeticVertex specifies an extra (cosmetic) vertex in Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ @@ -31,7 +30,6 @@ class CosmeticVertex(PyObjectBase): def copy(self) -> Any: """Create a copy of this CosmeticVertex""" ... - Tag: Final[str] """Gives the tag of the CosmeticVertex as string.""" diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index 66767c6a37..960bcf5d0a 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart - @export( Include="Mod/TechDraw/App/DrawBrokenView.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawViewPart import DrawViewPart class DrawBrokenView(DrawViewPart): """ Feature for creating and manipulating Technical Drawing broken views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index e5cffc8f66..1f2a02b0ab 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/TechDraw/App/DrawGeomHatch.h", Namespace="TechDraw", @@ -15,7 +14,7 @@ from App.DocumentObject import DocumentObject class DrawGeomHatch(DocumentObject): """ Feature for creating and manipulating Technical Drawing GeomHatch areas - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index 59af46f563..dd5e0fb42b 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -6,7 +6,6 @@ from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/TechDraw/App/DrawHatch.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from App.DocumentObject import DocumentObject class DrawHatch(DocumentObject): """ Feature for creating and manipulating Technical Drawing Hatch areas - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 42bf823dcd..8e6b3b7bd5 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawLeaderLine.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from DrawView import DrawView class DrawLeaderLine(DrawView): """ Feature for adding leaders to Technical Drawings - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index ea53bd2d4b..8720f95744 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/TechDraw/App/DrawPage.h", Namespace="TechDraw", @@ -15,7 +14,7 @@ from App.DocumentObject import DocumentObject class DrawPage(DocumentObject): """ Feature for creating and manipulating Technical Drawing Pages - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ @@ -46,7 +45,6 @@ class DrawPage(DocumentObject): def requestPaint(self) -> Any: """Ask the Gui to redraw this page""" ... - PageWidth: Final[float] """Returns the width of this page""" diff --git a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi index 750e344349..efd87fdcf8 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import export from DrawTemplate import DrawTemplate - @export( Include="Mod/TechDraw/App/DrawParametricTemplate.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from DrawTemplate import DrawTemplate class DrawParametricTemplate(DrawTemplate): """ Feature for creating and manipulating Technical Drawing Templates - + Author: Luke Parry (l.parry@warwick.ac.uk) License: LGPL-2.1-or-later """ @@ -24,6 +23,5 @@ class DrawParametricTemplate(DrawTemplate): def drawLine(self) -> Any: """Draw a line""" ... - GeometryCount: Final[int] """Number of geometry in template""" diff --git a/src/Mod/TechDraw/App/DrawProjGroup.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi index 1fe3c8f44e..b72ac0877b 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewCollection import DrawViewCollection - @export( Include="Mod/TechDraw/App/DrawProjGroup.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawViewCollection import DrawViewCollection class DrawProjGroup(DrawViewCollection): """ Feature for creating and manipulating Technical Drawing Projection Groups - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index abcc6ff9fe..2c23c0642c 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart - @export( Include="Mod/TechDraw/App/DrawProjGroupItem.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawViewPart import DrawViewPart class DrawProjGroupItem(DrawViewPart): """ Feature for creating and manipulating component Views Technical Drawing Projection Groups - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index 4a1fa6e9ba..9f7cfc802f 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawRichAnno.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from TechDraw.DrawView import DrawView class DrawRichAnno(DrawView): """ Feature for adding rich annotation blocks to Technical Drawings - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 53450fc736..676f483294 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from DrawTemplate import DrawTemplate - @export( Include="Mod/TechDraw/App/DrawSVGTemplate.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from DrawTemplate import DrawTemplate class DrawSVGTemplate(DrawTemplate): """ Feature for creating and manipulating Technical Drawing SVG Templates - + Author: Luke Parry (l.parry@warwick.ac.uk) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index 97a278352b..70d1daf328 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/TechDraw/App/DrawTemplate.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from App.DocumentObject import DocumentObject class DrawTemplate(DocumentObject): """ Feature for creating and manipulating Technical Drawing Templates - + Author: Luke Parry (l.parry@warwick.ac.uk) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index 73bc8a073b..ed0527c8f5 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/TechDraw/App/DrawTile.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from App.DocumentObject import DocumentObject class DrawTile(DocumentObject): """ Feature for adding tiles to leader lines - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index bfe37e18b6..b9e5e25295 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawTile import DrawTile - @export( Include="Mod/TechDraw/App/DrawTileWeld.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from TechDraw.DrawTile import DrawTile class DrawTileWeld(DrawTile): """ Feature for adding welding tiles to leader lines - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 70a1803823..2c97fa2f15 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/TechDraw/App/DrawView.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from App.DocumentObject import DocumentObject class DrawView(DocumentObject): """ Feature for creating and manipulating Technical Drawing Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index f0d734de18..1b169779bd 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.Drawview import DrawView - @export( Include="Mod/TechDraw/App/DrawViewAnnotation.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from TechDraw.Drawview import DrawView class DrawViewAnnotation(DrawView): """ Feature for creating and manipulating Technical Drawing Annotation Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 1e33c47a22..2236ec5885 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawViewClip.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawView import DrawView class DrawViewClip(DrawView): """ Feature for creating and manipulating Technical Drawing Clip Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 87ed242408..652613f729 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawViewCollection.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawView import DrawView class DrawViewCollection(DrawView): """ Feature for creating and manipulating Technical Drawing View Collections - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index 78ea25dcdf..d7478bce61 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewDimension import DrawViewDimension - @export( Include="Mod/TechDraw/App/DrawViewDimExtent.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawViewDimension import DrawViewDimension class DrawViewDimExtent(DrawViewDimension): """ Feature for creating and manipulating Technical Drawing DimExtents - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 317d75a154..210df2f31f 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawViewDimension.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawView import DrawView class DrawViewDimension(DrawView): """ Feature for creating and manipulating Technical Drawing Dimensions - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 32c537d2ac..46f46b87a7 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.rawView import DrawView - @export( Include="Mod/TechDraw/App/DrawViewPart.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.rawView import DrawView class DrawViewPart(DrawView): """ Feature for creating and manipulating Technical Drawing Part Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index d4494577d7..8ce2369413 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawViewSymbol.h", Namespace="TechDraw", @@ -16,7 +15,7 @@ from TechDraw.DrawView import DrawView class DrawViewSymbol(DrawView): """ Feature for creating and manipulating Drawing SVG Symbol Views - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 2a4f60db4d..6390dffffe 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawView import DrawView - @export( Include="Mod/TechDraw/App/DrawWeldSymbol.h", Namespace="TechDraw", @@ -14,7 +13,7 @@ from TechDraw.DrawView import DrawView class DrawWeldSymbol(DrawView): """ Feature for adding welding tiles to leader lines - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index 3bec82577b..7164ea7ced 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.PyObjectBase import PyObjectBase from Base.Metadata import constmethod, export - @export( Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", @@ -17,7 +16,7 @@ from Base.Metadata import constmethod, export class GeomFormat(PyObjectBase): """ GeomFormat specifies appearance parameters for TechDraw Geometry objects - + Author: WandererFan (wandererfan@gmail.com) License: LGPL-2.1-or-later """ @@ -31,6 +30,5 @@ class GeomFormat(PyObjectBase): def copy(self) -> Any: """Create a copy of this geomformat""" ... - Tag: Final[str] """Gives the tag of the GeomFormat as string.""" diff --git a/src/Tools/bindings/model/generateModel_Python.py b/src/Tools/bindings/model/generateModel_Python.py index d767e124d2..1c0ddab78a 100644 --- a/src/Tools/bindings/model/generateModel_Python.py +++ b/src/Tools/bindings/model/generateModel_Python.py @@ -168,9 +168,7 @@ class Function: def has_keywords(self) -> bool: overloads = len(self.signatures) > 1 if overloads: - return any( - sig.has_keywords for sig in self.signatures if sig.is_overload - ) + return any(sig.has_keywords for sig in self.signatures if sig.is_overload) return self.signatures[0].has_keywords @property @@ -327,9 +325,7 @@ def _python_type_to_parameter_type(py_type: str) -> ParameterType: return ParameterType.OBJECT -def _parse_class_attributes( - class_node: ast.ClassDef, source_code: str -) -> List[Attribute]: +def _parse_class_attributes(class_node: ast.ClassDef, source_code: str) -> List[Attribute]: """ Parse top-level attributes (e.g. `TypeId: str = ""`) from the class AST node. We'll create an `Attribute` for each. For the `Documentation` of each attribute, @@ -341,11 +337,7 @@ def _parse_class_attributes( for idx, stmt in enumerate(class_node.body): if isinstance(stmt, ast.AnnAssign): # e.g.: `TypeId: Final[str] = ""` - name = ( - stmt.target.id - if isinstance(stmt.target, ast.Name) - else "unknown" - ) + name = stmt.target.id if isinstance(stmt.target, ast.Name) else "unknown" # Evaluate the type annotation and detect Final for read-only attributes if isinstance(stmt.annotation, ast.Name): # e.g. `str` @@ -592,9 +584,7 @@ def _extract_base_class_name(base: ast.expr) -> str: return base_str -def _parse_class( - class_node, source_code: str, path: str, imports_mapping: dict -) -> PythonExport: +def _parse_class(class_node, source_code: str, path: str, imports_mapping: dict) -> PythonExport: base_class_name = None for base in class_node.bases: base_class_name = _extract_base_class_name(base) @@ -626,9 +616,7 @@ def _parse_class( match args[0]: case ast.Constant(value=val): class_declarations_text = val - case ast.Call( - func=ast.Name(id="sequence_protocol"), keywords=_, args=_ - ): + case ast.Call(func=ast.Name(id="sequence_protocol"), keywords=_, args=_): sequence_protocol_kwargs = _extract_decorator_kwargs(decorator) case _: pass @@ -648,33 +636,23 @@ def _parse_class( native_python_class_name = _get_native_python_class_name(class_node.name) include = _get_module_path(module_name) + "/" + native_class_name + ".h" - father_native_python_class_name = _get_native_python_class_name( - base_class_name - ) + father_native_python_class_name = _get_native_python_class_name(base_class_name) father_include = ( - _get_module_path(parent_module_name) - + "/" - + father_native_python_class_name - + ".h" + _get_module_path(parent_module_name) + "/" + father_native_python_class_name + ".h" ) py_export = PythonExport( Documentation=doc_obj, ModuleName=module_name, - Name=export_decorator_kwargs.get("Name", "") - or native_python_class_name, + Name=export_decorator_kwargs.get("Name", "") or native_python_class_name, PythonName=export_decorator_kwargs.get("PythonName", "") or None, Include=export_decorator_kwargs.get("Include", "") or include, - Father=export_decorator_kwargs.get("Father", "") - or father_native_python_class_name, + Father=export_decorator_kwargs.get("Father", "") or father_native_python_class_name, Twin=export_decorator_kwargs.get("Twin", "") or native_class_name, - TwinPointer=export_decorator_kwargs.get("TwinPointer", "") - or native_class_name, + TwinPointer=export_decorator_kwargs.get("TwinPointer", "") or native_class_name, Namespace=export_decorator_kwargs.get("Namespace", "") or module_name, - FatherInclude=export_decorator_kwargs.get("FatherInclude", "") - or father_include, - FatherNamespace=export_decorator_kwargs.get("FatherNamespace", "") - or parent_module_name, + FatherInclude=export_decorator_kwargs.get("FatherInclude", "") or father_include, + FatherNamespace=export_decorator_kwargs.get("FatherNamespace", "") or parent_module_name, Constructor=export_decorator_kwargs.get("Constructor", False), NumberProtocol=export_decorator_kwargs.get("NumberProtocol", False), RichCompare=export_decorator_kwargs.get("RichCompare", False), diff --git a/src/Tools/bindings/model/typedModel.py b/src/Tools/bindings/model/typedModel.py index ae48386b12..7c60385fe5 100644 --- a/src/Tools/bindings/model/typedModel.py +++ b/src/Tools/bindings/model/typedModel.py @@ -326,4 +326,3 @@ class GenerateModel: # Each method might have parameters for param in meth.Parameter: print(f" * param: {param.Name}, type={param.Type}") -