From 2fb6f7e15a4a192f24e39a386d42bb4e1c804402 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Wed, 24 Sep 2025 12:12:06 -0500 Subject: [PATCH 01/20] [bindings] ApplicationDirectories --- src/App/ApplicationDirectories.pyi | 90 ++++++++++++++++++------------ 1 file changed, 54 insertions(+), 36 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index ee3419eda8..11776c7009 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -1,38 +1,33 @@ -from Base.PyObjectBase import PyObjectBase -from typing import List +# SPDX-License: LGPL-2.1-or-later +from __future__ import annotations + +from Base.PyObjectBase import PyObjectBase class ApplicationDirectories(PyObjectBase): """ - App.ApplicationDirectories class. + Provides access to the directory versioning methods of its C++ counterpart. - For the time being this class only provides access to the directory versioning methods of its - C++ counterpart. These are all static methods, so no instance is needed. The main methods of + These are all static methods, so no instance is needed. The main methods of this class are migrateAllPaths(), usingCurrentVersionConfig(), and versionStringForPath(). - - Author: Chris Hennes (chennes@pioneerlibrarysystem.org) - Licence: LGPL-2.1-or-later - DeveloperDocu: ApplicationDirectories """ @staticmethod - def usingCurrentVersionConfig(path:str) -> bool: + def usingCurrentVersionConfig(path: str) -> bool: """ - usingCurrentVersionConfig(path) + Determine if a given config path is for the current version of the program. - Determine if a given config path is for the current version of the program - - path : the path to check + Args: + path: The path to check. """ ... @staticmethod - def migrateAllPaths(paths: List[str]) -> None: + def migrateAllPaths(paths: list[str]) -> None: """ - migrateAllPaths(paths) + Migrate a set of versionable configuration directories from the given paths to a new version. - Migrate a set of versionable configuration directories from the given paths to a new - version. The new version's directories cannot exist yet, and the old ones *must* exist. + The new version's directories cannot exist yet, and the old ones *must* exist. If the old paths are themselves versioned, then the new paths will be placed at the same level in the directory structure (e.g., they will be siblings of each entry in paths). If paths are NOT versioned, the new (versioned) copies will be placed *inside* the @@ -41,6 +36,9 @@ class ApplicationDirectories(PyObjectBase): If the list contains the same path multiple times, the duplicates are ignored, so it is safe to pass the same path multiple times. + Args: + paths: List of paths to migrate from. + Examples: Running FreeCAD 1.1, /usr/share/FreeCAD/Config/ -> /usr/share/FreeCAD/Config/v1-1/ Running FreeCAD 1.1, /usr/share/FreeCAD/Config/v1-1 -> raises exception, path exists @@ -49,60 +47,80 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def versionStringForPath(major:int, minor:int) -> str: + def versionStringForPath(major: int, minor: int) -> str: """ - versionStringForPath(major, minor) -> str + Given a major and minor version number. - Given a major and minor version number, return a string that can be used as the name for a - versioned subdirectory. Only returns the version string, not the full path. + Args: + major: Major version number. + minor: Minor version number. + + Returns: + a string that can be used as the name for a versioned subdirectory. + Only returns the version string, not the full path. """ ... @staticmethod - def isVersionedPath(startingPath:str) -> bool: + def isVersionedPath(startingPath: str) -> bool: """ - isVersionedPath(startingPath) -> bool + Determine if a given path is versioned. - Determine if a given path is versioned (that is, if its last component contains - something that this class would have created as a versioned subdirectory). Returns true - for any path that the *current* version of FreeCAD would recognized as versioned, and false - for either something that is not versioned, or something that is versioned but for a later - version of FreeCAD. + That is, if its last component contains something that this class would have + created as a versioned subdirectory). + + Args: + startingPath: The path to check. + + Returns: + True for any path that the *current* version of FreeCAD would recognized as versioned, + and False for either something that is not versioned, or something that is versioned + but for a later version of FreeCAD. """ ... @staticmethod - def mostRecentAvailableConfigVersion(startingPath:str) -> str: + def mostRecentAvailableConfigVersion(startingPath: str) -> str: """ - mostRecentAvailableConfigVersion(startingPath) -> str - Given a base path that is expected to contain versioned subdirectories, locate the directory name (*not* the path, only the final component, the version string itself) corresponding to the most recent version of the software, up to and including the current running version, but NOT exceeding it -- any *later* version whose directories exist in the path is ignored. See also mostRecentConfigFromBase(). + + Args: + startingPath: The path to check. + + Returns: + Most recent available dir name (not path). """ ... @staticmethod def mostRecentConfigFromBase(startingPath: str) -> str: """ - mostRecentConfigFromBase(startingPath) -> str - Given a base path that is expected to contained versioned subdirectories, locate the directory corresponding to the most recent version of the software, up to and including the current version, but NOT exceeding it. Returns the complete path, not just the final component. See also mostRecentAvailableConfigVersion(). + + Args: + startingPath: The base path to check. + + Returns: + Most recent available full path (not just dir name). """ ... @staticmethod def migrateConfig(oldPath: str, newPath: str) -> None: """ - migrateConfig(oldPath, newPath) -> None - A utility method to copy all files and directories from oldPath to newPath, handling the case where newPath might itself be a subdirectory of oldPath (and *not* attempting that otherwise-recursive copy). + + Args: + oldPath: Path from. + newPath: Path to. """ ... From 3c782de40209070d7a2a856cabf018fe3bc75d22 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Wed, 24 Sep 2025 12:12:32 -0500 Subject: [PATCH 02/20] [bindings] ComplexGeoData --- src/App/ComplexGeoData.pyi | 84 ++++++++++++++++++++++---------------- 1 file changed, 48 insertions(+), 36 deletions(-) diff --git a/src/App/ComplexGeoData.pyi b/src/App/ComplexGeoData.pyi index 095eddc5ff..d1407c2e3e 100644 --- a/src/App/ComplexGeoData.pyi +++ b/src/App/ComplexGeoData.pyi @@ -1,13 +1,16 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Persistence import Persistence -from Base.BoundBox import BoundBox as BoundBoxPy +from Base.BoundBox import BoundBox from Base.Vector import Vector -from Base.Placement import Placement as PlacementPy +from Base.Placement import Placement from Base.Rotation import Rotation from Base.Matrix import Matrix from StringHasher import StringHasher -from typing import Any, Final, List, Dict - +from typing import Any, Final @export( Namespace="Data", @@ -15,57 +18,57 @@ from typing import Any, Final, List, Dict ) class ComplexGeoData(Persistence): """ - Data.ComplexGeoData class. - - Author: Juergen Riegel (Juergen.Riegel@web.de) - Licence: LGPL - UserDocu: Father of all complex geometric data types + Father of all complex geometric data types. """ @constmethod - def getElementTypes(self) -> List[str]: + def getElementTypes(self) -> list[str]: """ - Return a list of element types present in the complex geometric data + Return a list of element types present in the complex geometric data. """ ... @constmethod def countSubElements(self) -> int: """ - Return the number of elements of a type + Return the number of elements of a type. """ ... @constmethod - def getFacesFromSubElement(self) -> Any: + def getFacesFromSubElement( + self, + ) -> tuple[list[Vector], list[tuple[int, int, int]]]: """ - Return vertexes and faces from a sub-element + Return vertexes and faces from a sub-element. """ ... @constmethod - def getLinesFromSubElement(self) -> Any: + def getLinesFromSubElement( + self, + ) -> tuple[list[Vector], list[tuple[int, int]]]: """ - Return vertexes and lines from a sub-element + Return vertexes and lines from a sub-element. """ ... @constmethod - def getPoints(self) -> Any: + def getPoints(self) -> tuple[list[Vector], list[Vector]]: """ Return a tuple of points and normals with a given accuracy """ ... @constmethod - def getLines(self) -> Any: + def getLines(self) -> tuple[list[Vector], list[tuple[int, int]]]: """ Return a tuple of points and lines with a given accuracy """ ... @constmethod - def getFaces(self) -> Any: + def getFaces(self) -> tuple[list[Vector], list[tuple[int, int, int]]]: """ Return a tuple of points and triangles with a given accuracy """ @@ -89,15 +92,24 @@ class ComplexGeoData(Persistence): """ ... - def setElementName(self, *, element: str, name: str = None, postfix: str = None, overwrite: bool = False, sid: Any = None) -> None: + def setElementName( + self, + *, + element: str, + name: str = None, + postfix: str = None, + overwrite: bool = False, + sid: Any = None, + ) -> None: """ - setElementName(element,name=None,postfix=None,overwrite=False,sid=None), Set an element name + Set an element name. - element : the original element name, e.g. Edge1, Vertex2 - name : the new name for the element, None to remove the mapping - postfix : postfix of the name that will not be hashed - overwrite: if true, it will overwrite exiting name - sid : to hash the name any way you want, provide your own string id(s) in this parameter + Args: + element : the original element name, e.g. Edge1, Vertex2 + name : the new name for the element, None to remove the mapping + postfix : postfix of the name that will not be hashed + overwrite: if true, it will overwrite exiting name + sid : to hash the name any way you want, provide your own string id(s) in this parameter An element can have multiple mapped names. However, a name can only be mapped to one element @@ -105,33 +117,33 @@ class ComplexGeoData(Persistence): ... @constmethod - def getElementName(self, name: str, direction: int = 0) -> Any: + def getElementName(self, name: str, direction: int = 0) -> str: """ - getElementName(name,direction=0) - Return a mapped element name or reverse + Return a mapped element name or reverse. """ ... @constmethod - def getElementIndexedName(self, name: str) -> Any: + def getElementIndexedName(self, name: str) -> str | tuple[str, list[int]]: """ - getElementIndexedName(name) - Return the indexed element name + Return the indexed element name. """ ... @constmethod - def getElementMappedName(self, name: str) -> Any: + def getElementMappedName(self, name: str) -> str | tuple[str, list[int]]: """ - getElementMappedName(name) - Return the mapped element name + Return the mapped element name """ ... - BoundBox: Final[BoundBoxPy] = ... + BoundBox: Final[BoundBox] = ... """Get the bounding box (BoundBox) of the complex geometric data.""" CenterOfGravity: Final[Vector] = ... """Get the center of gravity""" - Placement: PlacementPy = ... + Placement: Placement = ... """Get the current transformation of the object as placement""" Tag: int = 0 @@ -143,10 +155,10 @@ class ComplexGeoData(Persistence): ElementMapSize: Final[int] = 0 """Get the current element map size""" - ElementMap: Dict[Any, Any] = {} + ElementMap: dict[str, str] = {} """Get/Set a dict of element mapping""" - ElementReverseMap: Final[Dict[Any, Any]] = {} + ElementReverseMap: Final[dict[str, str | list[str]]] = {} """Get a dict of element reverse mapping""" ElementMapVersion: Final[str] = "" From b59a80b54071bda287b46b3fcedfb4e44e58d0aa Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Wed, 24 Sep 2025 12:12:52 -0500 Subject: [PATCH 03/20] [bindings] Document --- src/App/Document.pyi | 185 +++++++++++++++++++++++++------------------ 1 file changed, 110 insertions(+), 75 deletions(-) diff --git a/src/App/Document.pyi b/src/App/Document.pyi index 23affaf828..109fbb7436 100644 --- a/src/App/Document.pyi +++ b/src/App/Document.pyi @@ -1,13 +1,14 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from PropertyContainer import PropertyContainer from DocumentObject import DocumentObject -from typing import Final, List, Tuple, Sequence - +from typing import Final, Sequence class Document(PropertyContainer): """ - This is a Document class - Author: Juergen Riegel (FreeCAD@juergen-riegel.net) - Licence: LGPL + This is the Document class. """ DependencyGraph: Final[str] = "" @@ -16,16 +17,16 @@ class Document(PropertyContainer): ActiveObject: Final[DocumentObject] = None """The last created object in this document""" - Objects: Final[List[DocumentObject]] = [] + Objects: Final[list[DocumentObject]] = [] """The list of objects in this document""" - TopologicalSortedObjects: Final[List[DocumentObject]] = [] + TopologicalSortedObjects: Final[list[DocumentObject]] = [] """The list of objects in this document in topological sorted order""" - RootObjects: Final[List[DocumentObject]] = [] + RootObjects: Final[list[DocumentObject]] = [] """The list of root objects in this document""" - RootObjectsIgnoreLinks: Final[List[DocumentObject]] = [] + RootObjectsIgnoreLinks: Final[list[DocumentObject]] = [] """The list of root objects in this document ignoring references from links.""" UndoMode: int = 0 @@ -40,10 +41,10 @@ class Document(PropertyContainer): RedoCount: Final[int] = 0 """Number of possible Redos""" - UndoNames: Final[List[str]] = [] + UndoNames: Final[list[str]] = [] """A list of Undo names""" - RedoNames: Final[List[str]] = [] + RedoNames: Final[list[str]] = [] """A List of Redo names""" Name: Final[str] = "" @@ -55,10 +56,10 @@ class Document(PropertyContainer): HasPendingTransaction: Final[bool] = False """Check if there is a pending transaction""" - InList: Final[List["Document"]] = [] + InList: Final[list[Document]] = [] """A list of all documents that link to this document.""" - OutList: Final[List["Document"]] = [] + OutList: Final[list[Document]] = [] """A list of all documents that this document links to.""" Restoring: Final[bool] = False @@ -84,25 +85,25 @@ class Document(PropertyContainer): def save(self) -> None: """ - Save the document to disk + Save the document to disk. """ ... - def saveAs(self) -> None: + def saveAs(self, path: str) -> None: """ - Save the document under a new name to disk + Save the document under a new name to disk. """ ... - def saveCopy(self) -> None: + def saveCopy(self, path: str) -> None: """ - Save a copy of the document under a new name to disk + Save a copy of the document under a new name to disk. """ ... - def load(self) -> None: + def load(self, path: str) -> None: """ - Load the document from the given path + Load the document from the given path. """ ... @@ -133,35 +134,38 @@ class Document(PropertyContainer): def getUniqueObjectName(self, objName: str) -> str: """ - getUniqueObjectName(objName) -> objName - Return the same name, or the name made unique, for Example Box -> Box002 if there are conflicting name already in the document. - ObjName : str - Object name. + Args: + objName: Object name candidate. + + Returns: + Unique object name based on objName. """ ... - def mergeProject(self) -> None: + def mergeProject(self, path: str) -> None: """ - Merges this document with another project file + Merges this document with another project file. """ ... - def exportGraphviz(self) -> None: + def exportGraphviz(self, path: str = None) -> str | None: """ - Export the dependencies of the objects as graph + Export the dependencies of the objects as graph. + + If path is passed, graph is written to it. if not a string is returned. """ ... def openTransaction(self, name: str) -> None: """ - openTransaction(name) - Open a new Undo/Redo transaction. + Open a new Undo/Redo transaction. This function no long creates a new transaction, but calls FreeCAD.setActiveTransaction(name) instead, which will auto creates a - transaction with the given name when any change happed in any opened document. + transaction with the given name when any change happened in any opened document. If more than one document is changed, all newly created transactions will have the same internal ID and will be undo/redo together. """ @@ -190,18 +194,17 @@ class Document(PropertyContainer): viewType: str = None, ) -> DocumentObject: """ - addObject(type, name=None, objProxy=None, viewProxy=None, attach=False, viewType=None) + Add an object to document. - Add an object to document - - type (String): the type of the document object to create. - name (String): the optional name of the new object. - objProxy (Object): the Python binding object to attach to the new document object. - viewProxy (Object): the Python binding object to attach the view provider of this object. - attach (Boolean): if True, then bind the document object first before adding to the document - to allow Python code to override view provider type. Once bound, and before adding to - the document, it will try to call Python binding object's attach(obj) method. - viewType (String): override the view provider type directly, only effective when attach is False. + Args: + type: the type of the document object to create. + name: the optional name of the new object. + objProxy: the Python binding object to attach to the new document object. + viewProxy: the Python binding object to attach the view provider of this object. + attach: if True, then bind the document object first before adding to the document + to allow Python code to override view provider type. Once bound, and before adding to + the document, it will try to call Python binding object's attach(obj) method. + viewType: override the view provider type directly, only effective when attach is False. """ ... @@ -216,22 +219,36 @@ class Document(PropertyContainer): read_only: bool = False, hidden: bool = False, locked: bool = False, - ) -> "Document": + ) -> Document: """ - addProperty(type: string, name: string, group="", doc="", attr=0, read_only=False, hidden=False, locked=False) -- Add a generic property. + Add a generic property. + + Args: + type: The type of the property to add. + name: The name of the property. + group: The group to which the property belongs. Defaults to "". + doc: The documentation string for the property. Defaults to "". + attr: Attribute flags for the property. Defaults to 0. + read_only: Whether the property is read-only. Defaults to False. + hidden: Whether the property is hidden. Defaults to False. + locked: Whether the property is locked. Defaults to False. + + Returns: + The document instance with the added property. """ ... - def removeProperty(self, string: str) -> None: + def removeProperty(self, name: str) -> None: """ - removeProperty(string) -- Remove a generic property. + Remove a generic property. + Note, you can only remove user-defined properties but not built-in ones. """ ... - def removeObject(self) -> None: + def removeObject(self, name: str) -> None: """ - Remove an object from the document + Remove an object from the document. """ ... @@ -241,15 +258,15 @@ class Document(PropertyContainer): *, recursive: bool = False, return_all: bool = False, - ) -> Tuple[DocumentObject, ...]: + ) -> tuple[DocumentObject, ...]: """ - copyObject(object, recursive=False, return_all=False) Copy an object or objects from another document to this document. - object: can either be a single object or sequence of objects - recursive: if True, also recursively copies internal objects - return_all: if True, returns all copied objects, or else return only the copied - object corresponding to the input objects. + Args: + object: can either be a single object or sequence of objects + recursive: if True, also recursively copies internal objects + return_all: if True, returns all copied objects, or else return only the copied + object corresponding to the input objects. """ ... @@ -257,18 +274,18 @@ class Document(PropertyContainer): self, object: DocumentObject, with_dependencies: bool = False ) -> DocumentObject: """ - moveObject(object, bool with_dependencies = False) Transfers an object from another document to this document. - object: can either a single object or sequence of objects - with_dependencies: if True, all internal dependent objects are copied too. + Args: + object: can either a single object or sequence of objects + with_dependencies: if True, all internal dependent objects are copied too. """ ... - def importLinks(self, object: DocumentObject = None) -> Tuple[DocumentObject, ...]: + def importLinks( + self, object: DocumentObject = None + ) -> tuple[DocumentObject, ...]: """ - importLinks(object|[object...]) - Import any externally linked object given a list of objects in this document. Any link type properties of the input objects will be automatically reassigned to the imported object @@ -326,9 +343,14 @@ class Document(PropertyContainer): """ ... - def recompute(self, objs: Sequence[DocumentObject] = None) -> int: + def recompute( + self, + objs: Sequence[DocumentObject] = None, + force: bool = False, + check_cycle: bool = False, + ) -> int: """ - recompute(objs=None): Recompute the document and returns the amount of recomputed features + Recompute the document and returns the amount of recomputed features. """ ... @@ -356,35 +378,49 @@ class Document(PropertyContainer): """ ... - def getObjectsByLabel(self, label: str) -> List[DocumentObject]: + def getObjectsByLabel(self, label: str) -> list[DocumentObject]: """ Return the objects with the given label name. + NOTE: It's possible that several objects have the same label name. """ ... def findObjects( - self, *, Type: str = None, Name: str = None, Label: str = None - ) -> List[DocumentObject]: + self, + *, + Type: str = None, + Name: str = None, + Label: str = None, + ) -> list[DocumentObject]: """ - findObjects([Type=string], [Name=string], [Label=string]) -> list Return a list of objects that match the specified type, name or label. + Name and label support regular expressions. All parameters are optional. + + Args: + Type: Type of the feature. + Name: Name + Label: Label """ ... def getLinksTo( - self, obj: DocumentObject, options: int = 0, maxCount: int = 0 - ) -> Tuple[DocumentObject, ...]: + self, + obj: DocumentObject, + options: int = 0, + maxCount: int = 0, + ) -> tuple[DocumentObject, ...]: """ - getLinksTo(obj, options=0, maxCount=0): return objects linked to 'obj' + Return objects linked to 'obj' - options: 1: recursive, 2: check link array. Options can combine. - maxCount: to limit the number of links returned + Args: + options: 1: recursive, 2: check link array. Options can combine. + maxCount: to limit the number of links returned. """ ... - def supportedTypes(self) -> List[str]: + def supportedTypes(self) -> list[str]: """ A list of supported types of objects """ @@ -396,12 +432,11 @@ class Document(PropertyContainer): """ ... - def getDependentDocuments(self, sort: bool = True) -> List[DocumentObject]: + def getDependentDocuments(self, sort: bool = True) -> list[DocumentObject]: """ - getDependentDocuments(sort=True) - Returns a list of documents that this document directly or indirectly links to including itself. - sort: whether to topologically sort the return list + Args: + sort: whether to topologically sort the return list """ ... From 802f62739e39767bfa6f298b81a013ef65251330 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Thu, 25 Sep 2025 20:43:33 -0500 Subject: [PATCH 04/20] [bindings] fix signatures in pyi files --- src/App/ApplicationDirectories.pyi | 14 +- src/App/ComplexGeoData.pyi | 12 +- src/App/Document.pyi | 45 +-- src/App/DocumentObject.pyi | 30 +- src/App/DocumentObjectExtension.pyi | 4 + src/App/DocumentObjectGroup.pyi | 4 + src/App/Extension.pyi | 4 + src/App/ExtensionContainer.pyi | 8 +- src/App/GeoFeature.pyi | 6 +- src/App/GeoFeatureGroupExtension.pyi | 4 + src/App/GroupExtension.pyi | 24 +- src/App/LinkBaseExtension.pyi | 24 +- src/App/Material.pyi | 6 +- src/App/MeasureManager.pyi | 6 +- src/App/Metadata.pyi | 48 +-- src/App/OriginGroupExtension.pyi | 4 + src/App/Part.pyi | 4 + src/App/PropertyContainer.pyi | 35 +- src/App/StringHasher.pyi | 12 +- src/App/StringID.pyi | 6 +- src/App/SuppressibleExtension.pyi | 4 + src/Base/Axis.pyi | 9 +- src/Base/BaseClass.pyi | 6 +- src/Base/BoundBox.pyi | 55 +-- src/Base/CoordinateSystem.pyi | 14 +- src/Base/Matrix.pyi | 48 +-- src/Base/Metadata.pyi | 4 +- src/Base/Persistence.pyi | 8 +- src/Base/Placement.pyi | 22 +- src/Base/Precision.pyi | 4 +- src/Base/PyObjectBase.pyi | 4 +- src/Base/Quantity.pyi | 24 +- src/Base/Rotation.pyi | 20 +- src/Base/Type.pyi | 14 +- src/Base/Unit.pyi | 4 +- src/Base/Vector.pyi | 38 ++- src/Gui/AxisOrigin.pyi | 8 +- src/Gui/Command.pyi | 16 +- src/Gui/Document.pyi | 31 +- src/Gui/LinkView.pyi | 57 ++-- src/Gui/PythonWorkbench.pyi | 4 + src/Gui/Selection/SelectionObject.pyi | 2 +- src/Gui/ViewProvider.pyi | 31 +- src/Gui/ViewProviderDocumentObject.pyi | 4 + src/Gui/ViewProviderExtension.pyi | 4 + src/Gui/ViewProviderGeometryObject.pyi | 4 + src/Gui/ViewProviderLink.pyi | 4 + src/Gui/Workbench.pyi | 4 + src/Mod/Assembly/App/AssemblyLink.pyi | 4 + src/Mod/Assembly/App/AssemblyObject.pyi | 4 + src/Mod/Assembly/App/BomGroup.pyi | 4 + src/Mod/Assembly/App/BomObject.pyi | 4 + src/Mod/Assembly/App/JointGroup.pyi | 4 + src/Mod/Assembly/App/SimulationGroup.pyi | 4 + src/Mod/Assembly/App/ViewGroup.pyi | 4 + src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 4 + src/Mod/CAM/App/Command.pyi | 4 +- src/Mod/CAM/PathSimulator/App/PathSim.pyi | 4 + src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 4 + src/Mod/Fem/App/FemMesh.pyi | 4 + src/Mod/Fem/App/FemPostBranchFilter.pyi | 4 + src/Mod/Fem/App/FemPostFilter.pyi | 4 + src/Mod/Fem/App/FemPostObject.pyi | 4 + src/Mod/Fem/App/FemPostPipeline.pyi | 4 + src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 4 + src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 4 + src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 4 + .../Fem/Gui/ViewProviderFemPostPipeline.pyi | 4 + src/Mod/Import/App/StepShape.pyi | 4 + src/Mod/Material/App/Array2D.pyi | 10 +- src/Mod/Material/App/Array3D.pyi | 10 +- src/Mod/Material/App/Material.pyi | 4 + src/Mod/Material/App/MaterialFilter.pyi | 4 + .../Material/App/MaterialFilterOptions.pyi | 4 + src/Mod/Material/App/MaterialLibrary.pyi | 4 + src/Mod/Material/App/MaterialManager.pyi | 4 + src/Mod/Material/App/MaterialProperty.pyi | 4 + src/Mod/Material/App/Model.pyi | 4 + src/Mod/Material/App/ModelManager.pyi | 4 + src/Mod/Material/App/ModelProperty.pyi | 4 + src/Mod/Material/App/UUIDs.pyi | 4 + src/Mod/Material/Gui/MaterialTreeWidget.pyi | 4 + src/Mod/Measure/App/MeasureBase.pyi | 4 + src/Mod/Measure/App/Measurement.pyi | 4 + src/Mod/Measure/Gui/QuickMeasure.pyi | 4 + src/Mod/Mesh/App/Edge.pyi | 4 + src/Mod/Mesh/App/Facet.pyi | 4 + src/Mod/Mesh/App/Mesh.pyi | 4 + src/Mod/Mesh/App/MeshFeature.pyi | 4 + src/Mod/Mesh/App/MeshPoint.pyi | 4 + src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 4 + src/Mod/Part/App/Arc.pyi | 4 + src/Mod/Part/App/ArcOfCircle.pyi | 4 + src/Mod/Part/App/ArcOfConic.pyi | 4 + src/Mod/Part/App/ArcOfEllipse.pyi | 4 + src/Mod/Part/App/ArcOfHyperbola.pyi | 4 + src/Mod/Part/App/ArcOfParabola.pyi | 4 + src/Mod/Part/App/AttachEngine.pyi | 20 +- src/Mod/Part/App/AttachExtension.pyi | 6 +- src/Mod/Part/App/BRepFeat/MakePrism.pyi | 4 + .../Part/App/BRepOffsetAPI_MakeFilling.pyi | 36 +- .../Part/App/BRepOffsetAPI_MakePipeShell.pyi | 32 +- src/Mod/Part/App/BSplineCurve.pyi | 56 +-- src/Mod/Part/App/BSplineSurface.pyi | 72 ++-- src/Mod/Part/App/BezierCurve.pyi | 27 +- src/Mod/Part/App/BezierSurface.pyi | 38 ++- src/Mod/Part/App/BodyBase.pyi | 4 + src/Mod/Part/App/BoundedCurve.pyi | 4 + .../Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 6 +- src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 8 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 10 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi | 8 +- src/Mod/Part/App/Circle.pyi | 4 + src/Mod/Part/App/Cone.pyi | 4 + src/Mod/Part/App/Conic.pyi | 4 + src/Mod/Part/App/Cylinder.pyi | 4 + src/Mod/Part/App/Ellipse.pyi | 4 + src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 4 + src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 4 + src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 4 + src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 4 + src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 4 + src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi | 58 ++-- src/Mod/Part/App/Geom2d/BezierCurve2d.pyi | 24 +- src/Mod/Part/App/Geom2d/Circle2d.pyi | 4 + src/Mod/Part/App/Geom2d/Conic2d.pyi | 4 + src/Mod/Part/App/Geom2d/Curve2d.pyi | 54 ++- src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 4 + src/Mod/Part/App/Geom2d/Geometry2d.pyi | 4 + src/Mod/Part/App/Geom2d/Hyperbola2d.pyi | 4 + src/Mod/Part/App/Geom2d/Line2d.pyi | 4 + src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 4 + src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi | 4 + src/Mod/Part/App/Geom2d/Parabola2d.pyi | 4 + .../Part/App/GeomPlate/BuildPlateSurface.pyi | 4 + .../Part/App/GeomPlate/CurveConstraint.pyi | 4 + .../Part/App/GeomPlate/PointConstraint.pyi | 20 +- src/Mod/Part/App/Geometry.pyi | 30 +- src/Mod/Part/App/GeometryBoolExtension.pyi | 4 + src/Mod/Part/App/GeometryCurve.pyi | 53 +-- src/Mod/Part/App/GeometryDoubleExtension.pyi | 4 + src/Mod/Part/App/GeometryExtension.pyi | 4 + src/Mod/Part/App/GeometryIntExtension.pyi | 4 + src/Mod/Part/App/GeometryStringExtension.pyi | 4 + src/Mod/Part/App/GeometrySurface.pyi | 28 +- src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 22 +- src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 14 +- src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 26 +- src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 22 +- src/Mod/Part/App/Hyperbola.pyi | 4 + src/Mod/Part/App/Line.pyi | 4 + src/Mod/Part/App/LineSegment.pyi | 4 + src/Mod/Part/App/OffsetCurve.pyi | 4 + src/Mod/Part/App/OffsetSurface.pyi | 4 + src/Mod/Part/App/Parabola.pyi | 6 +- src/Mod/Part/App/Part2DObject.pyi | 4 + src/Mod/Part/App/PartFeature.pyi | 4 + src/Mod/Part/App/Plane.pyi | 4 + src/Mod/Part/App/PlateSurface.pyi | 4 + src/Mod/Part/App/Point.pyi | 4 + .../Part/App/RectangularTrimmedSurface.pyi | 6 +- src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 4 + .../App/ShapeFix/ShapeFix_EdgeConnect.pyi | 10 +- src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi | 4 + .../App/ShapeFix/ShapeFix_FaceConnect.pyi | 8 +- .../App/ShapeFix/ShapeFix_FixSmallFace.pyi | 4 + .../App/ShapeFix/ShapeFix_FixSmallSolid.pyi | 6 +- .../Part/App/ShapeFix/ShapeFix_FreeBounds.pyi | 4 + src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 4 + src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi | 4 + .../App/ShapeFix/ShapeFix_ShapeTolerance.pyi | 24 +- src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi | 4 + src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi | 4 + .../ShapeFix/ShapeFix_SplitCommonVertex.pyi | 4 + .../Part/App/ShapeFix/ShapeFix_SplitTool.pyi | 4 + src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 16 +- .../Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 4 + .../Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 4 + .../Part/App/ShapeUpgrade/UnifySameDomain.pyi | 4 + src/Mod/Part/App/Sphere.pyi | 4 + src/Mod/Part/App/SurfaceOfExtrusion.pyi | 4 + src/Mod/Part/App/SurfaceOfRevolution.pyi | 4 + src/Mod/Part/App/TopoShape.pyi | 165 +++++---- src/Mod/Part/App/TopoShapeCompSolid.pyi | 6 +- src/Mod/Part/App/TopoShapeCompound.pyi | 10 +- src/Mod/Part/App/TopoShapeEdge.pyi | 36 +- src/Mod/Part/App/TopoShapeFace.pyi | 28 +- src/Mod/Part/App/TopoShapeShell.pyi | 8 +- src/Mod/Part/App/TopoShapeSolid.pyi | 15 +- src/Mod/Part/App/TopoShapeVertex.pyi | 4 + src/Mod/Part/App/TopoShapeWire.pyi | 15 +- src/Mod/Part/App/Toroid.pyi | 4 + src/Mod/Part/App/TrimmedCurve.pyi | 6 +- src/Mod/Part/Gui/ViewProviderPartExt.pyi | 4 + src/Mod/PartDesign/App/Body.pyi | 6 +- src/Mod/PartDesign/App/Feature.pyi | 4 + src/Mod/PartDesign/Gui/ViewProvider.pyi | 8 +- src/Mod/Points/App/Points.pyi | 4 + src/Mod/Robot/App/Robot6Axis.pyi | 4 + src/Mod/Robot/App/RobotObject.pyi | 4 + src/Mod/Robot/App/Trajectory.pyi | 4 + src/Mod/Robot/App/Waypoint.pyi | 4 + src/Mod/Sketcher/App/Constraint.pyi | 4 + .../App/ExternalGeometryExtension.pyi | 4 + .../Sketcher/App/ExternalGeometryFacade.pyi | 4 + src/Mod/Sketcher/App/GeometryFacade.pyi | 26 +- src/Mod/Sketcher/App/Sketch.pyi | 7 +- .../Sketcher/App/SketchGeometryExtension.pyi | 4 + src/Mod/Sketcher/App/SketchObject.pyi | 108 +++--- src/Mod/Sketcher/App/SketchObjectSF.pyi | 4 + .../ViewProviderSketchGeometryExtension.pyi | 4 + .../Spreadsheet/App/PropertyColumnWidths.pyi | 4 + .../Spreadsheet/App/PropertyRowHeights.pyi | 4 + src/Mod/Spreadsheet/App/PropertySheet.pyi | 4 + src/Mod/Spreadsheet/App/Sheet.pyi | 4 + .../Gui/ViewProviderSpreadsheet.pyi | 4 + src/Mod/Surface/App/Blending/BlendCurve.pyi | 4 +- src/Mod/Surface/App/Blending/BlendPoint.pyi | 4 +- src/Mod/TechDraw/App/CenterLine.pyi | 4 + src/Mod/TechDraw/App/CosmeticEdge.pyi | 4 + src/Mod/TechDraw/App/CosmeticExtension.pyi | 4 + src/Mod/TechDraw/App/CosmeticVertex.pyi | 4 + src/Mod/TechDraw/App/DrawBrokenView.pyi | 4 + src/Mod/TechDraw/App/DrawGeomHatch.pyi | 4 + src/Mod/TechDraw/App/DrawHatch.pyi | 4 + src/Mod/TechDraw/App/DrawLeaderLine.pyi | 4 + src/Mod/TechDraw/App/DrawPage.pyi | 4 + .../TechDraw/App/DrawParametricTemplate.pyi | 4 + src/Mod/TechDraw/App/DrawProjGroup.pyi | 4 + src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 4 + src/Mod/TechDraw/App/DrawRichAnno.pyi | 4 + src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 4 + src/Mod/TechDraw/App/DrawTemplate.pyi | 4 + src/Mod/TechDraw/App/DrawTile.pyi | 4 + src/Mod/TechDraw/App/DrawTileWeld.pyi | 4 + src/Mod/TechDraw/App/DrawView.pyi | 4 + src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 4 + src/Mod/TechDraw/App/DrawViewClip.pyi | 4 + src/Mod/TechDraw/App/DrawViewCollection.pyi | 4 + src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 4 + src/Mod/TechDraw/App/DrawViewDimension.pyi | 4 + src/Mod/TechDraw/App/DrawViewPart.pyi | 4 + src/Mod/TechDraw/App/DrawViewSymbol.pyi | 4 + src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 4 + src/Mod/TechDraw/App/GeomFormat.pyi | 4 + .../bindings/model/generateModel_Python.py | 321 +++++++++++++----- src/Tools/bindings/model/typedModel.py | 16 + 247 files changed, 2001 insertions(+), 897 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index 11776c7009..01dd557124 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -13,7 +13,7 @@ class ApplicationDirectories(PyObjectBase): """ @staticmethod - def usingCurrentVersionConfig(path: str) -> bool: + def usingCurrentVersionConfig(path: str, /) -> bool: """ Determine if a given config path is for the current version of the program. @@ -23,7 +23,7 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def migrateAllPaths(paths: list[str]) -> None: + def migrateAllPaths(paths: list[str], /) -> None: """ Migrate a set of versionable configuration directories from the given paths to a new version. @@ -47,7 +47,7 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def versionStringForPath(major: int, minor: int) -> str: + def versionStringForPath(major: int, minor: int, /) -> str: """ Given a major and minor version number. @@ -62,7 +62,7 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def isVersionedPath(startingPath: str) -> bool: + def isVersionedPath(startingPath: str, /) -> bool: """ Determine if a given path is versioned. @@ -80,7 +80,7 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def mostRecentAvailableConfigVersion(startingPath: str) -> str: + def mostRecentAvailableConfigVersion(startingPath: str, /) -> str: """ Given a base path that is expected to contain versioned subdirectories, locate the directory name (*not* the path, only the final component, the version string itself) @@ -97,7 +97,7 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def mostRecentConfigFromBase(startingPath: str) -> str: + def mostRecentConfigFromBase(startingPath: str, /) -> str: """ Given a base path that is expected to contained versioned subdirectories, locate the directory corresponding to the most recent version of the software, up to and including @@ -113,7 +113,7 @@ class ApplicationDirectories(PyObjectBase): ... @staticmethod - def migrateConfig(oldPath: str, newPath: str) -> None: + def migrateConfig(oldPath: str, newPath: str, /) -> None: """ A utility method to copy all files and directories from oldPath to newPath, handling the case where newPath might itself be a subdirectory of oldPath (and *not* attempting that diff --git a/src/App/ComplexGeoData.pyi b/src/App/ComplexGeoData.pyi index d1407c2e3e..92282643ae 100644 --- a/src/App/ComplexGeoData.pyi +++ b/src/App/ComplexGeoData.pyi @@ -74,19 +74,19 @@ class ComplexGeoData(Persistence): """ ... - def applyTranslation(self, translation: Vector) -> None: + def applyTranslation(self, translation: Vector, /) -> None: """ Apply an additional translation to the placement """ ... - def applyRotation(self, rotation: Rotation) -> None: + def applyRotation(self, rotation: Rotation, /) -> None: """ Apply an additional rotation to the placement """ ... - def transformGeometry(self, transformation: Matrix) -> None: + def transformGeometry(self, transformation: Matrix, /) -> None: """ Apply a transformation to the underlying geometry """ @@ -117,21 +117,21 @@ class ComplexGeoData(Persistence): ... @constmethod - def getElementName(self, name: str, direction: int = 0) -> str: + def getElementName(self, name: str, direction: int = 0, /) -> str: """ Return a mapped element name or reverse. """ ... @constmethod - def getElementIndexedName(self, name: str) -> str | tuple[str, list[int]]: + def getElementIndexedName(self, name: str, /) -> str | tuple[str, list[int]]: """ Return the indexed element name. """ ... @constmethod - def getElementMappedName(self, name: str) -> str | tuple[str, list[int]]: + def getElementMappedName(self, name: str, /) -> str | tuple[str, list[int]]: """ Return the mapped element name """ diff --git a/src/App/Document.pyi b/src/App/Document.pyi index 109fbb7436..ddf0451495 100644 --- a/src/App/Document.pyi +++ b/src/App/Document.pyi @@ -89,19 +89,19 @@ class Document(PropertyContainer): """ ... - def saveAs(self, path: str) -> None: + def saveAs(self, path: str, /) -> None: """ Save the document under a new name to disk. """ ... - def saveCopy(self, path: str) -> None: + def saveCopy(self, path: str, /) -> None: """ Save a copy of the document under a new name to disk. """ ... - def load(self, path: str) -> None: + def load(self, path: str, /) -> None: """ Load the document from the given path. """ @@ -132,7 +132,7 @@ class Document(PropertyContainer): """ ... - def getUniqueObjectName(self, objName: str) -> str: + def getUniqueObjectName(self, objName: str, /) -> str: """ Return the same name, or the name made unique, for Example Box -> Box002 if there are conflicting name already in the document. @@ -145,13 +145,13 @@ class Document(PropertyContainer): """ ... - def mergeProject(self, path: str) -> None: + def mergeProject(self, path: str, /) -> None: """ Merges this document with another project file. """ ... - def exportGraphviz(self, path: str = None) -> str | None: + def exportGraphviz(self, path: str = None, /) -> str | None: """ Export the dependencies of the objects as graph. @@ -159,7 +159,7 @@ class Document(PropertyContainer): """ ... - def openTransaction(self, name: str) -> None: + def openTransaction(self, name: str, /) -> None: """ Open a new Undo/Redo transaction. @@ -185,7 +185,6 @@ class Document(PropertyContainer): def addObject( self, - *, type: str, name: str = None, objProxy: object = None, @@ -210,7 +209,6 @@ class Document(PropertyContainer): def addProperty( self, - *, type: str, name: str, group: str = "", @@ -219,7 +217,8 @@ class Document(PropertyContainer): read_only: bool = False, hidden: bool = False, locked: bool = False, - ) -> Document: + enum_vals: list[str] | None = None, + ) -> Document: """ Add a generic property. @@ -238,7 +237,7 @@ class Document(PropertyContainer): """ ... - def removeProperty(self, name: str) -> None: + def removeProperty(self, name: str, /) -> None: """ Remove a generic property. @@ -246,7 +245,7 @@ class Document(PropertyContainer): """ ... - def removeObject(self, name: str) -> None: + def removeObject(self, name: str, /) -> None: """ Remove an object from the document. """ @@ -271,7 +270,10 @@ class Document(PropertyContainer): ... def moveObject( - self, object: DocumentObject, with_dependencies: bool = False + self, + object: DocumentObject, + with_dependencies: bool = False, + /, ) -> DocumentObject: """ Transfers an object from another document to this document. @@ -283,7 +285,9 @@ class Document(PropertyContainer): ... def importLinks( - self, object: DocumentObject = None + self, + object: DocumentObject = None, + /, ) -> tuple[DocumentObject, ...]: """ Import any externally linked object given a list of objects in @@ -319,7 +323,7 @@ class Document(PropertyContainer): """ ... - def setClosable(self, closable: bool) -> None: + def setClosable(self, closable: bool, /) -> None: """ Set a flag that allows or forbids to close a document """ @@ -331,7 +335,7 @@ class Document(PropertyContainer): """ ... - def setAutoCreated(self, autoCreated: bool) -> None: + def setAutoCreated(self, autoCreated: bool, /) -> None: """ Set a flag that indicates if a document is autoCreated """ @@ -348,6 +352,7 @@ class Document(PropertyContainer): objs: Sequence[DocumentObject] = None, force: bool = False, check_cycle: bool = False, + /, ) -> int: """ Recompute the document and returns the amount of recomputed features. @@ -372,13 +377,13 @@ class Document(PropertyContainer): """ ... - def getObject(self, name: str) -> DocumentObject: + def getObject(self, name: str, /) -> DocumentObject: """ Return the object with the given name """ ... - def getObjectsByLabel(self, label: str) -> list[DocumentObject]: + def getObjectsByLabel(self, label: str, /) -> list[DocumentObject]: """ Return the objects with the given label name. @@ -388,7 +393,6 @@ class Document(PropertyContainer): def findObjects( self, - *, Type: str = None, Name: str = None, Label: str = None, @@ -410,6 +414,7 @@ class Document(PropertyContainer): obj: DocumentObject, options: int = 0, maxCount: int = 0, + /, ) -> tuple[DocumentObject, ...]: """ Return objects linked to 'obj' @@ -432,7 +437,7 @@ class Document(PropertyContainer): """ ... - def getDependentDocuments(self, sort: bool = True) -> list[DocumentObject]: + def getDependentDocuments(self, sort: bool = True, /) -> list[DocumentObject]: """ Returns a list of documents that this document directly or indirectly links to including itself. diff --git a/src/App/DocumentObject.pyi b/src/App/DocumentObject.pyi index 106ef5ebbc..917cbcdff4 100644 --- a/src/App/DocumentObject.pyi +++ b/src/App/DocumentObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import constmethod from Base.Matrix import Matrix from Document import Document @@ -79,7 +83,7 @@ class DocumentObject(ExtensionContainer): """ ... - def removeProperty(self, string: str) -> None: + def removeProperty(self, string: str, /) -> None: """ removeProperty(string) -- Remove a generic property. @@ -111,26 +115,26 @@ class DocumentObject(ExtensionContainer): """ ... - def setExpression(self, name: str, expression: str) -> None: + def setExpression(self, name: str, expression: str, /) -> None: """ Register an expression for a property """ ... - def clearExpression(self, name: str) -> None: + def clearExpression(self, name: str, /) -> None: """ Clear the expression for a property """ ... @classmethod - def evalExpression(cls, expression: str) -> Any: + def evalExpression(cls, expression: str, /) -> Any: """ Evaluate an expression """ ... - def recompute(self, recursive: bool = False) -> None: + def recompute(self, recursive: bool = False, /) -> None: """ recompute(recursive=False): Recomputes this object """ @@ -191,7 +195,7 @@ class DocumentObject(ExtensionContainer): """ ... - def getSubObjectList(self, subname: str) -> list: + def getSubObjectList(self, subname: str, /) -> list: """ getSubObjectList(subname) @@ -199,7 +203,7 @@ class DocumentObject(ExtensionContainer): """ ... - def getSubObjects(self, reason: int = 0) -> list: + def getSubObjects(self, reason: int = 0, /) -> list: """ getSubObjects(reason=0): Return subname reference of all sub-objects """ @@ -229,14 +233,14 @@ class DocumentObject(ExtensionContainer): """ ... - def setElementVisible(self, element: str, visible: bool) -> int: + def setElementVisible(self, element: str, visible: bool, /) -> int: """ setElementVisible(element,visible): Set the visibility of a child element Return -1 if element visibility is not supported, 0 if element not found, 1 if success """ ... - def isElementVisible(self, element: str) -> int: + def isElementVisible(self, element: str, /) -> int: """ isElementVisible(element): Check if a child element is visible Return -1 if element visibility is not supported or element not found, 0 if invisible, or else 1 @@ -283,7 +287,7 @@ class DocumentObject(ExtensionContainer): ... @constmethod - def resolve(self, subname: str) -> tuple: + def resolve(self, subname: str, /) -> tuple: """ resolve(subname) -- resolve the sub object @@ -296,7 +300,7 @@ class DocumentObject(ExtensionContainer): ... @constmethod - def resolveSubElement(self, subname: str, append: bool, type: int) -> tuple: + def resolveSubElement(self, subname: str, append: bool, type: int, /) -> tuple: """ resolveSubElement(subname,append,type) -- resolve both new and old style sub element @@ -308,14 +312,14 @@ class DocumentObject(ExtensionContainer): """ ... - def adjustRelativeLinks(self, parent: DocumentObject, recursive: bool = True) -> bool: + def adjustRelativeLinks(self, parent: DocumentObject, recursive: bool = True, /) -> bool: """ adjustRelativeLinks(parent,recursive=True) -- auto correct potential cyclic dependencies """ ... @constmethod - def getElementMapVersion(self, property_name: str) -> str: + def getElementMapVersion(self, property_name: str, /) -> str: """ getElementMapVersion(property_name): return element map version of a given geometry property """ diff --git a/src/App/DocumentObjectExtension.pyi b/src/App/DocumentObjectExtension.pyi index 0709e77844..651ef55bb9 100644 --- a/src/App/DocumentObjectExtension.pyi +++ b/src/App/DocumentObjectExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Extension import Extension diff --git a/src/App/DocumentObjectGroup.pyi b/src/App/DocumentObjectGroup.pyi index 82529d9e14..2b9d92fe8e 100644 --- a/src/App/DocumentObjectGroup.pyi +++ b/src/App/DocumentObjectGroup.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from DocumentObject import DocumentObject diff --git a/src/App/Extension.pyi b/src/App/Extension.pyi index 0005862c31..282d53acca 100644 --- a/src/App/Extension.pyi +++ b/src/App/Extension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Final, Any from Base.PyObjectBase import PyObjectBase diff --git a/src/App/ExtensionContainer.pyi b/src/App/ExtensionContainer.pyi index f71ebeb540..ecf688249f 100644 --- a/src/App/ExtensionContainer.pyi +++ b/src/App/ExtensionContainer.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from PropertyContainer import PropertyContainer @@ -13,14 +17,14 @@ class ExtensionContainer(PropertyContainer): Licence: LGPL """ - def addExtension(self, identifier: str) -> None: + def addExtension(self, identifier: str, /) -> None: """ Adds an extension to the object. Requires the string identifier for the python extension as argument """ ... @constmethod - def hasExtension(self, identifier: str) -> bool: + def hasExtension(self, identifier: str, /) -> bool: """ Returns if this object has the specified extension """ diff --git a/src/App/GeoFeature.pyi b/src/App/GeoFeature.pyi index d98cef96a4..0c96ddaa88 100644 --- a/src/App/GeoFeature.pyi +++ b/src/App/GeoFeature.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from DocumentObject import DocumentObject from Base import Placement from typing import Any, Final, Optional @@ -39,7 +43,7 @@ class GeoFeature(DocumentObject): ... @staticmethod - def getGlobalPlacementOf(targetObj: Any, rootObj: Any, subname: str) -> Placement: + def getGlobalPlacementOf(targetObj: Any, rootObj: Any, subname: str, /) -> Placement: """ getGlobalPlacementOf(targetObj, rootObj, subname) -> Base.Placement Selection example: obj = "part1" sub = "linkToPart2.LinkToBody.Pad.face1" diff --git a/src/App/GeoFeatureGroupExtension.pyi b/src/App/GeoFeatureGroupExtension.pyi index 50b5d657e3..756cac6efc 100644 --- a/src/App/GeoFeatureGroupExtension.pyi +++ b/src/App/GeoFeatureGroupExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from GroupExtension import GroupExtension diff --git a/src/App/GroupExtension.pyi b/src/App/GroupExtension.pyi index d5d66a924b..e88a879ae2 100644 --- a/src/App/GroupExtension.pyi +++ b/src/App/GroupExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from DocumentObjectExtension import DocumentObjectExtension from typing import Any, List @@ -13,37 +17,37 @@ class GroupExtension(DocumentObjectExtension): Licence: LGPL """ - def newObject(self, type: str, name: str) -> Any: + def newObject(self, type: str, name: str, /) -> Any: """ Create and add an object with given type and name to the group """ ... - def addObject(self, obj: Any) -> List[Any]: + def addObject(self, obj: Any, /) -> List[Any]: """ Add an object to the group. Returns all objects that have been added. """ ... - def addObjects(self, objects: List[Any]) -> List[Any]: + def addObjects(self, objects: List[Any], /) -> List[Any]: """ Adds multiple objects to the group. Expects a list and returns all objects that have been added. """ ... - def setObjects(self, objects: List[Any]) -> List[Any]: + def setObjects(self, objects: List[Any], /) -> List[Any]: """ Sets the objects of the group. Expects a list and returns all objects that are now in the group. """ ... - def removeObject(self, obj: Any) -> List[Any]: + def removeObject(self, obj: Any, /) -> List[Any]: """ Remove an object from the group and returns all objects that have been removed. """ ... - def removeObjects(self, objects: List[Any]) -> List[Any]: + def removeObjects(self, objects: List[Any], /) -> List[Any]: """ Remove multiple objects from the group. Expects a list and returns all objects that have been removed. """ @@ -55,20 +59,20 @@ class GroupExtension(DocumentObjectExtension): """ ... - def getObject(self, name: str) -> Any: + def getObject(self, name: str, /) -> Any: """ Return the object with the given name """ ... - def getObjectsOfType(self, typename: str) -> List[Any]: + def getObjectsOfType(self, typename: str, /) -> List[Any]: """ Returns all object in the group of given type @param typename The Freecad type identifier """ ... - def hasObject(self, obj: Any, recursive: bool = False) -> bool: + def hasObject(self, obj: Any, recursive: bool = False, /) -> bool: """ hasObject(obj, recursive=false) @@ -78,7 +82,7 @@ class GroupExtension(DocumentObjectExtension): """ ... - def allowObject(self, obj: Any) -> bool: + def allowObject(self, obj: Any, /) -> bool: """ Returns true if obj is allowed in the group extension. """ diff --git a/src/App/LinkBaseExtension.pyi b/src/App/LinkBaseExtension.pyi index 817f85e9e8..cb8a760194 100644 --- a/src/App/LinkBaseExtension.pyi +++ b/src/App/LinkBaseExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from DocumentObjectExtension import DocumentObjectExtension from typing import Any, Final, List, Tuple, Optional, Union, overload @@ -41,31 +45,31 @@ class LinkBaseExtension(DocumentObjectExtension): """ ... - def getLinkExtProperty(self, name: str) -> Any: + def getLinkExtProperty(self, name: str, /) -> Any: """ getLinkExtProperty(name): return the property value by its predefined name """ ... - def getLinkExtPropertyName(self, name: str) -> str: + def getLinkExtPropertyName(self, name: str, /) -> str: """ 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: + def getLinkPropertyInfo(self, arg: Any = None, /) -> tuple: """ getLinkPropertyInfo(): return a tuple of (name,type,doc) for all supported properties. @@ -75,7 +79,7 @@ class LinkBaseExtension(DocumentObjectExtension): """ ... - def setLink(self, obj: Any, subName: Optional[str] = None, subElements: Optional[Union[str, Tuple[str, ...]]] = None) -> None: + def setLink(self, obj: Any, subName: Optional[str] = None, subElements: Optional[Union[str, Tuple[str, ...]]] = None, /) -> None: """ setLink(obj,subName=None,subElements=None): Set link object. @@ -92,7 +96,7 @@ class LinkBaseExtension(DocumentObjectExtension): """ ... - def cacheChildLabel(self, enable: bool = True) -> None: + def cacheChildLabel(self, enable: bool = True, /) -> None: """ cacheChildLabel(enable=True): enable/disable child label cache @@ -101,7 +105,7 @@ class LinkBaseExtension(DocumentObjectExtension): """ ... - def flattenSubname(self, subname: str) -> str: + def flattenSubname(self, subname: str, /) -> str: """ flattenSubname(subname) -> string @@ -109,7 +113,7 @@ class LinkBaseExtension(DocumentObjectExtension): """ ... - def expandSubname(self, subname: str) -> str: + def expandSubname(self, subname: str, /) -> str: """ expandSubname(subname) -> string diff --git a/src/App/Material.pyi b/src/App/Material.pyi index d62eb097aa..cb89414f46 100644 --- a/src/App/Material.pyi +++ b/src/App/Material.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Any, overload @@ -25,7 +29,7 @@ class Material(PyObjectBase): def __init__(self, *args: Any, **kwargs: Any) -> None: ... - def set(self, string: str) -> None: + def set(self, string: str, /) -> None: """ Set(string) -- Set the material. diff --git a/src/App/MeasureManager.pyi b/src/App/MeasureManager.pyi index 6a7dd43b16..43c6d033bd 100644 --- a/src/App/MeasureManager.pyi +++ b/src/App/MeasureManager.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, no_args from Base.PyObjectBase import PyObjectBase from typing import List, Tuple, TypeAlias @@ -21,7 +25,7 @@ class MeasureManager(PyObjectBase): """ @staticmethod - def addMeasureType(id: str, label: str, measureType: MeasureType) -> None: + def addMeasureType(id: str, label: str, measureType: MeasureType, /) -> None: """ addMeasureType(id, label, measureType) -> None diff --git a/src/App/Metadata.pyi b/src/App/Metadata.pyi index 3fcd38198f..e09cf27193 100644 --- a/src/App/Metadata.pyi +++ b/src/App/Metadata.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Any, List, Dict, overload, Optional @@ -217,7 +221,7 @@ class Metadata(PyObjectBase): """ ... - def getGenericMetadata(self, name: str) -> List[Any]: + def getGenericMetadata(self, name: str, /) -> List[Any]: """ getGenericMetadata(name) -> list @@ -228,7 +232,7 @@ class Metadata(PyObjectBase): """ ... - def addContentItem(self, content_type: str, metadata: "Metadata") -> None: + def addContentItem(self, content_type: str, metadata: "Metadata", /) -> None: """ addContentItem(content_type,metadata) @@ -236,7 +240,7 @@ class Metadata(PyObjectBase): """ ... - def removeContentItem(self, content_type: str, name: str) -> None: + def removeContentItem(self, content_type: str, name: str, /) -> None: """ removeContentItem(content_type,name) @@ -244,7 +248,7 @@ class Metadata(PyObjectBase): """ ... - def addMaintainer(self, name: str, email: str) -> None: + def addMaintainer(self, name: str, email: str, /) -> None: """ addMaintainer(name, email) @@ -252,7 +256,7 @@ class Metadata(PyObjectBase): """ ... - def removeMaintainer(self, name: str, email: str) -> None: + def removeMaintainer(self, name: str, email: str, /) -> None: """ removeMaintainer(name, email) @@ -260,7 +264,7 @@ class Metadata(PyObjectBase): """ ... - def addLicense(self, short_code: str, path: str) -> None: + def addLicense(self, short_code: str, path: str, /) -> None: """ addLicense(short_code,path) @@ -268,7 +272,7 @@ class Metadata(PyObjectBase): """ ... - def removeLicense(self, short_code: str) -> None: + def removeLicense(self, short_code: str, /) -> None: """ removeLicense(short_code) @@ -276,7 +280,7 @@ class Metadata(PyObjectBase): """ ... - def addUrl(self, url_type: str, url: str, branch: str) -> None: + def addUrl(self, url_type: str, url: str, branch: str, /) -> None: """ addUrl(url_type,url,branch) @@ -288,7 +292,7 @@ class Metadata(PyObjectBase): """ ... - def removeUrl(self, url_type: str, url: str) -> None: + def removeUrl(self, url_type: str, url: str, /) -> None: """ removeUrl(url_type,url) @@ -296,7 +300,7 @@ class Metadata(PyObjectBase): """ ... - def addAuthor(self, name: str, email: str) -> None: + def addAuthor(self, name: str, email: str, /) -> None: """ addAuthor(name, email) @@ -304,7 +308,7 @@ class Metadata(PyObjectBase): """ ... - def removeAuthor(self, name: str, email: str) -> None: + def removeAuthor(self, name: str, email: str, /) -> None: """ removeAuthor(name, email) @@ -312,7 +316,7 @@ class Metadata(PyObjectBase): """ ... - def addDepend(self, name: str, kind: str, optional: bool) -> None: + def addDepend(self, name: str, kind: str, optional: bool, /) -> None: """ addDepend(name, kind, optional) @@ -322,7 +326,7 @@ class Metadata(PyObjectBase): """ ... - def removeDepend(self, name: str, kind: str) -> None: + def removeDepend(self, name: str, kind: str, /) -> None: """ removeDepend(name, kind) @@ -332,7 +336,7 @@ class Metadata(PyObjectBase): """ ... - def addConflict(self, name: str, kind: str) -> None: + def addConflict(self, name: str, kind: str, /) -> None: """ addConflict(name, kind) @@ -340,7 +344,7 @@ class Metadata(PyObjectBase): """ ... - def removeConflict(self, name: str, kind: str) -> None: + def removeConflict(self, name: str, kind: str, /) -> None: """ removeConflict(name, kind) @@ -348,7 +352,7 @@ class Metadata(PyObjectBase): """ ... - def addReplace(self, name: str) -> None: + def addReplace(self, name: str, /) -> None: """ addReplace(name) @@ -356,7 +360,7 @@ class Metadata(PyObjectBase): """ ... - def removeReplace(self, name: str) -> None: + def removeReplace(self, name: str, /) -> None: """ removeReplace(name) @@ -364,7 +368,7 @@ class Metadata(PyObjectBase): """ ... - def addTag(self, tag: str) -> None: + def addTag(self, tag: str, /) -> None: """ addTag(tag) @@ -372,7 +376,7 @@ class Metadata(PyObjectBase): """ ... - def removeTag(self, tag: str) -> None: + def removeTag(self, tag: str, /) -> None: """ removeTag(tag) @@ -380,7 +384,7 @@ class Metadata(PyObjectBase): """ ... - def addFile(self, filename: str) -> None: + def addFile(self, filename: str, /) -> None: """ addFile(filename) @@ -388,7 +392,7 @@ class Metadata(PyObjectBase): """ ... - def removeFile(self, filename: str) -> None: + def removeFile(self, filename: str, /) -> None: """ removeFile(filename) @@ -396,7 +400,7 @@ class Metadata(PyObjectBase): """ ... - def write(self, filename: str) -> None: + def write(self, filename: str, /) -> None: """ write(filename) diff --git a/src/App/OriginGroupExtension.pyi b/src/App/OriginGroupExtension.pyi index 85c70fe831..499b2a1a65 100644 --- a/src/App/OriginGroupExtension.pyi +++ b/src/App/OriginGroupExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from GeoFeatureGroupExtension import GeoFeatureGroupExtension diff --git a/src/App/Part.pyi b/src/App/Part.pyi index c0e0b9768c..4146df2c33 100644 --- a/src/App/Part.pyi +++ b/src/App/Part.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from GeoFeature import GeoFeature diff --git a/src/App/PropertyContainer.pyi b/src/App/PropertyContainer.pyi index 8226fc7e55..62e4fcef12 100644 --- a/src/App/PropertyContainer.pyi +++ b/src/App/PropertyContainer.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Persistence import Persistence from typing import Any, Final, Union, List, Optional @@ -14,7 +18,7 @@ class PropertyContainer(Persistence): PropertiesList: Final[list] = [] """A list of all property names.""" - def getPropertyByName(self, name: str, checkOwner: int = 0) -> Any: + def getPropertyByName(self, name: str, checkOwner: int = 0, /) -> Any: """ getPropertyByName(name, checkOwner=0) -> object or Tuple @@ -30,7 +34,7 @@ class PropertyContainer(Persistence): """ ... - def getPropertyTouchList(self, name: str) -> tuple: + def getPropertyTouchList(self, name: str, /) -> tuple: """ getPropertyTouchList(name) -> tuple @@ -41,7 +45,7 @@ class PropertyContainer(Persistence): """ ... - def getTypeOfProperty(self, name: str) -> list: + def getTypeOfProperty(self, name: str, /) -> list: """ getTypeOfProperty(name) -> list @@ -53,7 +57,7 @@ class PropertyContainer(Persistence): """ ... - def getTypeIdOfProperty(self, name: str) -> str: + def getTypeIdOfProperty(self, name: str, /) -> str: """ getTypeIdOfProperty(name) -> str @@ -64,7 +68,7 @@ class PropertyContainer(Persistence): """ ... - def setEditorMode(self, name: str, type: Union[int, List[str]]) -> None: + def setEditorMode(self, name: str, type: Union[int, List[str]], /) -> None: """ setEditorMode(name, type) -> None @@ -79,7 +83,7 @@ class PropertyContainer(Persistence): """ ... - def getEditorMode(self, name: str) -> list: + def getEditorMode(self, name: str, /) -> list: """ getEditorMode(name) -> list @@ -95,7 +99,7 @@ class PropertyContainer(Persistence): """ ... - def getGroupOfProperty(self, name: str) -> str: + def getGroupOfProperty(self, name: str, /) -> str: """ getGroupOfProperty(name) -> str @@ -107,7 +111,7 @@ class PropertyContainer(Persistence): """ ... - def setGroupOfProperty(self, name: str, group: str) -> None: + def setGroupOfProperty(self, name: str, group: str, /) -> None: """ setGroupOfProperty(name, group) -> None @@ -121,8 +125,7 @@ class PropertyContainer(Persistence): ... def setPropertyStatus( - self, name: str, val: Union[int, str, List[Union[str, int]]] - ) -> None: + self, name: str, val: Union[int, str, List[Union[str, int]]], /) -> None: """ setPropertyStatus(name, val) -> None @@ -136,7 +139,7 @@ class PropertyContainer(Persistence): """ ... - def getPropertyStatus(self, name: str = "") -> list: + def getPropertyStatus(self, name: str = "", /) -> list: """ getPropertyStatus(name='') -> list @@ -147,7 +150,7 @@ class PropertyContainer(Persistence): """ ... - def getDocumentationOfProperty(self, name: str) -> str: + def getDocumentationOfProperty(self, name: str, /) -> str: """ getDocumentationOfProperty(name) -> str @@ -158,7 +161,7 @@ class PropertyContainer(Persistence): """ ... - def setDocumentationOfProperty(self, name: str, docstring: str) -> None: + def setDocumentationOfProperty(self, name: str, docstring: str, /) -> None: """ setDocumentationOfProperty(name, docstring) -> None @@ -171,7 +174,7 @@ class PropertyContainer(Persistence): """ ... - def getEnumerationsOfProperty(self, name: str) -> Optional[list]: + def getEnumerationsOfProperty(self, name: str, /) -> Optional[list]: """ getEnumerationsOfProperty(name) -> list or None @@ -198,7 +201,7 @@ class PropertyContainer(Persistence): """ ... - def restorePropertyContent(self, name: str, obj: object) -> None: + def restorePropertyContent(self, name: str, obj: object, /) -> None: """ restorePropertyContent(name, obj) -> None @@ -213,7 +216,7 @@ class PropertyContainer(Persistence): ... @constmethod - def renameProperty(self, oldName: str, newName: str) -> None: + def renameProperty(self, oldName: str, newName: str, /) -> None: """ renameProperty(oldName, newName) -> None diff --git a/src/App/StringHasher.pyi b/src/App/StringHasher.pyi index 708ad74311..569083176d 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, overload, Dict @@ -19,7 +23,7 @@ class StringHasher(BaseClass): def __init__(self, *args: Any, **kwargs: Any) -> None: ... - def getID(self, arg: Any, base64: bool = False) -> Any: + def getID(self, arg: Any, base64: bool = False, /) -> Any: """ getID(txt|id, base64=False) -> StringID @@ -34,13 +38,13 @@ 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: + def isSame(self, other: "StringHasher", /) -> bool: """ Check if two hasher are the same """ diff --git a/src/App/StringID.pyi b/src/App/StringID.pyi index 4251cd0827..92d72d1a4c 100644 --- a/src/App/StringID.pyi +++ b/src/App/StringID.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, class_declarations from Base.BaseClass import BaseClass from typing import Any, Final, List @@ -21,7 +25,7 @@ class StringID(BaseClass): """ @constmethod - def isSame(self, other: "StringID") -> bool: + def isSame(self, other: "StringID", /) -> bool: """ Check if two StringIDs are the same """ diff --git a/src/App/SuppressibleExtension.pyi b/src/App/SuppressibleExtension.pyi index 2e6fa01d58..872396d8bb 100644 --- a/src/App/SuppressibleExtension.pyi +++ b/src/App/SuppressibleExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from DocumentObjectExtension import DocumentObjectExtension diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index 28d6e04220..7f0ea391d9 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -1,10 +1,11 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export from PyObjectBase import PyObjectBase from Vector import Vector from Placement import Placement -from Axis import Axis from typing import overload @export( @@ -55,7 +56,7 @@ class Axis(PyObjectBase): """ ... - def move(self, vector: Vector) -> None: + def move(self, vector: Vector, /) -> None: """ move(vector) -> None @@ -66,7 +67,7 @@ class Axis(PyObjectBase): """ ... - def multiply(self, placement: Placement) -> Axis: + def multiply(self, placement: Placement, /) -> Axis: """ multiply(placement) -> Base.Axis diff --git a/src/Base/BaseClass.pyi b/src/Base/BaseClass.pyi index a21e3f53c2..0fd55ecef0 100644 --- a/src/Base/BaseClass.pyi +++ b/src/Base/BaseClass.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import constmethod from PyObjectBase import PyObjectBase @@ -19,7 +21,7 @@ class BaseClass(PyObjectBase): """Module in which this class is defined""" @constmethod - def isDerivedFrom(self, typeName: str) -> bool: + def isDerivedFrom(self, typeName: str, /) -> bool: """ Returns true if given type is a father """ diff --git a/src/Base/BoundBox.pyi b/src/Base/BoundBox.pyi index 26bed0dccf..68a5318c97 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, constmethod from PyObjectBase import PyObjectBase @@ -134,11 +136,14 @@ 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 @@ -160,7 +165,7 @@ class BoundBox(PyObjectBase): ... @constmethod - def getPoint(self, index: int) -> Vector: + def getPoint(self, index: int, /) -> Vector: """ getPoint(index) -> Base.Vector @@ -172,7 +177,7 @@ class BoundBox(PyObjectBase): ... @constmethod - def getEdge(self, index: int) -> Tuple[Vector, ...]: + def getEdge(self, index: int, /) -> Tuple[Vector, ...]: """ getEdge(index) -> tuple of Base.Vector @@ -184,9 +189,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: """ @@ -207,13 +212,13 @@ 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 @@ -228,7 +233,7 @@ class BoundBox(PyObjectBase): """ ... - def intersected(self, boundBox2: "BoundBox") -> "BoundBox": + def intersected(self, boundBox2: "BoundBox", /) -> "BoundBox": """ intersected(boundBox2) -> Base.BoundBox @@ -238,7 +243,7 @@ class BoundBox(PyObjectBase): """ ... - def united(self, boundBox2: "BoundBox") -> "BoundBox": + def united(self, boundBox2: "BoundBox", /) -> "BoundBox": """ united(boundBox2) -> Base.BoundBox @@ -248,7 +253,7 @@ class BoundBox(PyObjectBase): """ ... - def enlarge(self, variation: float) -> None: + def enlarge(self, variation: float, /) -> None: """ enlarge(variation) -> None @@ -259,7 +264,7 @@ class BoundBox(PyObjectBase): """ ... - def getIntersectionPoint(self, base: Vector, dir: Vector, epsilon: float = 0.0001) -> Vector: + def getIntersectionPoint(self, base: Vector, dir: Vector, epsilon: float = 0.0001, /) -> Vector: """ getIntersectionPoint(base, dir, epsilon=0.0001) -> Base.Vector @@ -276,11 +281,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 @@ -300,11 +305,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 @@ -323,7 +328,7 @@ class BoundBox(PyObjectBase): """ ... - def transformed(self, matrix: Matrix) -> "BoundBox": + def transformed(self, matrix: Matrix, /) -> "BoundBox": """ transformed(matrix) -> Base.BoundBox @@ -335,7 +340,7 @@ class BoundBox(PyObjectBase): """ ... - def isCutPlane(self, base: Vector, normal: Vector) -> bool: + def isCutPlane(self, base: Vector, normal: Vector, /) -> bool: """ isCutPlane(base, normal) -> bool @@ -348,11 +353,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 b47ee17c1b..e65f143940 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, constmethod from PyObjectBase import PyObjectBase @@ -40,7 +42,7 @@ class CoordinateSystem(PyObjectBase): Position: Vector = None """Set or get position.""" - def setAxes(self, axis: Union[AxisPy, Vector], xDir: Vector) -> None: + def setAxes(self, axis: Union[AxisPy, Vector], xDir: Vector, /) -> None: """ setAxes(axis, xDir) -> None @@ -54,7 +56,7 @@ class CoordinateSystem(PyObjectBase): ... @constmethod - def displacement(self, coordSystem2: "CoordinateSystem") -> Placement: + def displacement(self, coordSystem2: "CoordinateSystem", /) -> Placement: """ displacement(coordSystem2) -> Base.Placement @@ -64,7 +66,7 @@ class CoordinateSystem(PyObjectBase): """ ... - def transformTo(self, vector: Vector) -> Vector: + def transformTo(self, vector: Vector, /) -> Vector: """ transformTo(vector) -> Base.Vector @@ -74,7 +76,7 @@ class CoordinateSystem(PyObjectBase): """ ... - def transform(self, trans: Union[Rotation, Placement]) -> None: + def transform(self, trans: Union[Rotation, Placement], /) -> None: """ transform(trans) -> None @@ -84,7 +86,7 @@ class CoordinateSystem(PyObjectBase): """ ... - def setPlacement(self, placement: Placement) -> None: + def setPlacement(self, placement: Placement, /) -> None: """ setPlacement(placement) -> None diff --git a/src/Base/Matrix.pyi b/src/Base/Matrix.pyi index c2148a4d3d..bd144f584d 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Vector import Vector from Metadata import export, constmethod, class_declarations, no_args @@ -105,9 +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 @@ -127,11 +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 @@ -153,7 +155,7 @@ class Matrix(PyObjectBase): ... @constmethod - def hasScale(self, tol: float = 0) -> ScaleType: + def hasScale(self, tol: float = 0, /) -> ScaleType: """ hasScale(tol=0) -> ScaleType @@ -204,7 +206,7 @@ class Matrix(PyObjectBase): ... @constmethod - def isUnity(self, tol: float = 0.0) -> bool: + def isUnity(self, tol: float = 0.0, /) -> bool: """ isUnity([tol=0.0]) -> bool @@ -212,7 +214,7 @@ class Matrix(PyObjectBase): """ ... - def transform(self, vector: Vector, matrix2: "Matrix") -> None: + def transform(self, vector: Vector, matrix2: "Matrix", /) -> None: """ transform(vector, matrix2) -> None @@ -228,7 +230,7 @@ class Matrix(PyObjectBase): ... @constmethod - def col(self, index: int) -> Vector: + def col(self, index: int, /) -> Vector: """ col(index) -> Base.Vector @@ -240,7 +242,7 @@ class Matrix(PyObjectBase): """ ... - def setCol(self, index: int, vector: Vector) -> None: + def setCol(self, index: int, vector: Vector, /) -> None: """ setCol(index, vector) -> None @@ -254,7 +256,7 @@ class Matrix(PyObjectBase): ... @constmethod - def row(self, index: int) -> Vector: + def row(self, index: int, /) -> Vector: """ row(index) -> Base.Vector @@ -266,7 +268,7 @@ class Matrix(PyObjectBase): """ ... - def setRow(self, index: int, vector: Vector) -> None: + def setRow(self, index: int, vector: Vector, /) -> None: """ setRow(index, vector) -> None @@ -289,7 +291,7 @@ class Matrix(PyObjectBase): """ ... - def setDiagonal(self, vector: Vector) -> None: + def setDiagonal(self, vector: Vector, /) -> None: """ setDiagonal(vector) -> None @@ -299,7 +301,7 @@ class Matrix(PyObjectBase): """ ... - def rotateX(self, angle: float) -> None: + def rotateX(self, angle: float, /) -> None: """ rotateX(angle) -> None @@ -310,7 +312,7 @@ class Matrix(PyObjectBase): """ ... - def rotateY(self, angle: float) -> None: + def rotateY(self, angle: float, /) -> None: """ rotateY(angle) -> None @@ -321,7 +323,7 @@ class Matrix(PyObjectBase): """ ... - def rotateZ(self, angle: float) -> None: + def rotateZ(self, angle: float, /) -> None: """ rotateZ(angle) -> None @@ -333,11 +335,11 @@ 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]: + def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]: """ multiply(matrix) -> Base.Matrix multiply(vector) -> Base.Vector @@ -351,7 +353,7 @@ class Matrix(PyObjectBase): ... @constmethod - def multVec(self, vector: Vector) -> Vector: + def multVec(self, vector: Vector, /) -> Vector: """ multVec(vector) -> Base.Vector @@ -410,7 +412,7 @@ class Matrix(PyObjectBase): ... @constmethod - def isOrthogonal(self, tol: float = 1e-6) -> float: + def isOrthogonal(self, tol: float = 1e-6, /) -> float: """ isOrthogonal(tol=1e-6) -> float @@ -423,7 +425,7 @@ class Matrix(PyObjectBase): ... @constmethod - def submatrix(self, dim: int) -> "Matrix": + def submatrix(self, dim: int, /) -> "Matrix": """ submatrix(dim) -> Base.Matrix diff --git a/src/Base/Metadata.pyi b/src/Base/Metadata.pyi index ad29731383..627775c30a 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations """ This file keeps auxiliary metadata to be used by the Python API stubs. diff --git a/src/Base/Persistence.pyi b/src/Base/Persistence.pyi index 3fccfa6131..25ba13ac72 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import constmethod from BaseClass import BaseClass @@ -21,7 +23,7 @@ class Persistence(BaseClass): """Memory size of the object in bytes.""" @constmethod - def dumpContent(self, *, Compression: int = 3) -> bytearray: + def dumpContent(self, Compression: int = 3) -> bytearray: """ dumpContent(Compression=3) -> bytearray @@ -33,7 +35,7 @@ class Persistence(BaseClass): """ ... - def restoreContent(self, obj: object) -> None: + def restoreContent(self, obj: object, /) -> None: # TODO: Starting with Python 3.12, collections.abc.Buffer can be used for type hinting """ restoreContent(obj) -> None diff --git a/src/Base/Placement.pyi b/src/Base/Placement.pyi index 8c96843bc3..d45cd4873f 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, constmethod, class_declarations from PyObjectBase import PyObjectBase @@ -92,7 +94,7 @@ class Placement(PyObjectBase): """ ... - def move(self, vector: Vector) -> None: + def move(self, vector: Vector, /) -> None: """ move(vector) -> None @@ -103,7 +105,7 @@ class Placement(PyObjectBase): """ ... - def translate(self, vector: Vector) -> None: + def translate(self, vector: Vector, /) -> None: """ translate(vector) -> None @@ -139,7 +141,7 @@ class Placement(PyObjectBase): ... @constmethod - def multiply(self, placement: "Placement") -> "Placement": + def multiply(self, placement: "Placement", /) -> "Placement": """ multiply(placement) -> Base.Placement @@ -152,7 +154,7 @@ class Placement(PyObjectBase): ... @constmethod - def multVec(self, vector: Vector) -> Vector: + def multVec(self, vector: Vector, /) -> Vector: """ multVec(vector) -> Base.Vector @@ -182,7 +184,7 @@ class Placement(PyObjectBase): ... @constmethod - def pow(self, t: float, shorten: bool = True) -> "Placement": + def pow(self, t: float, shorten: bool = True, /) -> "Placement": """ pow(t, shorten=True) -> Base.Placement @@ -198,7 +200,7 @@ class Placement(PyObjectBase): ... @constmethod - def sclerp(self, placement2: "Placement", t: float, shorten: bool = True) -> "Placement": + def sclerp(self, placement2: "Placement", t: float, shorten: bool = True, /) -> "Placement": """ sclerp(placement2, t, shorten=True) -> Base.Placement @@ -219,7 +221,7 @@ class Placement(PyObjectBase): ... @constmethod - def slerp(self, placement2: "Placement", t: float) -> "Placement": + def slerp(self, placement2: "Placement", t: float, /) -> "Placement": """ slerp(placement2, t) -> Base.Placement @@ -236,7 +238,7 @@ class Placement(PyObjectBase): ... @constmethod - def isIdentity(self, tol: float = 0.0) -> bool: + def isIdentity(self, tol: float = 0.0, /) -> bool: """ isIdentity([tol=0.0]) -> bool @@ -249,7 +251,7 @@ class Placement(PyObjectBase): ... @constmethod - def isSame(self, other: "Placement", tol: float = 0.0) -> bool: + def isSame(self, other: "Placement", tol: float = 0.0, /) -> bool: """ isSame(Base.Placement, [tol=0.0]) -> bool diff --git a/src/Base/Precision.pyi b/src/Base/Precision.pyi index 91aa9691e6..b3ef75334f 100644 --- a/src/Base/Precision.pyi +++ b/src/Base/Precision.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from PyObjectBase import PyObjectBase diff --git a/src/Base/PyObjectBase.pyi b/src/Base/PyObjectBase.pyi index 55521be167..7094cf8e73 100644 --- a/src/Base/PyObjectBase.pyi +++ b/src/Base/PyObjectBase.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations class PyObjectBase: """ diff --git a/src/Base/Quantity.pyi b/src/Base/Quantity.pyi index 68440a15ca..8845cfad4b 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, constmethod from PyObjectBase import PyObjectBase @@ -53,7 +55,7 @@ class Quantity(PyObjectBase): # fmt: on @constmethod - def toStr(self, decimals: int = ...) -> str: + def toStr(self, decimals: int = ..., /) -> str: """ toStr([decimals]) @@ -63,9 +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]: """ @@ -74,13 +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: """ @@ -96,7 +98,7 @@ class Quantity(PyObjectBase): ... @constmethod - def __round__(self, ndigits: int = ...) -> Union[int, float]: + def __round__(self, ndigits: int = ..., /) -> Union[int, float]: """ Returns the Integral closest to x, rounding half toward even. When an argument is passed, work like built-in round(x, ndigits). @@ -104,6 +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 c87b03852a..aa6346cbde 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, constmethod, class_declarations from PyObjectBase import PyObjectBase @@ -144,7 +146,7 @@ class Rotation(PyObjectBase): """ ... - def isSame(self, rotation: "Rotation", tol: float = 0) -> bool: + def isSame(self, rotation: "Rotation", tol: float = 0, /) -> bool: """ isSame(rotation, tol=0) -> bool @@ -158,7 +160,7 @@ class Rotation(PyObjectBase): ... @constmethod - def multiply(self, rotation: "Rotation") -> "Rotation": + def multiply(self, rotation: "Rotation", /) -> "Rotation": """ multiply(rotation) -> Base.Rotation @@ -170,7 +172,7 @@ class Rotation(PyObjectBase): ... @constmethod - def multVec(self, vector: Vector) -> Vector: + def multVec(self, vector: Vector, /) -> Vector: """ multVec(vector) -> Base.Vector @@ -182,7 +184,7 @@ class Rotation(PyObjectBase): ... @constmethod - def slerp(self, rotation2: "Rotation", t: float) -> "Rotation": + def slerp(self, rotation2: "Rotation", t: float, /) -> "Rotation": """ slerp(rotation2, t) -> Base.Rotation @@ -193,7 +195,7 @@ class Rotation(PyObjectBase): """ ... - def setYawPitchRoll(self, angle1: float, angle2: float, angle3: float) -> None: + def setYawPitchRoll(self, angle1: float, angle2: float, angle3: float, /) -> None: """ setYawPitchRoll(angle1, angle2, angle3) -> None @@ -218,7 +220,7 @@ class Rotation(PyObjectBase): """ ... - def setEulerAngles(self, seq: str, angle1: float, angle2: float, angle3: float) -> None: + def setEulerAngles(self, seq: str, angle1: float, angle2: float, angle3: float, /) -> None: """ setEulerAngles(seq, angle1, angle2, angle3) -> None @@ -234,7 +236,7 @@ class Rotation(PyObjectBase): ... @constmethod - def toEulerAngles(self, seq: str = "") -> List[float]: + def toEulerAngles(self, seq: str = "", /) -> List[float]: """ toEulerAngles(seq) -> list @@ -265,7 +267,7 @@ class Rotation(PyObjectBase): ... @constmethod - def isIdentity(self, tol: float = 0) -> bool: + def isIdentity(self, tol: float = 0, /) -> bool: """ isIdentity(tol=0) -> bool diff --git a/src/Base/Type.pyi b/src/Base/Type.pyi index 4947eb5880..bb888e1be6 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, forward_declarations, constmethod from PyObjectBase import PyObjectBase @@ -35,7 +37,7 @@ class Type(PyObjectBase): """Module in which this class is defined.""" @staticmethod - def fromName(name: str) -> "Type": + def fromName(name: str, /) -> "Type": """ fromName(name) -> Base.BaseType @@ -46,7 +48,7 @@ class Type(PyObjectBase): ... @staticmethod - def fromKey(key: int) -> "Type": + def fromKey(key: int, /) -> "Type": """ fromKey(key) -> Base.BaseType @@ -75,7 +77,7 @@ class Type(PyObjectBase): ... @staticmethod - def getAllDerivedFrom(type: str) -> List[str]: + def getAllDerivedFrom(type: str, /) -> List[str]: """ getAllDerivedFrom(type) -> list @@ -104,7 +106,7 @@ class Type(PyObjectBase): ... @constmethod - def isDerivedFrom(self, type: str) -> bool: + def isDerivedFrom(self, type: str, /) -> bool: """ isDerivedFrom(type) -> bool @@ -132,7 +134,7 @@ class Type(PyObjectBase): ... @staticmethod - def createInstanceByName(name: str, load: bool = False) -> object: + def createInstanceByName(name: str, load: bool = False, /) -> object: """ createInstanceByName(name, load=False) -> object diff --git a/src/Base/Unit.pyi b/src/Base/Unit.pyi index 815d839dcd..876b713069 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export from PyObjectBase import PyObjectBase diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index 84946e7171..3cf1787082 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from Metadata import export, constmethod, sequence_protocol, class_declarations from PyObjectBase import PyObjectBase @@ -93,7 +95,7 @@ class Vector(PyObjectBase): ... @constmethod - def add(self, vector2: "Vector") -> "Vector": + def add(self, vector2: "Vector", /) -> "Vector": """ add(vector2) -> Base.Vector @@ -104,7 +106,7 @@ class Vector(PyObjectBase): ... @constmethod - def sub(self, vector2: "Vector") -> "Vector": + def sub(self, vector2: "Vector", /) -> "Vector": """ sub(vector2) -> Base.Vector @@ -123,7 +125,7 @@ class Vector(PyObjectBase): """ ... - def scale(self, x: float, y: float, z: float) -> "Vector": + def scale(self, x: float, y: float, z: float, /) -> "Vector": """ scale(x, y, z) -> Base.Vector @@ -138,7 +140,7 @@ class Vector(PyObjectBase): """ ... - def multiply(self, factor: float) -> "Vector": + def multiply(self, factor: float, /) -> "Vector": """ multiply(factor) -> Base.Vector @@ -150,7 +152,7 @@ class Vector(PyObjectBase): ... @constmethod - def dot(self, vector2: "Vector") -> float: + def dot(self, vector2: "Vector", /) -> float: """ dot(vector2) -> float @@ -161,7 +163,7 @@ class Vector(PyObjectBase): ... @constmethod - def cross(self, vector2: "Vector") -> "Vector": + def cross(self, vector2: "Vector", /) -> "Vector": """ cross(vector2) -> Base.Vector @@ -172,7 +174,7 @@ class Vector(PyObjectBase): ... @constmethod - def isOnLineSegment(self, vector1: "Vector", vector2: "Vector") -> bool: + def isOnLineSegment(self, vector1: "Vector", vector2: "Vector", /) -> bool: """ isOnLineSegment(vector1, vector2) -> bool @@ -184,7 +186,7 @@ class Vector(PyObjectBase): ... @constmethod - def getAngle(self, vector2: "Vector") -> float: + def getAngle(self, vector2: "Vector", /) -> float: """ getAngle(vector2) -> float @@ -203,7 +205,7 @@ class Vector(PyObjectBase): ... @constmethod - def isEqual(self, vector2: "Vector", tol: float = 0) -> bool: + def isEqual(self, vector2: "Vector", tol: float = 0, /) -> bool: """ isEqual(vector2, tol=0) -> bool @@ -216,7 +218,7 @@ class Vector(PyObjectBase): ... @constmethod - def isParallel(self, vector2: "Vector", tol: float = 0) -> bool: + def isParallel(self, vector2: "Vector", tol: float = 0, /) -> bool: """ isParallel(vector2, tol=0) -> bool @@ -229,7 +231,7 @@ class Vector(PyObjectBase): ... @constmethod - def isNormal(self, vector2: "Vector", tol: float = 0) -> bool: + def isNormal(self, vector2: "Vector", tol: float = 0, /) -> bool: """ isNormal(vector2, tol=0) -> bool @@ -241,7 +243,7 @@ class Vector(PyObjectBase): """ ... - def projectToLine(self, point: "Vector", dir: "Vector") -> "Vector": + def projectToLine(self, point: "Vector", dir: "Vector", /) -> "Vector": """ projectToLine(point, dir) -> Base.Vector @@ -257,7 +259,7 @@ class Vector(PyObjectBase): """ ... - def projectToPlane(self, base: "Vector", normal: "Vector") -> "Vector": + def projectToPlane(self, base: "Vector", normal: "Vector", /) -> "Vector": """ projectToPlane(base, normal) -> Base.Vector @@ -270,7 +272,7 @@ class Vector(PyObjectBase): ... @constmethod - def distanceToPoint(self, point2: "Vector") -> float: + def distanceToPoint(self, point2: "Vector", /) -> float: """ distanceToPoint(point2) -> float @@ -281,7 +283,7 @@ class Vector(PyObjectBase): ... @constmethod - def distanceToLine(self, base: "Vector", dir: "Vector") -> float: + def distanceToLine(self, base: "Vector", dir: "Vector", /) -> float: """ distanceToLine(base, dir) -> float @@ -295,7 +297,7 @@ class Vector(PyObjectBase): ... @constmethod - def distanceToLineSegment(self, point1: "Vector", point2: "Vector") -> "Vector": + def distanceToLineSegment(self, point1: "Vector", point2: "Vector", /) -> "Vector": """ distanceToLineSegment(point1, point2) -> Base.Vector @@ -309,7 +311,7 @@ class Vector(PyObjectBase): ... @constmethod - def distanceToPlane(self, base: "Vector", normal: "Vector") -> float: + def distanceToPlane(self, base: "Vector", normal: "Vector", /) -> float: """ distanceToPlane(base, normal) -> float diff --git a/src/Gui/AxisOrigin.pyi b/src/Gui/AxisOrigin.pyi index 0f8d75a50b..045e9bd276 100644 --- a/src/Gui/AxisOrigin.pyi +++ b/src/Gui/AxisOrigin.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, Tuple, Dict @@ -17,7 +21,7 @@ class AxisOrigin(BaseClass): """ @constmethod - def getElementPicked(self, pickedPoint: Any) -> str: + def getElementPicked(self, pickedPoint: Any, /) -> str: """ getElementPicked(pickedPoint) -> str @@ -28,7 +32,7 @@ class AxisOrigin(BaseClass): ... @constmethod - def getDetailPath(self, subname: str, path: Any) -> Any: + def getDetailPath(self, subname: str, path: Any, /) -> Any: """ getDetailPath(subname, path) -> coin.SoDetail or None diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index 33e6d0788e..bb05492962 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import constmethod from Base.PyObjectBase import PyObjectBase from typing import Any, Dict, List, Optional @@ -11,7 +15,7 @@ class Command(PyObjectBase): """ @staticmethod - def get(name: str) -> Optional["Command"]: + def get(name: str, /) -> Optional["Command"]: """ get(name) -> Gui.Command or None @@ -41,7 +45,7 @@ class Command(PyObjectBase): ... @staticmethod - def listByShortcut(string: str, useRegExp: bool = False) -> List[str]: + def listByShortcut(string: str, useRegExp: bool = False, /) -> List[str]: """ listByShortcut(string, useRegExp=False) -> list of str @@ -56,7 +60,7 @@ class Command(PyObjectBase): """ ... - def run(self, item: int = 0) -> None: + def run(self, item: int = 0, /) -> None: """ run(item=0) -> None @@ -84,7 +88,7 @@ class Command(PyObjectBase): """ ... - def setShortcut(self, string: str) -> bool: + def setShortcut(self, string: str, /) -> bool: """ setShortcut(string) -> bool @@ -153,7 +157,7 @@ class Command(PyObjectBase): ... @staticmethod - def removeCustomCommand(name: str) -> bool: + def removeCustomCommand(name: str, /) -> bool: """ removeCustomCommand(name) -> bool @@ -169,7 +173,7 @@ class Command(PyObjectBase): ... @staticmethod - def findCustomCommand(name: str) -> Optional[str]: + def findCustomCommand(name: str, /) -> Optional[str]: """ findCustomCommand(name) -> str or None diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index e1dc745789..375ee67a70 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import constmethod from Base.Persistence import Persistence from Base.Matrix import Matrix @@ -11,7 +15,7 @@ class Document(Persistence): Licence: LGPL """ - def show(self, objName: str) -> None: + def show(self, objName: str, /) -> None: """ show(objName) -> None @@ -22,7 +26,7 @@ class Document(Persistence): """ ... - def hide(self, objName: str) -> None: + def hide(self, objName: str, /) -> None: """ hide(objName) -> None @@ -33,7 +37,7 @@ class Document(Persistence): """ ... - def setPos(self, objName: str, matrix: Matrix) -> None: + def setPos(self, objName: str, matrix: Matrix, /) -> None: """ setPos(objName, matrix) -> None @@ -47,7 +51,7 @@ class Document(Persistence): """ ... - def setEdit(self, obj: Any, mod: int = 0, subName: Optional[str] = None) -> bool: + def setEdit(self, obj: Any, mod: int = 0, subName: Optional[str] = None, /) -> bool: """ setEdit(obj, mod=0, subName) -> bool @@ -78,7 +82,7 @@ class Document(Persistence): """ ... - def addAnnotation(self, annoName: str, fileName: str, modName: str) -> None: + def addAnnotation(self, annoName: str, fileName: str, modName: str, /) -> None: """ addAnnotation(annoName, fileName, modName) -> None @@ -101,7 +105,7 @@ class Document(Persistence): """ ... - def getObject(self, objName: str) -> Optional[Any]: + def getObject(self, objName: str, /) -> Optional[Any]: """ getObject(objName) -> object or None @@ -128,7 +132,7 @@ class Document(Persistence): """ ... - def createView(self, type: str) -> Optional[Any]: + def createView(self, type: str, /) -> Optional[Any]: """ createView(type) -> object or None @@ -140,7 +144,7 @@ class Document(Persistence): ... @constmethod - def mdiViewsOfType(self, type: str) -> List[Any]: + def mdiViewsOfType(self, type: str, /) -> List[Any]: """ mdiViewsOfType(type) -> list of MDIView @@ -167,7 +171,7 @@ class Document(Persistence): """ ... - def sendMsgToViews(self, msg: str) -> None: + def sendMsgToViews(self, msg: str, /) -> None: """ sendMsgToViews(msg) -> None @@ -177,7 +181,7 @@ class Document(Persistence): """ ... - def mergeProject(self, fileName: str) -> None: + def mergeProject(self, fileName: str, /) -> None: """ mergeProject(fileName) -> None @@ -188,7 +192,8 @@ class Document(Persistence): """ ... - def toggleTreeItem(self, obj: Any, mod: int = 0, subName: Optional[str] = None) -> None: + def toggleTreeItem( + self, obj: Any, mod: int = 0, subName: Optional[str] = None, /) -> None: """ toggleTreeItem(obj, mod=0, subName) -> None @@ -203,7 +208,7 @@ class Document(Persistence): """ ... - def scrollToTreeItem(self, obj: Any) -> None: + def scrollToTreeItem(self, obj: Any, /) -> None: """ scrollToTreeItem(obj) -> None @@ -213,7 +218,7 @@ class Document(Persistence): """ ... - def toggleInSceneGraph(self, obj: Any) -> None: + def toggleInSceneGraph(self, obj: Any, /) -> None: """ toggleInSceneGraph(obj) -> None diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index 4faa578074..c6197ad87f 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List, Dict, Tuple, overload @@ -21,7 +25,7 @@ class LinkView(BaseClass): """ ... - def setMaterial(self, material: Any) -> None: + def setMaterial(self, material: Any, /) -> None: """ setMaterial(Material): set the override material of the entire linked object @@ -38,14 +42,18 @@ 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 setType(self, type: int, sublink: bool = True) -> 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. @@ -61,10 +69,12 @@ 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 setTransform(self, matrix: Any) -> None: + def setType(self, type: int, sublink: bool, /) -> None: ... + + def setTransform(self, matrix: Any, /) -> None: """ setTransform(matrix): set transformation of the linked object @@ -77,12 +87,16 @@ 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 setChildren(self, children: List[Any], vis: List[Any] = [], type: int = 0) -> 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) Group a list of children objects. Note, this mode of operation is incompatible @@ -98,7 +112,7 @@ class LinkView(BaseClass): """ ... - def setLink(self, obj: Any, subname: Any = None) -> None: + def setLink(self, obj: Any, subname: Any = None, /) -> None: """ setLink(object): Set the link @@ -116,12 +130,15 @@ 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 getDetailPath(self, element: Any) -> Tuple[Any, Any]: + 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. @@ -129,13 +146,13 @@ class LinkView(BaseClass): """ ... - def getElementPicked(self, pickPoint: Any) -> Any: + def getElementPicked(self, pickPoint: Any, /) -> Any: """ getElementPicked(pickPoint): get the element under a 3d pick point. """ ... - def getBoundBox(self, vobj: Any = None) -> Any: + def getBoundBox(self, vobj: Any = None, /) -> Any: """ getBoundBox(vobj=None): get the bounding box. """ diff --git a/src/Gui/PythonWorkbench.pyi b/src/Gui/PythonWorkbench.pyi index e3ba7ea844..d182eadb42 100644 --- a/src/Gui/PythonWorkbench.pyi +++ b/src/Gui/PythonWorkbench.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Workbench import Workbench from warnings import deprecated diff --git a/src/Gui/Selection/SelectionObject.pyi b/src/Gui/Selection/SelectionObject.pyi index 676cc5f1f0..22ee6683c5 100644 --- a/src/Gui/Selection/SelectionObject.pyi +++ b/src/Gui/Selection/SelectionObject.pyi @@ -25,7 +25,7 @@ class SelectionObject(BaseClass): """ ... - def isObjectTypeOf(self, type: Any) -> bool: + def isObjectTypeOf(self, type: Any, /) -> bool: """ Test for a certain father class. isObjectTypeOf(type) -> Bool diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 300beb369e..4041f73050 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import constmethod from Base.BoundBox import BoundBox from App.ExtensionContainer import ExtensionContainer @@ -50,7 +54,7 @@ class ViewProvider(ExtensionContainer): """ ... - def removeProperty(self, name: str) -> bool: + def removeProperty(self, name: str, /) -> bool: """ removeProperty(name) -> bool @@ -94,7 +98,7 @@ class ViewProvider(ExtensionContainer): """ ... - def canDragObject(self, obj: Any = None) -> bool: + def canDragObject(self, obj: Any = None, /) -> bool: """ canDragObject(obj=None) -> bool @@ -106,7 +110,7 @@ class ViewProvider(ExtensionContainer): """ ... - def dragObject(self, obj: Any) -> None: + def dragObject(self, obj: Any, /) -> None: """ dragObject(obj) -> None @@ -158,7 +162,7 @@ class ViewProvider(ExtensionContainer): """ ... - def canDragAndDropObject(self, obj: Any) -> bool: + def canDragAndDropObject(self, obj: Any, /) -> bool: """ canDragAndDropObject(obj) -> bool @@ -170,7 +174,7 @@ class ViewProvider(ExtensionContainer): """ ... - def replaceObject(self, oldObj: Any, newObj: Any) -> int: + def replaceObject(self, oldObj: Any, newObj: Any, /) -> int: """ replaceObject(oldObj, newObj) -> int @@ -192,7 +196,7 @@ class ViewProvider(ExtensionContainer): """ ... - def addDisplayMode(self, obj: Any, mode: str) -> None: + def addDisplayMode(self, obj: Any, mode: str, /) -> None: """ addDisplayMode(obj, mode) -> None @@ -221,7 +225,7 @@ class ViewProvider(ExtensionContainer): """ ... - def setTransformation(self, trans: Any) -> None: + def setTransformation(self, trans: Any, /) -> None: """ setTransformation(trans) -> None @@ -249,7 +253,7 @@ class ViewProvider(ExtensionContainer): """ ... - def partialRender(self, sub: Any = None, clear: bool = False) -> int: + def partialRender(self, sub: Any = None, clear: bool = False, /) -> int: """ partialRender(sub=None, clear=False) -> int @@ -262,7 +266,7 @@ class ViewProvider(ExtensionContainer): """ ... - def getElementColors(self, elementName: Optional[str] = None) -> dict: + def getElementColors(self, elementName: Optional[str] = None, /) -> dict: """ getElementColors(elementName) -> dict @@ -274,7 +278,7 @@ class ViewProvider(ExtensionContainer): """ ... - def setElementColors(self, colors: dict) -> None: + def setElementColors(self, colors: dict, /) -> None: """ setElementColors(colors) -> None @@ -286,7 +290,7 @@ class ViewProvider(ExtensionContainer): ... @constmethod - def getElementPicked(self, pickPoint: Any) -> str: + def getElementPicked(self, pickPoint: Any, /) -> str: """ getElementPicked(pickPoint) -> str @@ -297,7 +301,7 @@ class ViewProvider(ExtensionContainer): ... @constmethod - def getDetailPath(self, subelement: str, path: Any, append: bool = True) -> Any: + def getDetailPath(self, subelement: str, path: Any, append: bool = True, /) -> Any: """ getDetailPath(subelement, path, append=True) -> coin.SoDetail or None @@ -323,8 +327,7 @@ class ViewProvider(ExtensionContainer): ... def getBoundingBox( - self, subName: Optional[str] = None, transform: bool = True, view: Any = None - ) -> BoundBox: + self, subName: Optional[str] = None, transform: bool = True, view: Any = None, /) -> BoundBox: """ getBoundingBox(subName, transform=True, view) -> Base.BoundBox diff --git a/src/Gui/ViewProviderDocumentObject.pyi b/src/Gui/ViewProviderDocumentObject.pyi index 83bb882370..b9c32daab5 100644 --- a/src/Gui/ViewProviderDocumentObject.pyi +++ b/src/Gui/ViewProviderDocumentObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from ViewProvider import ViewProvider from typing import Any, Final diff --git a/src/Gui/ViewProviderExtension.pyi b/src/Gui/ViewProviderExtension.pyi index eb5800c6e8..f0e7c53f17 100644 --- a/src/Gui/ViewProviderExtension.pyi +++ b/src/Gui/ViewProviderExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import constmethod from App.Extension import Extension diff --git a/src/Gui/ViewProviderGeometryObject.pyi b/src/Gui/ViewProviderGeometryObject.pyi index 14ee732de4..8e909879b3 100644 --- a/src/Gui/ViewProviderGeometryObject.pyi +++ b/src/Gui/ViewProviderGeometryObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import no_args from ViewProviderDocumentObject import ViewProviderDocumentObject diff --git a/src/Gui/ViewProviderLink.pyi b/src/Gui/ViewProviderLink.pyi index 2e75516a03..97d2971e59 100644 --- a/src/Gui/ViewProviderLink.pyi +++ b/src/Gui/ViewProviderLink.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from ViewProviderDocumentObject import ViewProviderDocumentObject from typing import Any, Final diff --git a/src/Gui/Workbench.pyi b/src/Gui/Workbench.pyi index 3688761e93..2bff9d2b59 100644 --- a/src/Gui/Workbench.pyi +++ b/src/Gui/Workbench.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Any, List, Dict diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index e5305bef46..c5e8bf9d4c 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Final from Base.Metadata import export diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index 016d749bf4..4c1526c131 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import constmethod, export diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index 7157bc70ad..12c69672fa 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index 9e6df7de1b..bdb3d684ef 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Spreadsheet.Sheet import Sheet diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index 1a23e0f5c5..6c452712ab 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index bcd589cd8c..f4cef9043b 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index c5d3ad26e3..8092311fd0 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 11ccd4ba1d..a4518edb3e 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/CAM/App/Command.pyi b/src/Mod/CAM/App/Command.pyi index 6667069d8a..e9c1323b46 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -24,11 +24,11 @@ class Command(Persistence): """toGCode(): returns a GCode representation of the command""" ... - def setFromGCode(self, gcode: str) -> None: + def setFromGCode(self, gcode: str, /) -> None: """setFromGCode(): sets the path from the contents of the given GCode string""" ... - def transform(self, placement: Placement) -> "CommandPy": + def transform(self, placement: Placement, /) -> "CommandPy": """transform(Placement): returns a copy of this command transformed by the given placement""" ... Name: str diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 257f54ed03..322f9f31f8 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.BaseClass import BaseClass diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index 5b565b3fac..c5189a1ceb 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.BaseClass import BaseClass diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index c48dec78c6..20c6f05dfd 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import constmethod, export diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index ece7da0df6..7fae9c27bf 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Fem/App/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index aa11328dcd..52db00dc52 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index 7f40fd4e04..11f4bb1766 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 9541c17c3b..d22535364d 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index 25bbf21b09..d64ba3d0e3 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index 12d32a201b..3ca4703201 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index 31df8d37cc..1f24bd16de 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index 5b839711aa..437ec02dff 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index d72609d138..247216a716 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Material/App/Array2D.pyi b/src/Mod/Material/App/Array2D.pyi index 7325e84490..5b089570c3 100644 --- a/src/Mod/Material/App/Array2D.pyi +++ b/src/Mod/Material/App/Array2D.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.BaseClass import BaseClass from Base.Metadata import constmethod @@ -33,20 +37,20 @@ class Array2D(BaseClass): """The number of columns in the array.""" @constmethod - def getRow(self, value: Any) -> Any: + def getRow(self, value: Any, /) -> Any: """ Get the row given the first column value """ ... @constmethod - def getValue(self, row: int, column: int) -> Any: + def getValue(self, row: int, column: int, /) -> Any: """ Get the value at the given row and column """ ... - def setValue(self, row: int, column: int, value: Any): + def setValue(self, row: int, column: int, value: Any, /): """ Set the value at the given row and column """ diff --git a/src/Mod/Material/App/Array3D.pyi b/src/Mod/Material/App/Array3D.pyi index 9a0d6cc5c1..9ad00b2461 100644 --- a/src/Mod/Material/App/Array3D.pyi +++ b/src/Mod/Material/App/Array3D.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List @@ -52,19 +56,19 @@ class Array3D(BaseClass): """ ... - def setDepthValue(self, value: Any): + def setDepthValue(self, value: Any, /): """ Set the column value at the given depth """ ... - def setValue(self, depth: int, row: int, column: int, value: Any): + def setValue(self, depth: int, row: int, column: int, value: Any, /): """ Set the value at the given depth, row, and column """ ... - def setRows(self, depth: int, value: int): + def setRows(self, depth: int, value: int, /): """ Set the number of rows at the given depth """ diff --git a/src/Mod/Material/App/Material.pyi b/src/Mod/Material/App/Material.pyi index 7a95608df9..47c8b84b72 100644 --- a/src/Mod/Material/App/Material.pyi +++ b/src/Mod/Material/App/Material.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, no_args, sequence_protocol from Base.BaseClass import BaseClass from typing import Final, Dict diff --git a/src/Mod/Material/App/MaterialFilter.pyi b/src/Mod/Material/App/MaterialFilter.pyi index f131306a4c..513f89e9af 100644 --- a/src/Mod/Material/App/MaterialFilter.pyi +++ b/src/Mod/Material/App/MaterialFilter.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import List diff --git a/src/Mod/Material/App/MaterialFilterOptions.pyi b/src/Mod/Material/App/MaterialFilterOptions.pyi index d3b6a5bd8e..d3c8938c2d 100644 --- a/src/Mod/Material/App/MaterialFilterOptions.pyi +++ b/src/Mod/Material/App/MaterialFilterOptions.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.BaseClass import BaseClass diff --git a/src/Mod/Material/App/MaterialLibrary.pyi b/src/Mod/Material/App/MaterialLibrary.pyi index badd65e69e..80690567bc 100644 --- a/src/Mod/Material/App/MaterialLibrary.pyi +++ b/src/Mod/Material/App/MaterialLibrary.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final diff --git a/src/Mod/Material/App/MaterialManager.pyi b/src/Mod/Material/App/MaterialManager.pyi index 493725bc01..1fb65fb286 100644 --- a/src/Mod/Material/App/MaterialManager.pyi +++ b/src/Mod/Material/App/MaterialManager.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List, Dict, overload diff --git a/src/Mod/Material/App/MaterialProperty.pyi b/src/Mod/Material/App/MaterialProperty.pyi index c5c827d484..999d716904 100644 --- a/src/Mod/Material/App/MaterialProperty.pyi +++ b/src/Mod/Material/App/MaterialProperty.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from ModelProperty import ModelProperty from typing import Final diff --git a/src/Mod/Material/App/Model.pyi b/src/Mod/Material/App/Model.pyi index f004c64eb6..51f765a1ac 100644 --- a/src/Mod/Material/App/Model.pyi +++ b/src/Mod/Material/App/Model.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List, Dict, overload diff --git a/src/Mod/Material/App/ModelManager.pyi b/src/Mod/Material/App/ModelManager.pyi index e7e28f3435..3d2ba4119e 100644 --- a/src/Mod/Material/App/ModelManager.pyi +++ b/src/Mod/Material/App/ModelManager.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List, Dict diff --git a/src/Mod/Material/App/ModelProperty.pyi b/src/Mod/Material/App/ModelProperty.pyi index 370f6f3422..c745ab0763 100644 --- a/src/Mod/Material/App/ModelProperty.pyi +++ b/src/Mod/Material/App/ModelProperty.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final diff --git a/src/Mod/Material/App/UUIDs.pyi b/src/Mod/Material/App/UUIDs.pyi index 2fd83a6f39..629b2f2add 100644 --- a/src/Mod/Material/App/UUIDs.pyi +++ b/src/Mod/Material/App/UUIDs.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final diff --git a/src/Mod/Material/Gui/MaterialTreeWidget.pyi b/src/Mod/Material/Gui/MaterialTreeWidget.pyi index e2acb43211..00452b52e4 100644 --- a/src/Mod/Material/Gui/MaterialTreeWidget.pyi +++ b/src/Mod/Material/Gui/MaterialTreeWidget.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod, forward_declarations, class_declarations, sequence_protocol from Base.BaseClass import BaseClass from typing import Final, overload diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index 24d6c6f527..18c562aeb0 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObject import DocumentObject diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index 8034ebffb7..d5657ee8d1 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.BaseClass import BaseClass diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index d265bbea34..d274f81185 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 548234e5c8..016cdfef86 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Final from Base.Metadata import export diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 01eab62741..1dcdf1eb84 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index 7a6b65cf4e..64765f1a28 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import constmethod, export diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 6f795a5230..ad2ada3cca 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index eed777ebd0..a47bb396e6 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index 2120989a25..8d73f82620 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject from Base.Metadata import export diff --git a/src/Mod/Part/App/Arc.pyi b/src/Mod/Part/App/Arc.pyi index 340e2f6329..706256a880 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from TrimmedCurve import TrimmedCurve from Geometry import Geom_Circle, Geom_Ellipse diff --git a/src/Mod/Part/App/ArcOfCircle.pyi b/src/Mod/Part/App/ArcOfCircle.pyi index a1ad2bff4a..f09a700774 100644 --- a/src/Mod/Part/App/ArcOfCircle.pyi +++ b/src/Mod/Part/App/ArcOfCircle.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final diff --git a/src/Mod/Part/App/ArcOfConic.pyi b/src/Mod/Part/App/ArcOfConic.pyi index 8c46f2aa34..0270897665 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from TrimmedCurve import TrimmedCurve diff --git a/src/Mod/Part/App/ArcOfEllipse.pyi b/src/Mod/Part/App/ArcOfEllipse.pyi index f111c0ba69..dbb72e5288 100644 --- a/src/Mod/Part/App/ArcOfEllipse.pyi +++ b/src/Mod/Part/App/ArcOfEllipse.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final diff --git a/src/Mod/Part/App/ArcOfHyperbola.pyi b/src/Mod/Part/App/ArcOfHyperbola.pyi index 15ef3eee52..18ec6d17fc 100644 --- a/src/Mod/Part/App/ArcOfHyperbola.pyi +++ b/src/Mod/Part/App/ArcOfHyperbola.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.ArcOfConic import ArcOfConic from typing import Final diff --git a/src/Mod/Part/App/ArcOfParabola.pyi b/src/Mod/Part/App/ArcOfParabola.pyi index 886cb96fa9..0845154bcb 100644 --- a/src/Mod/Part/App/ArcOfParabola.pyi +++ b/src/Mod/Part/App/ArcOfParabola.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final diff --git a/src/Mod/Part/App/AttachEngine.pyi b/src/Mod/Part/App/AttachEngine.pyi index 637431f483..5adecc2284 100644 --- a/src/Mod/Part/App/AttachEngine.pyi +++ b/src/Mod/Part/App/AttachEngine.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from Base.Placement import Placement @@ -46,31 +50,31 @@ class AttachEngine(BaseClass): CompleteRefTypeList: Final[list] = [] """List of all reference shape types recognized by AttachEngine.""" - def getModeInfo(self, mode: str) -> dict: + def getModeInfo(self, mode: str, /) -> dict: """ getModeInfo(mode): returns supported reference combinations, user-friendly name, and so on. """ ... - def getRefTypeOfShape(self, shape: str) -> str: + def getRefTypeOfShape(self, shape: str, /) -> str: """ getRefTypeOfShape(shape): returns shape type as interpreted by AttachEngine. Returns a string. """ ... - def isFittingRefType(self, type_shape: str, type_needed: str) -> bool: + def isFittingRefType(self, type_shape: str, type_needed: str, /) -> bool: """ isFittingRefType(type_shape, type_needed): tests if shape type, specified by type_shape (string), fits a type required by attachment mode type_needed (string). e.g. 'Circle' fits a requirement of 'Edge', and 'Curve' doesn't fit if a 'Circle' is required. """ ... - def downgradeRefType(self, type: str) -> str: + def downgradeRefType(self, type: str, /) -> str: """ downgradeRefType(type): returns next more general type. E.g. downgradeType('Circle') yields 'Curve'. """ ... - def getRefTypeInfo(self, type: str) -> dict: + def getRefTypeInfo(self, type: str, /) -> dict: """ getRefTypeInfo(type): returns information (dict) on shape type. Keys:'UserFriendlyName', 'TypeIndex', 'Rank'. Rank is the number of times reftype can be downgraded, before it becomes 'Any'. """ @@ -84,7 +88,7 @@ class AttachEngine(BaseClass): ... @constmethod - def calculateAttachedPlacement(self, orig_placement: Placement) -> Optional[Placement]: + def calculateAttachedPlacement(self, orig_placement: Placement, /) -> Optional[Placement]: """ calculateAttachedPlacement(orig_placement): returns result of attachment, based on current Mode, References, etc. AttachmentOffset is included. @@ -130,13 +134,13 @@ class AttachEngine(BaseClass): """ ... - def readParametersFromFeature(self, document_object: DocumentObject) -> None: + def readParametersFromFeature(self, document_object: DocumentObject, /) -> None: """ readParametersFromFeature(document_object): sets AttachEngine parameters (References, Mode, etc.) by reading out properties of AttachableObject-derived feature. """ ... - def writeParametersToFeature(self, document_object: DocumentObject) -> None: + def writeParametersToFeature(self, document_object: DocumentObject, /) -> None: """ writeParametersToFeature(document_object): updates properties of AttachableObject-derived feature with current AttachEngine parameters diff --git a/src/Mod/Part/App/AttachExtension.pyi b/src/Mod/Part/App/AttachExtension.pyi index 37160ef4cd..5b26a38d88 100644 --- a/src/Mod/Part/App/AttachExtension.pyi +++ b/src/Mod/Part/App/AttachExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension from typing import Any, Final @@ -29,7 +33,7 @@ class AttachExtension(DocumentObjectExtension): """ ... - def changeAttacherType(self, typename: str) -> None: + def changeAttacherType(self, typename: str, /) -> None: """ changeAttacherType(typename) -> None diff --git a/src/Mod/Part/App/BRepFeat/MakePrism.pyi b/src/Mod/Part/App/BRepFeat/MakePrism.pyi index 1484996a59..92ce616001 100644 --- a/src/Mod/Part/App/BRepFeat/MakePrism.pyi +++ b/src/Mod/Part/App/BRepFeat/MakePrism.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import List diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi index a6bae6597c..12d173a816 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Part.App.Point import Point @@ -50,7 +54,7 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): """ ... - def loadInitSurface(self, face: TopoShapeFace) -> None: + def loadInitSurface(self, face: TopoShapeFace, /) -> None: """ loadInitSurface(face) Loads the initial surface. @@ -93,10 +97,14 @@ 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 = 0) -> float: + def G0Error(self, arg: int, /) -> float: + ... + + def G0Error(self, arg: int = 0, /) -> float: """ G0Error([int]) Returns the maximum distance between the result and the constraints. @@ -104,10 +112,14 @@ 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 = 0) -> float: + def G1Error(self, arg: int, /) -> float: + ... + + def G1Error(self, arg: int = 0, /) -> float: """ G1Error([int]) Returns the maximum angle between the result and the constraints. @@ -115,10 +127,14 @@ 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 = 0) -> float: + def G2Error(self, arg: int, /) -> float: + ... + + def G2Error(self, arg: int = 0, /) -> float: """ G2Error([int]) Returns the greatest difference in curvature between the result and the constraints. diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi index 192bb89d38..c2f00505b2 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Base.Vector import Vector @@ -20,7 +24,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): Licence: LGPL """ - def setFrenetMode(self, mode: bool) -> None: + def setFrenetMode(self, mode: bool, /) -> None: """ setFrenetMode(True|False) Sets a Frenet or a CorrectedFrenet trihedron to perform the sweeping. @@ -29,7 +33,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def setTrihedronMode(self, point: Vector, direction: Vector) -> None: + def setTrihedronMode(self, point: Vector, direction: Vector, /) -> None: """ setTrihedronMode(point,direction) Sets a fixed trihedron to perform the sweeping. @@ -37,7 +41,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def setBiNormalMode(self, direction: Vector) -> None: + def setBiNormalMode(self, direction: Vector, /) -> None: """ setBiNormalMode(direction) Sets a fixed BiNormal direction to perform the sweeping. @@ -45,7 +49,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def setSpineSupport(self, shape: TopoShape) -> None: + def setSpineSupport(self, shape: TopoShape, /) -> None: """ setSpineSupport(shape) Sets support to the spine to define the BiNormal of the trihedron, like the normal to the surfaces. @@ -53,9 +57,7 @@ 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. @@ -96,7 +98,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def remove(self, Profile: TopoShape) -> None: + def remove(self, Profile: TopoShape, /) -> None: """ remove(shape Profile) Removes the section Profile from this framework. @@ -124,7 +126,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def setTolerance(self, tol3d: float, boundTol: float, tolAngular: float) -> None: + def setTolerance(self, tol3d: float, boundTol: float, tolAngular: float, /) -> None: """ setTolerance( tol3d, boundTol, tolAngular) Tol3d = 3D tolerance @@ -133,7 +135,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def setTransitionMode(self, mode: int) -> None: + def setTransitionMode(self, mode: int, /) -> None: """ 0: BRepBuilderAPI_Transformed 1: BRepBuilderAPI_RightCorner @@ -169,35 +171,35 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def generated(self, S: TopoShape) -> list[TopoShape]: + def generated(self, S: TopoShape, /) -> list[TopoShape]: """ generated(shape S) Returns a list of new shapes generated from the shape S by the shell-generating algorithm. """ ... - def setMaxDegree(self, degree: int) -> None: + def setMaxDegree(self, degree: int, /) -> None: """ setMaxDegree(int degree) Define the maximum V degree of resulting surface. """ ... - def setMaxSegments(self, num: int) -> None: + def setMaxSegments(self, num: int, /) -> None: """ setMaxSegments(int num) Define the maximum number of spans in V-direction on resulting surface. """ ... - def setForceApproxC1(self, flag: bool) -> None: + def setForceApproxC1(self, flag: bool, /) -> None: """ setForceApproxC1(bool) Set the flag that indicates attempt to approximate a C1-continuous surface if a swept surface proved to be C0. """ ... - def simulate(self, nbsec: int) -> None: + def simulate(self, nbsec: int, /) -> None: """ simulate(int nbsec) Simulates the resulting shape by calculating the given number of cross-sections. diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index 9f09f6d12d..f6c152a9a0 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from BoundedCurve import BoundedCurve @@ -89,7 +93,7 @@ class BSplineCurve(BoundedCurve): """ ... - def increaseDegree(self, Degree: int = ...) -> None: + def increaseDegree(self, Degree: int = ..., /) -> None: """ increase(Int=Degree) Increases the degree of this B-Spline curve to Degree. @@ -100,9 +104,11 @@ 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) @@ -116,7 +122,7 @@ class BSplineCurve(BoundedCurve): """ ... - def incrementMultiplicity(self, start: int, end: int, mult: int) -> None: + def incrementMultiplicity(self, start: int, end: int, mult: int, /) -> None: """ incrementMultiplicity(int start, int end, int mult) @@ -126,7 +132,7 @@ class BSplineCurve(BoundedCurve): """ ... - def insertKnot(self, u: float, mult: int = 1, tol: float = 0.0) -> None: + def insertKnot(self, u: float, mult: int = 1, tol: float = 0.0, /) -> None: """ insertKnot(u, mult = 1, tol = 0.0) @@ -141,7 +147,7 @@ class BSplineCurve(BoundedCurve): list_of_ints: List[int], tol: float = 0.0, bool_add: bool = True, - ) -> None: + /,) -> None: """ insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True) @@ -161,7 +167,7 @@ class BSplineCurve(BoundedCurve): """ ... - def removeKnot(self, Index: int, M: int, tol: float) -> bool: + def removeKnot(self, Index: int, M: int, tol: float, /) -> bool: """ removeKnot(Index, M, tol) @@ -180,7 +186,7 @@ class BSplineCurve(BoundedCurve): """ ... - def segment(self, u1: float, u2: float) -> None: + def segment(self, u1: float, u2: float, /) -> None: """ segment(u1,u2) @@ -188,20 +194,20 @@ class BSplineCurve(BoundedCurve): """ ... - def setKnot(self, knot: float, index: int) -> None: + def setKnot(self, knot: float, index: int, /) -> None: """ Set a knot of the B-Spline curve. """ ... @constmethod - def getKnot(self, index: int) -> float: + def getKnot(self, index: int, /) -> float: """ Get a knot of the B-Spline curve. """ ... - def setKnots(self, knots: List[float]) -> None: + def setKnots(self, knots: List[float], /) -> None: """ Set knots of the B-Spline curve. """ @@ -214,7 +220,7 @@ class BSplineCurve(BoundedCurve): """ ... - def setPole(self, P: Vector, Index: int) -> None: + def setPole(self, P: Vector, Index: int, /) -> None: """ Modifies this B-Spline curve by assigning P to the pole of index Index in the poles table. @@ -222,7 +228,7 @@ class BSplineCurve(BoundedCurve): ... @constmethod - def getPole(self, Index: int) -> Vector: + def getPole(self, Index: int, /) -> Vector: """ Get a pole of the B-Spline curve. """ @@ -235,14 +241,14 @@ class BSplineCurve(BoundedCurve): """ ... - def setWeight(self, weight: float, index: int) -> None: + def setWeight(self, weight: float, index: int, /) -> None: """ Set a weight of the B-Spline curve. """ ... @constmethod - def getWeight(self, index: int) -> float: + def getWeight(self, index: int, /) -> float: """ Get a weight of the B-Spline curve. """ @@ -263,7 +269,7 @@ class BSplineCurve(BoundedCurve): ... @constmethod - def getResolution(self, Tolerance3D: float) -> float: + def getResolution(self, Tolerance3D: float, /) -> float: """ Computes for this B-Spline curve the parametric tolerance (UTolerance) for a given 3D tolerance (Tolerance3D). @@ -273,7 +279,8 @@ class BSplineCurve(BoundedCurve): """ ... - def movePoint(self, U: float, P: Vector, Index1: int, Index2: int) -> tuple[int, int]: + def movePoint( + self, U: float, P: Vector, Index1: int, Index2: int, /) -> tuple[int, int]: """ movePoint(U, P, Index1, Index2) @@ -299,7 +306,7 @@ class BSplineCurve(BoundedCurve): """ ... - def setOrigin(self, Index: int) -> None: + def setOrigin(self, Index: int, /) -> None: """ Assigns the knot of index Index in the knots table as the origin of this periodic B-Spline curve. As a consequence, @@ -308,7 +315,7 @@ class BSplineCurve(BoundedCurve): ... @constmethod - def getMultiplicity(self, index: int) -> int: + def getMultiplicity(self, index: int, /) -> int: """ Returns the multiplicity of the knot of index from the knots table of this B-Spline curve. @@ -434,7 +441,7 @@ class BSplineCurve(BoundedCurve): periodic: bool = False, degree: int = 3, interpolate: bool = False, - ) -> None: + /,) -> None: """ Builds a B-Spline by a list of poles. arguments: poles (sequence of Base.Vector), [periodic (default is False), degree (default is 3), interpolate (default is False)] @@ -504,20 +511,21 @@ class BSplineCurve(BoundedCurve): ... @constmethod - def toBiArcs(self, tolerance: float) -> List["Arc"]: + def toBiArcs(self, tolerance: float, /) -> List["Arc"]: """ Build a list of arcs and lines to approximate the B-spline. toBiArcs(tolerance) -> list. """ ... - def join(self, other: "BSplineCurve") -> None: + def join(self, other: "BSplineCurve", /) -> None: """ Build a new spline by joining this and a second spline. """ ... - def makeC1Continuous(self, tol: float = 1e-6, ang_tol: float = 1e-7) -> "BSplineCurve": + def makeC1Continuous( + self, tol: float = 1e-6, ang_tol: float = 1e-7, /) -> "BSplineCurve": """ makeC1Continuous(tol = 1e-6, ang_tol = 1e-7) Reduces as far as possible the multiplicities of the knots of this BSpline @@ -529,7 +537,7 @@ class BSplineCurve(BoundedCurve): """ ... - def scaleKnotsToBounds(self, u0: float = 0.0, u1: float = 1.0) -> None: + def scaleKnotsToBounds(self, u0: float = 0.0, u1: float = 1.0, /) -> None: """ Scales the knots list to fit the specified bounds. The shape of the curve is not modified. diff --git a/src/Mod/Part/App/BSplineSurface.pyi b/src/Mod/Part/App/BSplineSurface.pyi index e9e9f0fbc7..e725ea32bc 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from GeometrySurface import GeometrySurface from typing import Final, List, Any @@ -181,7 +185,7 @@ class BSplineSurface(GeometrySurface): dX: float = ..., Y0: float = ..., dY: float = ..., - ) -> None: + /,) -> None: """ increase(Int=UDegree, int=VDegree) Increases the degrees of this B-Spline surface to UDegree and VDegree @@ -218,31 +222,31 @@ class BSplineSurface(GeometrySurface): """ ... - def insertUKnot(self, U: float, Index: int, Tolerance: float) -> None: + def insertUKnot(self, U: float, Index: int, Tolerance: float, /) -> None: """ insertUKnote(float U, int Index, float Tolerance) - Insert or override a knot """ ... - def insertUKnots(self, U: List[float], Mult: List[float], Tolerance: float) -> None: + def insertUKnots(self, U: List[float], Mult: List[float], Tolerance: float, /) -> None: """ insertUKnote(List of float U, List of float Mult, float Tolerance) - Inserts knots. """ ... - def insertVKnot(self, V: float, Index: int, Tolerance: float) -> None: + def insertVKnot(self, V: float, Index: int, Tolerance: float, /) -> None: """ insertUKnote(float V, int Index, float Tolerance) - Insert or override a knot. """ ... - def insertVKnots(self, V: List[float], Mult: List[float], Tolerance: float) -> None: + def insertVKnots(self, V: List[float], Mult: List[float], Tolerance: float, /) -> None: """ insertUKnote(List of float V, List of float Mult, float Tolerance) - Inserts knots. """ ... - def removeUKnot(self, M: int, Index: int, Tolerance: float) -> bool: + def removeUKnot(self, M: int, Index: int, Tolerance: float, /) -> bool: """ Reduces to M the multiplicity of the knot of index Index in the given parametric direction. If M is 0, the knot is removed. @@ -260,7 +264,7 @@ class BSplineSurface(GeometrySurface): """ ... - def removeVKnot(self, M: int, Index: int, Tolerance: float) -> bool: + def removeVKnot(self, M: int, Index: int, Tolerance: float, /) -> bool: """ Reduces to M the multiplicity of the knot of index Index in the given parametric direction. If M is 0, the knot is removed. @@ -278,7 +282,7 @@ class BSplineSurface(GeometrySurface): """ ... - def segment(self, U1: float, U2: float, V1: float, V2: float) -> None: + def segment(self, U1: float, U2: float, V1: float, V2: float, /) -> None: """ Modifies this B-Spline surface by segmenting it between U1 and U2 in the u parametric direction and between V1 and V2 in the v parametric direction. @@ -292,7 +296,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setUKnot(self, K: float, UIndex: int, M: int = ...) -> None: + def setUKnot(self, K: float, UIndex: int, M: int = ..., /) -> None: """ Modifies this B-Spline surface by assigning the value K to the knot of index UIndex of the knots table corresponding to the u parametric direction. @@ -304,7 +308,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setVKnot(self, K: float, VIndex: int, M: int = ...) -> None: + def setVKnot(self, K: float, VIndex: int, M: int = ..., /) -> None: """ Modifies this B-Spline surface by assigning the value K to the knot of index VIndex of the knots table corresponding to the v parametric direction. @@ -317,7 +321,7 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getUKnot(self, UIndex: int) -> Any: + def getUKnot(self, UIndex: int, /) -> Any: """ Returns, for this B-Spline surface, in the u parametric direction the knot of index UIndex of the knots table. @@ -325,21 +329,21 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getVKnot(self, VIndex: int) -> Any: + def getVKnot(self, VIndex: int, /) -> Any: """ Returns, for this B-Spline surface, in the v parametric direction the knot of index VIndex of the knots table. """ ... - def setUKnots(self, knots: List[Any]) -> None: + def setUKnots(self, knots: List[Any], /) -> None: """ Changes all knots of this B-Spline surface in the u parametric direction. The multiplicity of the knots is not modified. """ ... - def setVKnots(self, knots: List[Any]) -> None: + def setVKnots(self, knots: List[Any], /) -> None: """ Changes all knots of this B-Spline surface in the v parametric direction. The multiplicity of the knots is not modified. @@ -362,7 +366,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setPole(self, P: Any, UIndex: int, VIndex: int, Weight: float = ...) -> None: + def setPole(self, P: Any, UIndex: int, VIndex: int, Weight: float = ..., /) -> None: """ Modifies this B-Spline surface by assigning P to the pole of index (UIndex, VIndex) in the poles table. @@ -374,7 +378,8 @@ class BSplineSurface(GeometrySurface): """ ... - def setPoleCol(self, VIndex: int, values: List[Any], CPoleWeights: List[float]) -> None: + def setPoleCol( + self, VIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None: """ Modifies this B-Spline surface by assigning values to all or part of the column of poles of index VIndex, of this B-Spline surface. @@ -384,7 +389,8 @@ class BSplineSurface(GeometrySurface): """ ... - def setPoleRow(self, UIndex: int, values: List[Any], CPoleWeights: List[float]) -> None: + def setPoleRow( + self, UIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None: """ Modifies this B-Spline surface by assigning values to all or part of the row of poles of index UIndex, of this B-Spline surface. @@ -395,7 +401,7 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getPole(self, UIndex: int, VIndex: int) -> Any: + def getPole(self, UIndex: int, VIndex: int, /) -> Any: """ Returns the pole of index (UIndex,VIndex) of this B-Spline surface. """ @@ -408,7 +414,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setWeight(self, Weight: float, UIndex: int, VIndex: int) -> None: + def setWeight(self, Weight: float, UIndex: int, VIndex: int, /) -> None: """ Modifies this B-Spline surface by assigning the value Weight to the weight of the pole of index (UIndex, VIndex) in the poles tables of this B-Spline @@ -418,7 +424,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setWeightCol(self, VIndex: int, CPoleWeights: List[float]) -> None: + def setWeightCol(self, VIndex: int, CPoleWeights: List[float], /) -> None: """ Modifies this B-Spline surface by assigning values to all or part of the weights of the column of poles of index VIndex of this B-Spline surface. @@ -430,7 +436,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setWeightRow(self, UIndex: int, CPoleWeights: List[float]) -> None: + def setWeightRow(self, UIndex: int, CPoleWeights: List[float], /) -> None: """ Modifies this B-Spline surface by assigning values to all or part of the weights of the row of poles of index UIndex of this B-Spline surface. @@ -443,7 +449,7 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getWeight(self, UIndex: int, VIndex: int) -> float: + def getWeight(self, UIndex: int, VIndex: int, /) -> float: """ Return the weight of the pole of index (UIndex,VIndex) in the poles table for this B-Spline surface. @@ -465,7 +471,7 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getResolution(self, Tolerance3D: float) -> Any: + def getResolution(self, Tolerance3D: float, /) -> Any: """ Computes two tolerance values for this B-Spline surface, based on the given tolerance in 3D space Tolerance3D. The tolerances computed are: @@ -489,7 +495,7 @@ class BSplineSurface(GeometrySurface): UIndex2: int = ..., VIndex1: int = ..., VIndex2: int = ..., - ) -> Any: + /,) -> Any: """ Moves the point of parameters (U, V) of this B-Spline surface to P. UIndex1, UIndex2, VIndex1 and VIndex2 are the indexes in the poles @@ -538,7 +544,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setUPeriodic(self, I1: int, I2: int) -> None: + def setUPeriodic(self, I1: int, I2: int, /) -> None: """ Modifies this surface to be periodic in the u parametric direction. To become periodic in a given parametric direction a surface must @@ -556,7 +562,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setVPeriodic(self, I1: int, I2: int) -> None: + def setVPeriodic(self, I1: int, I2: int, /) -> None: """ Modifies this surface to be periodic in the v parametric direction. To become periodic in a given parametric direction a surface must @@ -574,7 +580,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setUOrigin(self, Index: int) -> None: + def setUOrigin(self, Index: int, /) -> None: """ Assigns the knot of index Index in the knots table in the u parametric direction to be the origin of @@ -583,7 +589,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setVOrigin(self, Index: int) -> None: + def setVOrigin(self, Index: int, /) -> None: """ Assigns the knot of index Index in the knots table in the v parametric direction to be the origin of @@ -593,7 +599,7 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getUMultiplicity(self, UIndex: int) -> Any: + def getUMultiplicity(self, UIndex: int, /) -> Any: """ Returns, for this B-Spline surface, the multiplicity of the knot of index UIndex in the u parametric direction. @@ -601,7 +607,7 @@ class BSplineSurface(GeometrySurface): ... @constmethod - def getVMultiplicity(self, VIndex: int) -> Any: + def getVMultiplicity(self, VIndex: int, /) -> Any: """ Returns, for this B-Spline surface, the multiplicity of the knot of index VIndex in the v parametric direction. @@ -689,7 +695,7 @@ class BSplineSurface(GeometrySurface): dX: float = ..., Y0: float = ..., dY: float = ..., - ) -> None: + /,) -> None: """ interpolate(points) interpolate(zpoints, X0, dX, Y0, dY) @@ -726,13 +732,13 @@ class BSplineSurface(GeometrySurface): """ ... - def buildFromNSections(self, control_curves: Any) -> None: + def buildFromNSections(self, control_curves: Any, /) -> None: """ Builds a B-Spline from a list of control curves """ ... - def scaleKnotsToBounds(self, u0: float, u1: float, v0: float, v1: float) -> None: + def scaleKnotsToBounds(self, u0: float, u1: float, v0: float, v1: float, /) -> None: """ Scales the U and V knots lists to fit the specified bounds. The shape of the surface is not modified. diff --git a/src/Mod/Part/App/BezierCurve.pyi b/src/Mod/Part/App/BezierCurve.pyi index 2542a3cba0..2565b9d5ba 100644 --- a/src/Mod/Part/App/BezierCurve.pyi +++ b/src/Mod/Part/App/BezierCurve.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from BoundedCurve import BoundedCurve @@ -73,26 +77,26 @@ class BezierCurve(BoundedCurve): """ ... - def increase(self, Int: int = ...) -> None: + def increase(self, Int: int = ..., /) -> None: """ Increases the degree of this Bezier curve to Degree. As a result, the poles and weights tables are modified. """ ... - def insertPoleAfter(self, index: int) -> None: + def insertPoleAfter(self, index: int, /) -> None: """ Inserts after the pole of index. """ ... - def insertPoleBefore(self, index: int) -> None: + def insertPoleBefore(self, index: int, /) -> None: """ Inserts before the pole of index. """ ... - def removePole(self, Index: int) -> None: + def removePole(self, Index: int, /) -> None: """ Removes the pole of index Index from the table of poles of this Bezier curve. If this Bezier curve is rational, it can become non-rational. @@ -105,14 +109,14 @@ class BezierCurve(BoundedCurve): """ ... - def setPole(self, pole: Vector) -> None: + def setPole(self, pole: Vector, /) -> None: """ Set a pole of the Bezier curve. """ ... @constmethod - def getPole(self, index: int) -> Vector: + def getPole(self, index: int, /) -> Vector: """ Get a pole of the Bezier curve. """ @@ -125,7 +129,7 @@ class BezierCurve(BoundedCurve): """ ... - def setPoles(self, poles: List[Vector]) -> None: + def setPoles(self, poles: List[Vector], /) -> None: """ Set the poles of the Bezier curve. @@ -133,14 +137,14 @@ class BezierCurve(BoundedCurve): """ ... - def setWeight(self, id: int, weight: float) -> None: + def setWeight(self, id: int, weight: float, /) -> None: """ (id, weight) Set a weight of the Bezier curve. """ ... @constmethod - def getWeight(self, id: int) -> float: + def getWeight(self, id: int, /) -> float: """ Get a weight of the Bezier curve. """ @@ -154,7 +158,7 @@ class BezierCurve(BoundedCurve): ... @constmethod - def getResolution(self, Tolerance3D: float) -> float: + def getResolution(self, Tolerance3D: float, /) -> float: """ Computes for this Bezier curve the parametric tolerance (UTolerance) for a given 3D tolerance (Tolerance3D). @@ -164,7 +168,8 @@ class BezierCurve(BoundedCurve): """ ... - def interpolate(self, constraints: List[List], parameters: List[float] = ...) -> None: + def interpolate( + self, constraints: List[List], parameters: List[float] = ..., /) -> None: """ Interpolates a list of constraints. Each constraint is a list of a point and some optional derivatives diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index 7d19718587..9a40288eff 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import ( export, constmethod, @@ -106,7 +110,7 @@ class BezierSurface(GeometrySurface): """ ... - def increase(self, DegreeU: int, DegreeV: int) -> None: + def increase(self, DegreeU: int, DegreeV: int, /) -> None: """ increase(DegreeU: int, DegreeV: int) Increases the degree of this Bezier surface in the two @@ -114,7 +118,7 @@ class BezierSurface(GeometrySurface): """ ... - def insertPoleColAfter(self, index: int) -> None: + def insertPoleColAfter(self, index: int, /) -> None: """ Inserts into the table of poles of this surface, after the column of poles of index. @@ -125,7 +129,7 @@ class BezierSurface(GeometrySurface): """ ... - def insertPoleRowAfter(self, index: int) -> None: + def insertPoleRowAfter(self, index: int, /) -> None: """ Inserts into the table of poles of this surface, after the row of poles of index. @@ -136,7 +140,7 @@ class BezierSurface(GeometrySurface): """ ... - def insertPoleColBefore(self, index: int) -> None: + def insertPoleColBefore(self, index: int, /) -> None: """ Inserts into the table of poles of this surface, before the column of poles of index. @@ -147,7 +151,7 @@ class BezierSurface(GeometrySurface): """ ... - def insertPoleRowBefore(self, index: int) -> None: + def insertPoleRowBefore(self, index: int, /) -> None: """ Inserts into the table of poles of this surface, before the row of poles of index. @@ -158,7 +162,7 @@ class BezierSurface(GeometrySurface): """ ... - def removePoleCol(self, VIndex: int) -> None: + def removePoleCol(self, VIndex: int, /) -> None: """ removePoleRow(VIndex: int) Removes the column of poles of index VIndex from the table of @@ -167,7 +171,7 @@ class BezierSurface(GeometrySurface): """ ... - def removePoleRow(self, UIndex: int) -> None: + def removePoleRow(self, UIndex: int, /) -> None: """ removePoleRow(UIndex: int) Removes the row of poles of index UIndex from the table of @@ -176,7 +180,7 @@ class BezierSurface(GeometrySurface): """ ... - def segment(self, U1: float, U2: float, V1: float, V2: float) -> None: + def segment(self, U1: float, U2: float, V1: float, V2: float, /) -> None: """ segment(U1: double, U2: double, V1: double, V2: double) Modifies this Bezier surface by segmenting it between U1 and U2 @@ -200,26 +204,26 @@ class BezierSurface(GeometrySurface): """ ... - def setPole(self, pole: Any) -> None: + def setPole(self, pole: Any, /) -> None: """ Set a pole of the Bezier surface. """ ... - def setPoleCol(self, poles: Any) -> None: + def setPoleCol(self, poles: Any, /) -> None: """ Set the column of poles of the Bezier surface. """ ... - def setPoleRow(self, poles: Any) -> None: + def setPoleRow(self, poles: Any, /) -> None: """ Set the row of poles of the Bezier surface. """ ... @constmethod - def getPole(self, UIndex: int, VIndex: int) -> Any: + def getPole(self, UIndex: int, VIndex: int, /) -> Any: """ Get a pole of index (UIndex, VIndex) of the Bezier surface. """ @@ -232,21 +236,21 @@ class BezierSurface(GeometrySurface): """ ... - def setWeight(self, UIndex: int, VIndex: int, weight: float) -> None: + def setWeight(self, UIndex: int, VIndex: int, weight: float, /) -> None: """ Set the weight of pole of the index (UIndex, VIndex) for the Bezier surface. """ ... - def setWeightCol(self, VIndex: int, weights: Any) -> None: + def setWeightCol(self, VIndex: int, weights: Any, /) -> None: """ Set the weights of the poles in the column of poles of index VIndex of the Bezier surface. """ ... - def setWeightRow(self, UIndex: int, weights: Any) -> None: + def setWeightRow(self, UIndex: int, weights: Any, /) -> None: """ Set the weights of the poles in the row of poles of index UIndex of the Bezier surface. @@ -254,7 +258,7 @@ class BezierSurface(GeometrySurface): ... @constmethod - def getWeight(self, UIndex: int, VIndex: int) -> float: + def getWeight(self, UIndex: int, VIndex: int, /) -> float: """ Get a weight of the pole of index (UIndex, VIndex) of the Bezier surface. @@ -269,7 +273,7 @@ class BezierSurface(GeometrySurface): ... @constmethod - def getResolution(self, Tolerance3D: float) -> Tuple[float, float]: + def getResolution(self, Tolerance3D: float, /) -> Tuple[float, float]: """ Computes two tolerance values for this Bezier surface, based on the given tolerance in 3D space Tolerance3D. The tolerances computed are: diff --git a/src/Mod/Part/App/BodyBase.pyi b/src/Mod/Part/App/BodyBase.pyi index d4da3c618e..ce59058998 100644 --- a/src/Mod/Part/App/BodyBase.pyi +++ b/src/Mod/Part/App/BodyBase.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from PartFeature import PartFeature diff --git a/src/Mod/Part/App/BoundedCurve.pyi b/src/Mod/Part/App/BoundedCurve.pyi index a4235a85e1..65241d21fb 100644 --- a/src/Mod/Part/App/BoundedCurve.pyi +++ b/src/Mod/Part/App/BoundedCurve.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Any, Final diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index 1b891d20c2..9b4594c092 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import Tuple @@ -23,7 +27,7 @@ class AnaFilletAlgo(PyObjectBase): """ ... - def perform(self, radius: float) -> bool: + def perform(self, radius: float, /) -> bool: """ perform(radius) -> bool diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi index 88c891b63b..8b9f3faddc 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from typing import Tuple, overload @@ -25,7 +29,7 @@ class ChFi2d_ChamferAPI(PyObjectBase): """ ... - def perform(self, radius: float) -> bool: + def perform(self, radius: float, /) -> bool: """ perform(radius) -> bool @@ -33,7 +37,7 @@ class ChFi2d_ChamferAPI(PyObjectBase): """ ... - def result(self, point: object, solution: int = -1) -> Tuple[object, object, object]: + def result(self, point: object, solution: int = -1, /) -> Tuple[object, object, object]: """ result(point, solution=-1) diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi index a4e053d863..ec029446d2 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import overload @@ -26,7 +30,7 @@ class ChFi2d_FilletAPI(PyObjectBase): """ ... - def perform(self, radius: float) -> bool: + def perform(self, radius: float, /) -> bool: """ perform(radius) -> bool @@ -40,9 +44,7 @@ class ChFi2d_FilletAPI(PyObjectBase): """ ... - def result( - self, point: Point, solution: int = -1 - ) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]: + def result(self, point: Point, solution: int = -1, /) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]: """ result(point, solution=-1) diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi index 81d5535910..ae916ddc38 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Base.Vector import Vector @@ -26,7 +30,7 @@ class FilletAlgo(PyObjectBase): """ ... - def perform(self, radius: float) -> bool: + def perform(self, radius: float, /) -> bool: """ perform(radius) -> bool @@ -40,7 +44,7 @@ class FilletAlgo(PyObjectBase): """ ... - def result(self, point: Vector, solution: int = -1) -> tuple[object, object, object]: + def result(self, point: Vector, solution: int = -1, /) -> tuple[object, object, object]: """ result(point, solution=-1) diff --git a/src/Mod/Part/App/Circle.pyi b/src/Mod/Part/App/Circle.pyi index 1a3e9d0286..32a001b9b2 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from Conic import Conic diff --git a/src/Mod/Part/App/Cone.pyi b/src/Mod/Part/App/Cone.pyi index 4e7138d3b3..632d34cc82 100644 --- a/src/Mod/Part/App/Cone.pyi +++ b/src/Mod/Part/App/Cone.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from Base.Axis import Axis as AxisPy diff --git a/src/Mod/Part/App/Conic.pyi b/src/Mod/Part/App/Conic.pyi index 3d82016533..dd56278eb4 100644 --- a/src/Mod/Part/App/Conic.pyi +++ b/src/Mod/Part/App/Conic.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Final diff --git a/src/Mod/Part/App/Cylinder.pyi b/src/Mod/Part/App/Cylinder.pyi index 5eff313747..9116ac1c44 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from Circle import Circle diff --git a/src/Mod/Part/App/Ellipse.pyi b/src/Mod/Part/App/Ellipse.pyi index 8ede6845f8..716fb8e054 100644 --- a/src/Mod/Part/App/Ellipse.pyi +++ b/src/Mod/Part/App/Ellipse.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from Conic import Conic diff --git a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index d75e932b93..7aa4947c8e 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod from typing import Final, overload from Part.Geom2d import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi index a937287f37..d2533cdc18 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, overload from typing import Final from Part.Geom2d import Curve2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi index 1c4b12f80d..05a04a355e 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod from typing import Final, overload from Part import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index b85a9e0723..e108eca788 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, overload from typing import Final from Part.Geom2d import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index 286597a55a..1499f0921e 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod, overload from typing import Final from Part.Geom2d import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi index c25668c688..04a319f792 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from typing import Final, overload from Part.Curve2d import Curve2d @@ -71,7 +75,7 @@ class BSplineCurve2d(Curve2d): """ ... - def increaseDegree(self, Degree: int) -> None: + def increaseDegree(self, Degree: int, /) -> None: """ increaseDegree(Int=Degree) @@ -83,9 +87,13 @@ 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) @@ -99,7 +107,7 @@ class BSplineCurve2d(Curve2d): """ ... - def incrementMultiplicity(self, start: int, end: int, mult: int) -> None: + def incrementMultiplicity(self, start: int, end: int, mult: int, /) -> None: """ incrementMultiplicity(int start, int end, int mult) Raises multiplicity of knots by mult. @@ -108,7 +116,7 @@ class BSplineCurve2d(Curve2d): """ ... - def insertKnot(self, u: float, mult: int = 1, tol: float = 0.0) -> None: + def insertKnot(self, u: float, mult: int = 1, tol: float = 0.0, /) -> None: """ insertKnot(u, mult = 1, tol = 0.0) @@ -116,13 +124,7 @@ class BSplineCurve2d(Curve2d): """ ... - def insertKnots( - self, - list_of_floats: list[float], - list_of_ints: list[int], - tol: float = 0.0, - bool_add: bool = True, - ) -> None: + def insertKnots(self, list_of_floats: list[float], 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) @@ -142,7 +144,7 @@ class BSplineCurve2d(Curve2d): """ ... - def removeKnot(self, Index: int, M: int, tol: float) -> None: + def removeKnot(self, Index: int, M: int, tol: float, /) -> None: """ removeKnot(Index, M, tol) @@ -161,26 +163,26 @@ class BSplineCurve2d(Curve2d): """ ... - def segment(self, u1: float, u2: float) -> None: + def segment(self, u1: float, u2: float, /) -> None: """ segment(u1,u2) Modifies this B-Spline curve by segmenting it. """ ... - def setKnot(self, value: float) -> None: + def setKnot(self, value: float, /) -> None: """ Set a knot of the B-Spline curve. """ ... - def getKnot(self, index: int) -> float: + def getKnot(self, index: int, /) -> float: """ Get a knot of the B-Spline curve. """ ... - def setKnots(self, knots: list[float]) -> None: + def setKnots(self, knots: list[float], /) -> None: """ Set knots of the B-Spline curve. """ @@ -192,13 +194,13 @@ class BSplineCurve2d(Curve2d): """ ... - def setPole(self, P: Vector, Index: int) -> None: + def setPole(self, P: Vector, Index: int, /) -> None: """ Modifies this B-Spline curve by assigning P to the pole of index Index in the poles table. """ ... - def getPole(self, Index: int) -> Vector: + def getPole(self, Index: int, /) -> Vector: """ Get a pole of the B-Spline curve. """ @@ -210,13 +212,13 @@ class BSplineCurve2d(Curve2d): """ ... - def setWeight(self, weight: float, Index: int) -> None: + def setWeight(self, weight: float, Index: int, /) -> None: """ Set a weight of the B-Spline curve. """ ... - def getWeight(self, Index: int) -> float: + def getWeight(self, Index: int, /) -> float: """ Get a weight of the B-Spline curve. """ @@ -244,7 +246,7 @@ class BSplineCurve2d(Curve2d): """ ... - def movePoint(self, U: float, P: Vector, Index1: int, Index2: int) -> tuple[int, int]: + def movePoint(self, U: float, P: Vector, Index1: int, Index2: int, /) -> tuple[int, int]: """ movePoint(U, P, Index1, Index2) @@ -270,14 +272,14 @@ class BSplineCurve2d(Curve2d): """ ... - def setOrigin(self, Index: int) -> None: + def setOrigin(self, Index: int, /) -> None: """ Assigns the knot of index Index in the knots table as the origin of this periodic B-Spline curve. As a consequence, the knots and poles tables are modified. """ ... - def getMultiplicity(self, index: int) -> int: + def getMultiplicity(self, index: int, /) -> int: """ Returns the multiplicity of the knot of index from the knots table of this B-Spline curve. """ @@ -363,7 +365,7 @@ class BSplineCurve2d(Curve2d): """ ... - def buildFromPoles(self, poles: list[Vector]) -> None: + def buildFromPoles(self, poles: list[Vector], /) -> None: """ Builds a B-Spline by a list of poles. """ @@ -424,20 +426,20 @@ class BSplineCurve2d(Curve2d): """ ... - def toBiArcs(self, tolerance: float) -> list: + def toBiArcs(self, tolerance: float, /) -> list: """ toBiArcs(tolerance) -> list. Build a list of arcs and lines to approximate the B-spline. """ ... - def join(self, other: "BSplineCurve2d") -> "BSplineCurve2d": + def join(self, other: "BSplineCurve2d", /) -> "BSplineCurve2d": """ Build a new spline by joining this and a second spline. """ ... - def makeC1Continuous(self, tol: float = 1e-6, ang_tol: float = 1e-7) -> "BSplineCurve2d": + def makeC1Continuous(self, tol: float = 1e-6, ang_tol: float = 1e-7, /) -> "BSplineCurve2d": """ makeC1Continuous(tol = 1e-6, ang_tol = 1e-7) diff --git a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi index 684044a2eb..8896ec6f00 100644 --- a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.Curve2d import Curve2d from typing import Final, List @@ -54,7 +58,7 @@ class BezierCurve2d(Curve2d): """ ... - def increase(self, Degree: int) -> None: + def increase(self, Degree: int, /) -> None: """ increase(Int=Degree) Increases the degree of this Bezier curve to Degree. @@ -62,19 +66,19 @@ class BezierCurve2d(Curve2d): """ ... - def insertPoleAfter(self, index: int) -> None: + def insertPoleAfter(self, index: int, /) -> None: """ Inserts after the pole of index. """ ... - def insertPoleBefore(self, index: int) -> None: + def insertPoleBefore(self, index: int, /) -> None: """ Inserts before the pole of index. """ ... - def removePole(self, index: int) -> None: + def removePole(self, index: int, /) -> None: """ Removes the pole of index Index from the table of poles of this Bezier curve. If this Bezier curve is rational, it can become non-rational. @@ -87,13 +91,13 @@ class BezierCurve2d(Curve2d): """ ... - def setPole(self, index: int, pole: object) -> None: + def setPole(self, index: int, pole: object, /) -> None: """ Set a pole of the Bezier curve. """ ... - def getPole(self, index: int) -> object: + def getPole(self, index: int, /) -> object: """ Get a pole of the Bezier curve. """ @@ -105,19 +109,19 @@ class BezierCurve2d(Curve2d): """ ... - def setPoles(self, poles: List[object]) -> None: + def setPoles(self, poles: List[object], /) -> None: """ Set the poles of the Bezier curve. """ ... - def setWeight(self, index: int, weight: float) -> None: + def setWeight(self, index: int, weight: float, /) -> None: """ Set a weight of the Bezier curve. """ ... - def getWeight(self, index: int) -> float: + def getWeight(self, index: int, /) -> float: """ Get a weight of the Bezier curve. """ @@ -130,7 +134,7 @@ class BezierCurve2d(Curve2d): ... @constmethod - def getResolution(self, Tolerance3D: float) -> float: + def getResolution(self, Tolerance3D: float, /) -> float: """ Computes for this Bezier curve the parametric tolerance (UTolerance) for a given 3D tolerance (Tolerance3D). diff --git a/src/Mod/Part/App/Geom2d/Circle2d.pyi b/src/Mod/Part/App/Geom2d/Circle2d.pyi index 28fb16297a..4ebea3e42d 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod from typing import Final, overload, Tuple from Part.Geom2d import Conic2d diff --git a/src/Mod/Part/App/Geom2d/Conic2d.pyi b/src/Mod/Part/App/Geom2d/Conic2d.pyi index 2c725bd4aa..978f9ff1d4 100644 --- a/src/Mod/Part/App/Geom2d/Conic2d.pyi +++ b/src/Mod/Part/App/Geom2d/Conic2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from typing import Final from Part.Geom2d import Curve2d diff --git a/src/Mod/Part/App/Geom2d/Curve2d.pyi b/src/Mod/Part/App/Geom2d/Curve2d.pyi index a43d1a8f24..11a46cd0d5 100644 --- a/src/Mod/Part/App/Geom2d/Curve2d.pyi +++ b/src/Mod/Part/App/Geom2d/Curve2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Part.App.Geom2d.Geometry2d import Geometry2d @@ -103,13 +107,21 @@ 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 @@ -118,9 +130,13 @@ 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 @@ -129,19 +145,19 @@ class Curve2d(Geometry2d): """ ... - def value(self, u: float) -> Vector: + def value(self, u: float, /) -> Vector: """ Computes the point of parameter u on this curve """ ... - def tangent(self, u: float) -> Vector: + def tangent(self, u: float, /) -> Vector: """ Computes the tangent of parameter u on this curve """ ... - def parameter(self, point: Vector) -> float: + def parameter(self, point: Vector, /) -> float: """ Returns the parameter on the curve of the nearest orthogonal projection of the point. @@ -149,37 +165,41 @@ class Curve2d(Geometry2d): ... @constmethod - def normal(self, pos: float) -> Vector: + def normal(self, pos: float, /) -> Vector: """ Vector = normal(pos) - Get the normal vector at the given parameter [First|Last] if defined. """ ... @constmethod - def curvature(self, pos: float) -> float: + def curvature(self, pos: float, /) -> float: """ Float = curvature(pos) - Get the curvature at the given parameter [First|Last] if defined. """ ... @constmethod - def centerOfCurvature(self, pos: float) -> Vector: + def centerOfCurvature(self, pos: float, /) -> Vector: """ Vector = centerOfCurvature(float pos) - Get the center of curvature at the given parameter [First|Last] if defined. """ ... @constmethod - def intersectCC(self, other: "Curve2d") -> List[Vector]: + def intersectCC(self, other: "Curve2d", /) -> List[Vector]: """ Returns all intersection points between this curve and the given curve. """ ... @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) @@ -187,9 +207,7 @@ class Curve2d(Geometry2d): """ ... - def approximateBSpline( - self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2" - ) -> BSplineCurve: + def approximateBSpline(self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /) -> BSplineCurve: """ Approximates a curve of any type to a B-Spline curve approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> B-Spline curve diff --git a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi index 9170c5a3bd..1035e4aecc 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Final, overload from Base.Metadata import export, constmethod from Part.Conic2d import Conic2d diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index 3998aaf2fe..ca61d6d4b8 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import overload diff --git a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi index a6200783d4..d45cb3ff41 100644 --- a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.Conic2d import Conic2d from typing import Final, overload diff --git a/src/Mod/Part/App/Geom2d/Line2d.pyi b/src/Mod/Part/App/Geom2d/Line2d.pyi index 11ef90d158..236e158d5a 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.Geom2d.Curve2d import Curve2d from typing import overload diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index 5efde42b56..1c8af07de7 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from typing import Final, overload from Part.Geom2d import Curve2d diff --git a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi index c08abfe716..46c114cff5 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export from typing import Final from Part.Geom2d import Curve2d diff --git a/src/Mod/Part/App/Geom2d/Parabola2d.pyi b/src/Mod/Part/App/Geom2d/Parabola2d.pyi index e74e12f617..2bb801c7a6 100644 --- a/src/Mod/Part/App/Geom2d/Parabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Parabola2d.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.App.Geom2d.Conic2d import Conic2d from typing import Final diff --git a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi index bd2bd6b097..06bf0eb202 100644 --- a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi +++ b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import List diff --git a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi index afc98326f6..4f3975999a 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final, overload diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index b2a8c218fc..8e4bcabf12 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final, overload @@ -18,7 +22,7 @@ class PointConstraint(PyObjectBase): Licence: LGPL """ - def setOrder(self, order: str) -> None: + def setOrder(self, order: str, /) -> None: """ Allows you to set the order of continuity required for the constraints: G0, G1, and G2, controlled @@ -32,7 +36,7 @@ class PointConstraint(PyObjectBase): """ ... - def G0Criterion(self, U: float) -> float: + def G0Criterion(self, U: float, /) -> float: """ Returns the G0 criterion at the parametric point U on the curve. This is the greatest distance allowed between @@ -40,7 +44,7 @@ class PointConstraint(PyObjectBase): """ ... - def G1Criterion(self, U: float) -> float: + def G1Criterion(self, U: float, /) -> float: """ Returns the G1 criterion at the parametric point U on the curve. This is the greatest angle allowed between @@ -49,7 +53,7 @@ class PointConstraint(PyObjectBase): """ ... - def G2Criterion(self, U: float) -> float: + def G2Criterion(self, U: float, /) -> float: """ Returns the G2 criterion at the parametric point U on the curve. This is the greatest difference in curvature @@ -58,7 +62,7 @@ class PointConstraint(PyObjectBase): """ ... - def setG0Criterion(self, value: float) -> None: + def setG0Criterion(self, value: float, /) -> None: """ Allows you to set the G0 criterion. This is the law defining the greatest distance allowed between the @@ -68,7 +72,7 @@ class PointConstraint(PyObjectBase): """ ... - def setG1Criterion(self, value: float) -> None: + def setG1Criterion(self, value: float, /) -> None: """ Allows you to set the G1 criterion. This is the law defining the greatest angle allowed between the @@ -78,7 +82,7 @@ class PointConstraint(PyObjectBase): """ ... - def setG2Criterion(self, value: float) -> None: + def setG2Criterion(self, value: float, /) -> None: """ Allows you to set the G2 criterion. This is the law defining the greatest difference in curvature allowed between the @@ -94,7 +98,7 @@ class PointConstraint(PyObjectBase): """ ... - def setPnt2dOnSurf(self, p: "gp_Pnt2d") -> None: + def setPnt2dOnSurf(self, p: "gp_Pnt2d", /) -> None: """ Allows you to set a 2D point on the surface. It takes a gp_Pnt2d as an argument, representing the 2D point to be associated with the surface. """ diff --git a/src/Mod/Part/App/Geometry.pyi b/src/Mod/Part/App/Geometry.pyi index 8b51ce5bcf..afa1653c7a 100644 --- a/src/Mod/Part/App/Geometry.pyi +++ b/src/Mod/Part/App/Geometry.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Persistence import Persistence from App.Extension import Extension @@ -21,31 +25,31 @@ class Geometry(Persistence): Tag: Final[str] """Gives the tag of the geometry as string.""" - def mirror(self, geometry: "Geometry") -> None: + def mirror(self, geometry: "Geometry", /) -> None: """ Performs the symmetrical transformation of this geometric object """ ... - def rotate(self, angle: float, axis: Vector) -> None: + def rotate(self, angle: float, axis: Vector, /) -> None: """ Rotates this geometric object at angle Ang (in radians) about axis """ ... - def scale(self, center: Vector, factor: float) -> None: + def scale(self, center: Vector, factor: float, /) -> None: """ Applies a scaling transformation on this geometric object with a center and scaling factor """ ... - def transform(self, transformation: Matrix) -> None: + def transform(self, transformation: Matrix, /) -> None: """ Applies a transformation to this geometric object """ ... - def translate(self, vector: Vector) -> None: + def translate(self, vector: Vector, /) -> None: """ Translates this geometric object """ @@ -66,7 +70,7 @@ class Geometry(Persistence): ... @constmethod - def isSame(self, geom: "Geometry", tol: float, angulartol: float) -> bool: + def isSame(self, geom: "Geometry", tol: float, angulartol: float, /) -> bool: """ isSame(geom, tol, angulartol) -> boolean @@ -75,46 +79,46 @@ class Geometry(Persistence): ... @constmethod - def hasExtensionOfType(self, type_name: str) -> bool: + def hasExtensionOfType(self, type_name: str, /) -> bool: """ Returns a boolean indicating whether a geometry extension of the type indicated as a string exists. """ ... @constmethod - def hasExtensionOfName(self, name: str) -> bool: + def hasExtensionOfName(self, name: str, /) -> bool: """ Returns a boolean indicating whether a geometry extension with the name indicated as a string exists. """ ... @constmethod - def getExtensionOfType(self, type_name: str) -> Optional[Extension]: + def getExtensionOfType(self, type_name: str, /) -> Optional[Extension]: """ Gets the first geometry extension of the type indicated by the string. """ ... @constmethod - def getExtensionOfName(self, name: str) -> Optional[Extension]: + def getExtensionOfName(self, name: str, /) -> Optional[Extension]: """ Gets the first geometry extension of the name indicated by the string. """ ... - def setExtension(self, extension: Extension) -> None: + def setExtension(self, extension: Extension, /) -> None: """ Sets a geometry extension of the indicated type. """ ... - def deleteExtensionOfType(self, type_name: str) -> None: + def deleteExtensionOfType(self, type_name: str, /) -> None: """ Deletes all extensions of the indicated type. """ ... - def deleteExtensionOfName(self, name: str) -> None: + def deleteExtensionOfName(self, name: str, /) -> None: """ Deletes all extensions of the indicated name. """ diff --git a/src/Mod/Part/App/GeometryBoolExtension.pyi b/src/Mod/Part/App/GeometryBoolExtension.pyi index 1c550c6cf3..73ca3faa46 100644 --- a/src/Mod/Part/App/GeometryBoolExtension.pyi +++ b/src/Mod/Part/App/GeometryBoolExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometryExtension import GeometryExtension diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index bf68f44611..3dcba1a8ff 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Base.Rotation import Rotation as RotationPy @@ -146,35 +150,35 @@ class GeometryCurve(Geometry): ... @constmethod - def getD0(self, parameter: float) -> Vector: + def getD0(self, parameter: float, /) -> Vector: """ Returns the point of given parameter """ ... @constmethod - def getD1(self, parameter: float) -> Vector: + def getD1(self, parameter: float, /) -> Vector: """ Returns the point and first derivative of given parameter """ ... @constmethod - def getD2(self, parameter: float) -> Vector: + def getD2(self, parameter: float, /) -> Vector: """ Returns the point, first and second derivatives """ ... @constmethod - def getD3(self, parameter: float) -> Vector: + def getD3(self, parameter: float, /) -> Vector: """ Returns the point, first, second and third derivatives """ ... @constmethod - def getDN(self, n: int, parameter: float) -> Vector: + def getDN(self, n: int, parameter: float, /) -> Vector: """ Returns the n-th derivative """ @@ -186,7 +190,7 @@ class GeometryCurve(Geometry): uMin: Optional[float] = None, uMax: Optional[float] = None, Tol: Optional[float] = None, - ) -> float: + /,) -> float: """ Computes the length of a curve length([uMin, uMax, Tol]) -> float @@ -198,7 +202,7 @@ class GeometryCurve(Geometry): self, abscissa: Optional[float] = None, startingParameter: Optional[float] = None, - ) -> float: + /,) -> float: """ Returns the parameter on the curve of a point at the given distance from a starting parameter. parameterAtDistance([abscissa, startingParameter]) -> float @@ -206,49 +210,49 @@ class GeometryCurve(Geometry): ... @constmethod - def value(self, u: float) -> Vector: + def value(self, u: float, /) -> Vector: """ Computes the point of parameter u on this curve """ ... @constmethod - def tangent(self, u: float) -> Vector: + def tangent(self, u: float, /) -> Vector: """ Computes the tangent of parameter u on this curve """ ... @constmethod - def makeRuledSurface(self, otherCurve: "GeometryCurve") -> object: + def makeRuledSurface(self, otherCurve: "GeometryCurve", /) -> object: """ Make a ruled surface of this and the given curves """ ... @constmethod - def intersect2d(self, otherCurve: "GeometryCurve") -> List[Vector]: + def intersect2d(self, otherCurve: "GeometryCurve", /) -> List[Vector]: """ Get intersection points with another curve lying on a plane. """ ... @constmethod - def continuityWith(self, otherCurve: "GeometryCurve") -> str: + def continuityWith(self, otherCurve: "GeometryCurve", /) -> str: """ Computes the continuity of two curves """ ... @constmethod - def parameter(self, point: Vector) -> float: + def parameter(self, point: Vector, /) -> float: """ Returns the parameter on the curve of the nearest orthogonal projection of the point. """ ... @constmethod - def normal(self, pos: float) -> Vector: + def normal(self, pos: float, /) -> Vector: """ Vector = normal(pos) - Get the normal vector at the given parameter [First|Last] if defined """ @@ -318,21 +322,21 @@ class GeometryCurve(Geometry): ... @constmethod - def curvature(self, pos: float) -> float: + def curvature(self, pos: float, /) -> float: """ Float = curvature(pos) - Get the curvature at the given parameter [First|Last] if defined """ ... @constmethod - def centerOfCurvature(self, pos: float) -> Vector: + def centerOfCurvature(self, pos: float, /) -> Vector: """ Vector = centerOfCurvature(float pos) - Get the center of curvature at the given parameter [First|Last] if defined """ ... @constmethod - def intersect(self, curve_or_surface: object, precision: float) -> object: + def intersect(self, curve_or_surface: object, precision: float, /) -> object: """ Returns all intersection points and curve segments between the curve and the curve/surface. @@ -341,21 +345,21 @@ class GeometryCurve(Geometry): ... @constmethod - def intersectCS(self, surface: object) -> object: + def intersectCS(self, surface: object, /) -> object: """ Returns all intersection points and curve segments between the curve and the surface. """ ... @constmethod - def intersectCC(self, otherCurve: "GeometryCurve") -> List[Vector]: + def intersectCC(self, otherCurve: "GeometryCurve", /) -> List[Vector]: """ Returns all intersection points between this curve and the given curve. """ ... @constmethod - def toBSpline(self, points: Tuple[float, float]) -> "BSplineCurve": + def toBSpline(self, points: Tuple[float, float], /) -> "BSplineCurve": """ Converts a curve of any type (only part from First to Last) to BSpline curve. toBSpline((first: float, last: float)) -> BSplineCurve @@ -363,7 +367,7 @@ class GeometryCurve(Geometry): ... @constmethod - def toNurbs(self, points: Tuple[float, float]) -> "NurbsCurve": + def toNurbs(self, points: Tuple[float, float], /) -> "NurbsCurve": """ Converts a curve of any type (only part from First to Last) to NURBS curve. toNurbs((first: float, last: float)) -> NurbsCurve @@ -371,7 +375,7 @@ class GeometryCurve(Geometry): ... @constmethod - def trim(self, points: Tuple[float, float]) -> "TrimmedCurve": + def trim(self, points: Tuple[float, float], /) -> "TrimmedCurve": """ Returns a trimmed curve defined in the given parameter range. trim((first: float, last: float)) -> TrimmedCurve @@ -380,8 +384,7 @@ class GeometryCurve(Geometry): @constmethod def approximateBSpline( - self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2" - ) -> "BSplineCurve": + self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /) -> "BSplineCurve": """ Approximates a curve of any type to a B-Spline curve. approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> BSplineCurve @@ -395,7 +398,7 @@ class GeometryCurve(Geometry): ... @constmethod - def reversedParameter(self, U: float) -> float: + def reversedParameter(self, U: float, /) -> float: """ Returns the parameter on the reversed curve for the point of parameter U on this curve. """ diff --git a/src/Mod/Part/App/GeometryDoubleExtension.pyi b/src/Mod/Part/App/GeometryDoubleExtension.pyi index e91ba72224..af1af6688a 100644 --- a/src/Mod/Part/App/GeometryDoubleExtension.pyi +++ b/src/Mod/Part/App/GeometryDoubleExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometryExtension import GeometryExtension diff --git a/src/Mod/Part/App/GeometryExtension.pyi b/src/Mod/Part/App/GeometryExtension.pyi index 08c10000ee..3904ed194c 100644 --- a/src/Mod/Part/App/GeometryExtension.pyi +++ b/src/Mod/Part/App/GeometryExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final diff --git a/src/Mod/Part/App/GeometryIntExtension.pyi b/src/Mod/Part/App/GeometryIntExtension.pyi index 56c58a7aaa..18df13ea9d 100644 --- a/src/Mod/Part/App/GeometryIntExtension.pyi +++ b/src/Mod/Part/App/GeometryIntExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.GeometryExtension import GeometryExtension from typing import Final diff --git a/src/Mod/Part/App/GeometryStringExtension.pyi b/src/Mod/Part/App/GeometryStringExtension.pyi index d958dd5a8e..b64ab4cf8b 100644 --- a/src/Mod/Part/App/GeometryStringExtension.pyi +++ b/src/Mod/Part/App/GeometryStringExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometryExtension import GeometryExtension diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index 96404f7fb8..b64cac5fa0 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Rotation import Rotation as RotationPy from Base.Vector import Vector @@ -43,21 +47,21 @@ class GeometrySurface(Geometry): ... @constmethod - def getD0(self, param: float) -> Vector: + def getD0(self, param: float, /) -> Vector: """ Returns the point of given parameter """ ... @constmethod - def getDN(self, n: int) -> Any: + def getDN(self, n: int, /) -> Any: """ Returns the n-th derivative """ ... @constmethod - def value(self, u: float, v: float) -> Vector: + def value(self, u: float, v: float, /) -> Vector: """ value(u,v) -> Point Computes the point of parameter (u,v) on this surface @@ -65,7 +69,7 @@ class GeometrySurface(Geometry): ... @constmethod - def tangent(self, u: float, v: float) -> Tuple[Vector, Vector]: + def tangent(self, u: float, v: float, /) -> Tuple[Vector, Vector]: """ tangent(u,v) -> (Vector,Vector) Computes the tangent of parameter (u,v) on this geometry @@ -73,7 +77,7 @@ class GeometrySurface(Geometry): ... @constmethod - def normal(self, u: float, v: float) -> Vector: + def normal(self, u: float, v: float, /) -> Vector: """ normal(u,v) -> Vector Computes the normal of parameter (u,v) on this geometry @@ -114,7 +118,7 @@ class GeometrySurface(Geometry): ... @constmethod - def isUmbillic(self, u: float, v: float) -> bool: + def isUmbillic(self, u: float, v: float, /) -> bool: """ isUmbillic(u,v) -> bool Check if the geometry on parameter is an umbillic point, @@ -123,7 +127,7 @@ class GeometrySurface(Geometry): ... @constmethod - def curvature(self, u: float, v: float, type: str) -> float: + def curvature(self, u: float, v: float, type: str, /) -> float: """ curvature(u,v,type) -> float The value of type must be one of this: Max, Min, Mean or Gauss @@ -132,7 +136,7 @@ class GeometrySurface(Geometry): ... @constmethod - def curvatureDirections(self, u: float, v: float) -> Tuple[Vector, Vector]: + def curvatureDirections(self, u: float, v: float, /) -> Tuple[Vector, Vector]: """ curvatureDirections(u,v) -> (Vector,Vector) Computes the directions of maximum and minimum curvature @@ -150,7 +154,7 @@ class GeometrySurface(Geometry): ... @constmethod - def isPlanar(self, tolerance: float = 0.0) -> bool: + def isPlanar(self, tolerance: float = 0.0, /) -> bool: """ isPlanar([float]) -> Bool Checks if the surface is planar within a certain tolerance. @@ -158,14 +162,14 @@ class GeometrySurface(Geometry): ... @constmethod - def uIso(self, u: Tuple) -> Union[GeometryCurve, Line]: + def uIso(self, u: Tuple, /) -> Union[GeometryCurve, Line]: """ Builds the U isoparametric curve """ ... @constmethod - def vIso(self, v: Tuple) -> Union[GeometryCurve, Line]: + def vIso(self, v: Tuple, /) -> Union[GeometryCurve, Line]: """ Builds the V isoparametric curve """ @@ -266,7 +270,7 @@ class GeometrySurface(Geometry): ... @constmethod - def intersectSS(self, SecondSurface: Any, precision_code: int = 0) -> Any: + def intersectSS(self, SecondSurface: Any, precision_code: int = 0, /) -> Any: """ Returns all intersection curves of this surface and the given surface. The required arguments are: diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index 6e057c5471..33d5565b3f 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Final @@ -62,7 +66,7 @@ class HLRBRep_Algo(PyObjectBase): Licence: LGPL """ - def add(self, S, nbIso: int = 0) -> None: + def add(self, S, nbIso: int = 0, /) -> None: """ add(S, nbIso=0) @@ -72,7 +76,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def remove(self, i: int) -> None: + def remove(self, i: int, /) -> None: """ remove(i) @@ -80,7 +84,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def index(self, S) -> int: + def index(self, S, /) -> int: """ index(S) -> int @@ -121,7 +125,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def showAll(self, i: int = -1) -> None: + def showAll(self, i: int = -1, /) -> None: """ showAll(i=-1) @@ -130,7 +134,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def hide(self, i: int = -1, j: int = -1) -> None: + def hide(self, i: int = -1, j: int = -1, /) -> None: """ hide(i=-1, j=-1) @@ -140,7 +144,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def hideAll(self, i: int = -1) -> None: + def hideAll(self, i: int = -1, /) -> None: """ hideAll(i=-1) @@ -157,7 +161,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def select(self, i: int = -1) -> None: + def select(self, i: int = -1, /) -> None: """ select(i=-1) @@ -166,7 +170,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def selectEdge(self, i: int) -> None: + def selectEdge(self, i: int, /) -> None: """ selectEdge(i) @@ -174,7 +178,7 @@ class HLRBRep_Algo(PyObjectBase): """ ... - def selectFace(self, i: int) -> None: + def selectFace(self, i: int, /) -> None: """ selectFace(i) diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index 5d795cbb43..471bfa6ba0 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase from Part.TopoShapePy import TopoShape @@ -62,7 +66,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): same shape. """ - def load(self, S: TopoShape) -> None: + def load(self, S: TopoShape, /) -> None: """ load(S) @@ -70,7 +74,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): """ ... - def remove(self, i: int) -> None: + def remove(self, i: int, /) -> None: """ remove(i) @@ -87,7 +91,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): """ ... - def shape(self, i: int) -> TopoShape: + def shape(self, i: int, /) -> TopoShape: """ shape(i) -> TopoShape @@ -95,7 +99,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): """ ... - def index(self, S: TopoShape) -> int: + def index(self, S: TopoShape, /) -> int: """ index(S) -> int @@ -165,7 +169,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): """ ... - def outLinedShape(self, S: TopoShape) -> TopoShape: + def outLinedShape(self, S: TopoShape, /) -> TopoShape: """ outLinedShape(S) -> TopoShape diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index 0367ea61c0..04e91394dc 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.TopoShapePy import TopoShape from Base.PyObjectBase import PyObjectBase @@ -41,7 +45,7 @@ class HLRToShape(PyObjectBase): class. """ - def vCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def vCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ vCompound(Shape=None) -> TopoShape @@ -50,7 +54,7 @@ class HLRToShape(PyObjectBase): """ ... - def Rg1LineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def Rg1LineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ Rg1LineVCompound(Shape=None) -> TopoShape @@ -59,7 +63,7 @@ class HLRToShape(PyObjectBase): """ ... - def RgNLineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def RgNLineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ RgNLineVCompound(Shape=None) -> TopoShape @@ -68,7 +72,7 @@ class HLRToShape(PyObjectBase): """ ... - def outLineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def outLineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ outLineVCompound(Shape=None) -> TopoShape @@ -77,7 +81,7 @@ class HLRToShape(PyObjectBase): """ ... - def outLineVCompound3d(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def outLineVCompound3d(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ outLineVCompound(Shape=None) -> TopoShape @@ -86,7 +90,7 @@ class HLRToShape(PyObjectBase): """ ... - def isoLineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def isoLineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ isoLineVCompound(Shape=None) -> TopoShape @@ -95,7 +99,7 @@ class HLRToShape(PyObjectBase): """ ... - def hCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def hCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ hCompound(Shape=None) -> TopoShape @@ -104,7 +108,7 @@ class HLRToShape(PyObjectBase): """ ... - def Rg1LineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def Rg1LineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ Rg1LineHCompound(Shape=None) -> TopoShape @@ -113,7 +117,7 @@ class HLRToShape(PyObjectBase): """ ... - def RgNLineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def RgNLineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ RgNLineHCompound(Shape=None) -> TopoShape @@ -122,7 +126,7 @@ class HLRToShape(PyObjectBase): """ ... - def outLineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def outLineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ outLineHCompound(Shape=None) -> TopoShape @@ -131,7 +135,7 @@ class HLRToShape(PyObjectBase): """ ... - def isoLineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def isoLineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ isoLineHCompound(Shape=None) -> TopoShape diff --git a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi index b69947f70f..a79afc5930 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo @@ -40,7 +44,7 @@ class PolyHLRToShape(PyObjectBase): new computation of the algorithm, but only reads its internal results. """ - def update(self, algo: HLRBRep_PolyAlgo) -> None: + def update(self, algo: HLRBRep_PolyAlgo, /) -> None: """ update(algo: HLRBRep_PolyAlgo) """ @@ -58,7 +62,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def vCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def vCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ vCompound(Shape=None) -> TopoShape @@ -67,7 +71,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def Rg1LineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def Rg1LineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ Rg1LineVCompound(Shape=None) -> TopoShape @@ -76,7 +80,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def RgNLineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def RgNLineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ RgNLineVCompound(Shape=None) -> TopoShape @@ -85,7 +89,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def outLineVCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def outLineVCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ outLineVCompound(Shape=None) -> TopoShape @@ -94,7 +98,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def hCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def hCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ hCompound(Shape=None) -> TopoShape @@ -103,7 +107,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def Rg1LineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def Rg1LineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ Rg1LineHCompound(Shape=None) -> TopoShape @@ -112,7 +116,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def RgNLineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def RgNLineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ RgNLineHCompound(Shape=None) -> TopoShape @@ -121,7 +125,7 @@ class PolyHLRToShape(PyObjectBase): """ ... - def outLineHCompound(self, Shape: Optional[TopoShape] = None) -> TopoShape: + def outLineHCompound(self, Shape: Optional[TopoShape] = None, /) -> TopoShape: """ outLineHCompound(Shape=None) -> TopoShape diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index a0689db88b..15d2c0c0ba 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Conic import Conic diff --git a/src/Mod/Part/App/Line.pyi b/src/Mod/Part/App/Line.pyi index c2ec01a386..11cdb6395b 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve diff --git a/src/Mod/Part/App/LineSegment.pyi b/src/Mod/Part/App/LineSegment.pyi index 581d7ab8d5..a977096da6 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Type import Type from TrimmedCurve import TrimmedCurve diff --git a/src/Mod/Part/App/OffsetCurve.pyi b/src/Mod/Part/App/OffsetCurve.pyi index 4c50a5343b..c8c6d41ee8 100644 --- a/src/Mod/Part/App/OffsetCurve.pyi +++ b/src/Mod/Part/App/OffsetCurve.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve diff --git a/src/Mod/Part/App/OffsetSurface.pyi b/src/Mod/Part/App/OffsetSurface.pyi index 8266243613..23a145e35b 100644 --- a/src/Mod/Part/App/OffsetSurface.pyi +++ b/src/Mod/Part/App/OffsetSurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometrySurface import GeometrySurface diff --git a/src/Mod/Part/App/Parabola.pyi b/src/Mod/Part/App/Parabola.pyi index 096b42c475..741cc42407 100644 --- a/src/Mod/Part/App/Parabola.pyi +++ b/src/Mod/Part/App/Parabola.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Conic import Conic @@ -35,7 +39,7 @@ class Parabola(Conic): and its directrix. This distance is twice the focal length. """ - def compute(self, p1: Vector, p2: Vector, p3: Vector) -> None: + def compute(self, p1: Vector, p2: Vector, p3: Vector, /) -> None: """ compute(p1,p2,p3) -> None diff --git a/src/Mod/Part/App/Part2DObject.pyi b/src/Mod/Part/App/Part2DObject.pyi index 189a9c95b5..3f7a62668e 100644 --- a/src/Mod/Part/App/Part2DObject.pyi +++ b/src/Mod/Part/App/Part2DObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from PartFeature import PartFeature diff --git a/src/Mod/Part/App/PartFeature.pyi b/src/Mod/Part/App/PartFeature.pyi index 98f3722106..e2d9769cc9 100644 --- a/src/Mod/Part/App/PartFeature.pyi +++ b/src/Mod/Part/App/PartFeature.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from App.GeoFeature import GeoFeature from App.DocumentObject import DocumentObject diff --git a/src/Mod/Part/App/Plane.pyi b/src/Mod/Part/App/Plane.pyi index 5b408d3111..043b51023f 100644 --- a/src/Mod/Part/App/Plane.pyi +++ b/src/Mod/Part/App/Plane.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometrySurface import GeometrySurface diff --git a/src/Mod/Part/App/PlateSurface.pyi b/src/Mod/Part/App/PlateSurface.pyi index fecbd9252e..f801c976fd 100644 --- a/src/Mod/Part/App/PlateSurface.pyi +++ b/src/Mod/Part/App/PlateSurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometrySurface import GeometrySurface diff --git a/src/Mod/Part/App/Point.pyi b/src/Mod/Part/App/Point.pyi index f989df2b49..3be16f85f5 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Geometry import Geometry diff --git a/src/Mod/Part/App/RectangularTrimmedSurface.pyi b/src/Mod/Part/App/RectangularTrimmedSurface.pyi index 1cbe0fae18..f1b5de1ddc 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurface.pyi +++ b/src/Mod/Part/App/RectangularTrimmedSurface.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometrySurface import GeometrySurface from typing import Any, Final, Tuple @@ -31,7 +35,7 @@ class RectangularTrimmedSurface(GeometrySurface): BasisSurface: Final[Any] = None """Represents the basis surface from which the trimmed surface is derived.""" - def setTrim(self, params: Tuple[float, float, float, float]) -> None: + def setTrim(self, params: Tuple[float, float, float, float], /) -> None: """ setTrim(self, params: (u1, u2, v1, v2)) -> None diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index 0cc7246f96..dacefa6c53 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase from typing import Final diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi index 0a4f3d2749..267717aba7 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Part.App.TopoShapeEdge import TopoShapeEdge @@ -19,9 +23,11 @@ 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 eae87dc7e8..8b13d3fa16 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.ShapeFix_Root import ShapeFix_Root from Part.TopoShapeFace import TopoShapeFace diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi index 6819755e03..574bf56a28 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase @@ -15,13 +19,13 @@ class ShapeFix_FaceConnect(PyObjectBase): Licence: LGPL """ - def add(self, face) -> None: + def add(self, face, /) -> None: """ add(face, face) """ ... - def build(self, shell, sewtolerance, fixtolerance) -> None: + def build(self, shell, sewtolerance, fixtolerance, /) -> None: """ build(shell, sewtolerance, fixtolerance) """ diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index 8a5b45a32d..d2e4873263 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.App.TopoShape import TopoShape diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi index a9baae65f6..1efcd01bd6 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import overload @@ -16,7 +20,7 @@ class ShapeFix_FixSmallSolid(ShapeFix_Root): Licence: LGPL """ - def setFixMode(self, theMode: int) -> None: + def setFixMode(self, theMode: int, /) -> None: """ Set working mode for operator: - theMode = 0 use both WidthFactorThreshold and VolumeThreshold parameters diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi index f367b4a28b..a314490f7e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Part.App.TopoShapeCompound import TopoShapeCompound diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi index e5c67a64ea..e9b429c842 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import Final, overload diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi index 1940aae036..c80c8f7007 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.TopoShape import TopoShape diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index 862aacee9b..fdb86bf638 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from Part.App.TopoShape import TopoShape @@ -18,24 +22,24 @@ 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 = 0, 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: """ limitTolerance(shape, tmin, [tmax=0, ShapeEnum=SHAPE]) """ ... @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: ... + + 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 04160e2675..fd44d06384 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final, overload diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi index 2a468d75a9..371f015fa7 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi index b0d1d10624..478a53d208 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import overload diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi index 6f2d9e6ba7..573e9d49ff 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import overload diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 90cede9115..044104870d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final @@ -54,7 +58,7 @@ class ShapeFix_Wire(ShapeFix_Root): """ pass - def setSurface(self, surface: object, Placement: object = ...) -> None: + def setSurface(self, surface: object, Placement: object = ..., /) -> None: """ setSurface(surface, [Placement]) Set surface for the wire @@ -127,7 +131,7 @@ class ShapeFix_Wire(ShapeFix_Root): """ pass - def fixConnected(self, num: int) -> None: + def fixConnected(self, num: int, /) -> None: """ Applies fixConnected(num) to all edges in the wire Connection between first and last edges is treated only if @@ -176,13 +180,13 @@ class ShapeFix_Wire(ShapeFix_Root): """ pass - def fixGaps3d(self, num: int) -> None: + def fixGaps3d(self, num: int, /) -> None: """ Fixes gaps between ends of 3d curves on adjacent edges """ pass - def fixGaps2d(self, num: int) -> None: + def fixGaps2d(self, num: int, /) -> None: """ Fixes gaps between ends of pcurves on adjacent edges """ @@ -207,13 +211,13 @@ class ShapeFix_Wire(ShapeFix_Root): """ pass - def fixGap3d(self, num: int) -> None: + def fixGap3d(self, num: int, /) -> None: """ Fixes gap between ends of 3d curves on num-1 and num-th edges """ pass - def fixGap2d(self, num: int) -> None: + def fixGap2d(self, num: int, /) -> None: """ Fixes gap between ends of pcurves on num-1 and num-th edges """ diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index c213988ed5..0b1eaebb19 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi index c6383e7c47..77287d8ce4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from typing import Final diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index 50b9850eb2..e6c7ddc7bc 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import overload diff --git a/src/Mod/Part/App/Sphere.pyi b/src/Mod/Part/App/Sphere.pyi index 93df75794f..67d6c5257a 100644 --- a/src/Mod/Part/App/Sphere.pyi +++ b/src/Mod/Part/App/Sphere.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from Base.Vector import Vector diff --git a/src/Mod/Part/App/SurfaceOfExtrusion.pyi b/src/Mod/Part/App/SurfaceOfExtrusion.pyi index 7409c77dcb..4590904807 100644 --- a/src/Mod/Part/App/SurfaceOfExtrusion.pyi +++ b/src/Mod/Part/App/SurfaceOfExtrusion.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve diff --git a/src/Mod/Part/App/SurfaceOfRevolution.pyi b/src/Mod/Part/App/SurfaceOfRevolution.pyi index 52dcf70deb..9295628f01 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Placement import Placement from Base.Vector import Vector diff --git a/src/Mod/Part/App/TopoShape.pyi b/src/Mod/Part/App/TopoShape.pyi index 849018519f..6978bd6894 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Base.Matrix import Matrix @@ -70,13 +74,13 @@ class TopoShape(ComplexGeoData): """ ... - def loads(self, brep_str: str) -> None: + def loads(self, brep_str: str, /) -> None: """ Deserialize the content of this shape from a string in BREP format. """ ... - def read(self, filename: str) -> None: + def read(self, filename: str, /) -> None: """ Read in an IGES, STEP or BREP file. read(filename) @@ -94,7 +98,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def exportIges(self, filename: str) -> None: + def exportIges(self, filename: str, /) -> None: """ Export the content of this shape to an IGES file. exportIges(filename) @@ -102,7 +106,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def exportStep(self, filename: str) -> None: + def exportStep(self, filename: str, /) -> None: """ Export the content of this shape to an STEP file. exportStep(filename) @@ -110,7 +114,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def exportBrep(self, filename: str) -> None: + def exportBrep(self, filename: str, /) -> None: """ Export the content of this shape to an BREP file. exportBrep(filename) @@ -120,7 +124,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def exportBinary(self, filename: str) -> None: + def exportBinary(self, filename: str, /) -> None: """ Export the content of this shape in binary format to a file. exportBinary(filename) @@ -146,28 +150,28 @@ class TopoShape(ComplexGeoData): ... @constmethod - def exportStl(self, filename: str) -> None: + def exportStl(self, filename: str, /) -> None: """ Export the content of this shape to an STL mesh file. exportStl(filename) """ ... - def importBrep(self, filename: str) -> None: + def importBrep(self, filename: str, /) -> None: """ Load the shape from a file in BREP format. importBrep(filename) """ ... - def importBinary(self, filename: str) -> None: + def importBinary(self, filename: str, /) -> None: """ Import the content to this shape of a string in BREP format. importBinary(filename) """ ... - def importBrepFromString(self, s: str, displayProgressBar: bool = True) -> None: + def importBrepFromString(self, s: str, displayProgressBar: bool = True, /) -> None: """ Load the shape from a string that keeps the content in BREP format. importBrepFromString(string, [displayProgressBar=True]) @@ -177,7 +181,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def extrude(self, vector: Vector) -> TopoShape: + def extrude(self, vector: Vector, /) -> TopoShape: """ Extrude the shape along a vector. extrude(vector) -> Shape @@ -187,7 +191,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def revolve(self, base: Vector, direction: Vector, angle: float) -> TopoShape: + def revolve(self, base: Vector, direction: Vector, angle: float, /) -> TopoShape: """ Revolve the shape around an Axis to a given degree. revolve(base, direction, angle) @@ -229,7 +233,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def check(self, runBopCheck: bool = False) -> bool: + def check(self, runBopCheck: bool = False, /) -> bool: """ Checks the shape and report errors in the shape structure. check([runBopCheck = False]) @@ -240,7 +244,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def fuse(self, tools: Tuple[TopoShape, ...], tolerance: float = 0.0) -> TopoShape: + def fuse(self, tools: Tuple[TopoShape, ...], tolerance: float = 0.0, /) -> TopoShape: """ Union of this and a given (list of) topo shape. fuse(tool) -> Shape @@ -259,7 +263,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def multiFuse(self, tools: Tuple[TopoShape, ...], tolerance: float = 0.0) -> TopoShape: + def multiFuse(self, tools: Tuple[TopoShape, ...], tolerance: float = 0.0, /) -> TopoShape: """ Union of this and a given list of topo shapes. multiFuse((tool1,tool2,...),[tolerance=0.0]) -> Shape @@ -275,7 +279,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def common(self, tools: Tuple[TopoShape, ...], tolerance: float = 0.0) -> TopoShape: + def common(self, tools: Tuple[TopoShape, ...], tolerance: float = 0.0, /) -> TopoShape: """ Intersection of this and a given (list of) topo shape. common(tool) -> Shape @@ -292,9 +296,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def section( - self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, approximation: bool = False - ) -> TopoShape: + def section(self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, approximation: bool = False, /) -> TopoShape: """ Section of this with a given (list of) topo shape. section(tool,[approximation=False]) -> Shape @@ -313,7 +315,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def slices(self, direction: Vector, distancesList: List[float]) -> List: + def slices(self, direction: Vector, distancesList: List[float], /) -> List: """ Make slices of this shape. slices(direction, distancesList) --> Wires @@ -321,7 +323,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def slice(self, direction: Vector, distance: float) -> List: + def slice(self, direction: Vector, distance: float, /) -> List: """ Make single slice of this shape. slice(direction, distance) --> Wires @@ -329,7 +331,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def cut(self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0) -> TopoShape: + def cut(self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, /) -> TopoShape: """ Difference of this and a given (list of) topo shape cut(tool) -> Shape @@ -346,9 +348,7 @@ 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) @@ -386,7 +386,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def childShapes(self, cumOri: bool = True, cumLoc: bool = True) -> List: + def childShapes(self, cumOri: bool = True, cumLoc: bool = True, /) -> List: """ Return a list of sub-shapes that are direct children of this shape. childShapes([cumOri=True, cumLoc=True]) -> list @@ -400,14 +400,14 @@ class TopoShape(ComplexGeoData): ... @constmethod - def ancestorsOfType(self, shape: TopoShape, shape_type: str) -> List: + def ancestorsOfType(self, shape: TopoShape, shape_type: str, /) -> List: """ For a sub-shape of this shape get its ancestors of a type. ancestorsOfType(shape, shape type) -> list """ ... - def removeInternalWires(self, minimalArea: float) -> bool: + def removeInternalWires(self, minimalArea: float, /) -> bool: """ Removes internal wires (also holes) from the shape. removeInternalWires(minimalArea) -> bool @@ -415,7 +415,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def mirror(self, base: Vector, norm: Vector) -> TopoShape: + def mirror(self, base: Vector, norm: Vector, /) -> TopoShape: """ Mirror this shape on a given plane. mirror(base, norm) -> Shape @@ -425,7 +425,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def transformGeometry(self, matrix: Matrix) -> TopoShape: + def transformGeometry(self, matrix: Matrix, /) -> TopoShape: """ Apply geometric transformation on this or a copy the shape. transformGeometry(matrix) -> Shape @@ -449,7 +449,7 @@ 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 @@ -469,7 +469,7 @@ class TopoShape(ComplexGeoData): """ ... - def translate(self, vector: Vector) -> None: + def translate(self, vector: Vector, /) -> None: """ Apply the translation to the current location of this shape. translate(vector) @@ -477,14 +477,14 @@ class TopoShape(ComplexGeoData): ... @constmethod - def translated(self, vector: Vector) -> TopoShape: + def translated(self, vector: Vector, /) -> TopoShape: """ Create a new shape with translation translated(vector) -> shape """ ... - def rotate(self, base: Vector, dir: Vector, degree: float) -> None: + def rotate(self, base: Vector, dir: Vector, degree: float, /) -> None: """ Apply the rotation (base, dir, degree) to the current location of this shape rotate(base, dir, degree) @@ -494,14 +494,14 @@ class TopoShape(ComplexGeoData): ... @constmethod - def rotated(self, base: Vector, dir: Vector, degree: float) -> TopoShape: + def rotated(self, base: Vector, dir: Vector, degree: float, /) -> TopoShape: """ Create a new shape with rotation. rotated(base, dir, degree) -> shape """ ... - def scale(self, factor: float, base: Vector = None) -> None: + def scale(self, factor: float, base: Vector = None, /) -> None: """ Apply scaling with point and factor to this shape. scale(factor, [base=App.Vector(0,0,0)]) @@ -509,7 +509,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def scaled(self, factor: float, base: Vector = None) -> TopoShape: + def scaled(self, factor: float, base: Vector = None, /) -> TopoShape: """ Create a new shape with scale. scaled(factor, [base=App.Vector(0,0,0)]) -> shape @@ -528,10 +528,12 @@ 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: """ @@ -544,12 +546,14 @@ 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: + def makeThickness(self, faces: List, offset: float, tolerance: float, /) -> TopoShape: """ Hollow a solid according to given thickness and faces. makeThickness(List of faces, Offset (Float), Tolerance (Float)) -> Shape @@ -653,7 +657,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def makeWires(self, op: str = None) -> TopoShape: + def makeWires(self, op: str = None, /) -> TopoShape: """ Make wire(s) using the edges of this shape makeWires([op=None]) @@ -715,7 +719,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def isPartner(self, shape: TopoShape) -> bool: + def isPartner(self, shape: TopoShape, /) -> bool: """ Checks if both shapes share the same geometry. Placement and orientation may differ. @@ -724,7 +728,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def isSame(self, shape: TopoShape) -> bool: + def isSame(self, shape: TopoShape, /) -> bool: """ Checks if both shapes share the same geometry and placement. Orientation may differ. @@ -733,7 +737,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def isEqual(self, shape: TopoShape) -> bool: + def isEqual(self, shape: TopoShape, /) -> bool: """ Checks if both shapes are equal. This means geometry, placement and orientation are equal. @@ -758,7 +762,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def isCoplanar(self, shape: TopoShape, tol: float = None) -> bool: + def isCoplanar(self, shape: TopoShape, tol: float = None, /) -> bool: """ Checks if this shape is coplanar with the given shape. isCoplanar(shape,tol=None) -> bool @@ -774,16 +778,14 @@ class TopoShape(ComplexGeoData): ... @constmethod - def findPlane(self, tol: float = None) -> TopoShape: + def findPlane(self, tol: float = None, /) -> TopoShape: """ Returns a plane if the shape is planar findPlane(tol=None) -> Shape """ ... - 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 @@ -811,7 +813,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def project(self, shapeList: List[TopoShape]) -> TopoShape: + def project(self, shapeList: List[TopoShape], /) -> TopoShape: """ Project a list of shapes on this shape project(shapeList) -> Shape @@ -819,7 +821,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def makeParallelProjection(self, shape: TopoShape, dir: Vector) -> TopoShape: + def makeParallelProjection(self, shape: TopoShape, dir: Vector, /) -> TopoShape: """ Parallel projection of an edge or wire on this shape makeParallelProjection(shape, dir) -> Shape @@ -827,7 +829,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def makePerspectiveProjection(self, shape: TopoShape, pnt: Vector) -> TopoShape: + def makePerspectiveProjection(self, shape: TopoShape, pnt: Vector, /) -> TopoShape: """ Perspective projection of an edge or wire on this shape makePerspectiveProjection(shape, pnt) -> Shape @@ -864,7 +866,7 @@ class TopoShape(ComplexGeoData): """ ... - def makeShapeFromMesh(self, mesh: Tuple[List[Vector], List], tolerance: float) -> TopoShape: + def makeShapeFromMesh(self, mesh: Tuple[List[Vector], List], tolerance: float, /) -> TopoShape: """ Make a compound shape out of mesh data. makeShapeFromMesh((vertex,facets),tolerance) -> Shape @@ -886,7 +888,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def copy(self, copyGeom: bool = True, copyMesh: bool = False) -> TopoShape: + def copy(self, copyGeom: bool = True, copyMesh: bool = False, /) -> TopoShape: """ Create a copy of this shape copy(copyGeom=True, copyMesh=False) -> Shape @@ -911,7 +913,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def replaceShape(self, tupleList: List[Tuple[TopoShape, TopoShape]]) -> TopoShape: + def replaceShape(self, tupleList: List[Tuple[TopoShape, TopoShape]], /) -> TopoShape: """ Replace a sub-shape with a new shape and return a new shape. replaceShape(tupleList) -> Shape @@ -921,7 +923,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def removeShape(self, shapeList: List[TopoShape]) -> TopoShape: + def removeShape(self, shapeList: List[TopoShape], /) -> TopoShape: """ Remove a sub-shape and return a new shape. removeShape(shapeList) -> Shape @@ -931,7 +933,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def defeaturing(self, shapeList: List[TopoShape]) -> TopoShape: + def defeaturing(self, shapeList: List[TopoShape], /) -> TopoShape: """ Remove a feature defined by supplied faces and return a new shape. defeaturing(shapeList) -> Shape @@ -941,7 +943,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def isInside(self, point: Vector, tolerance: float, checkFace: bool) -> bool: + def isInside(self, point: Vector, tolerance: float, checkFace: bool, /) -> bool: """ Checks whether a point is inside or outside the shape. isInside(point, tolerance, checkFace) => Boolean @@ -959,7 +961,7 @@ 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) @@ -967,9 +969,7 @@ 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) @@ -996,7 +996,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def getElement(self, elementName: str, silent: bool = False) -> TopoShape: + def getElement(self, elementName: str, silent: bool = False, /) -> TopoShape: """ Returns a SubElement getElement(elementName, [silent = False]) -> Face | Edge | Vertex @@ -1007,14 +1007,14 @@ class TopoShape(ComplexGeoData): ... @constmethod - def countElement(self, type: str) -> int: + def countElement(self, type: str, /) -> int: """ Returns the count of a type of element countElement(type) -> int """ ... - 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 @@ -1023,12 +1023,7 @@ class TopoShape(ComplexGeoData): """ ... - def mapShapes( - self, - generated: List[Tuple[TopoShape, TopoShape]], - modified: List[Tuple[TopoShape, TopoShape]], - op: str = "", - ) -> None: + def mapShapes(self, generated: List[Tuple[TopoShape, TopoShape]], modified: List[Tuple[TopoShape, TopoShape]], op: str = "", /) -> None: """ mapShapes(generated, modified, op='') @@ -1045,7 +1040,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def getElementHistory(self, name: str) -> Union[Tuple[str, str, List[str]], None]: + def getElementHistory(self, name: str, /) -> Union[Tuple[str, str, List[str]], None]: """ getElementHistory(name) - returns the element mapped name history @@ -1057,7 +1052,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def getTolerance(self, mode: int, ShapeType: str = "Shape") -> float: + def getTolerance(self, mode: int, ShapeType: str = "Shape", /) -> float: """ Determines a tolerance from the ones stored in a shape getTolerance(mode, ShapeType=Shape) -> float @@ -1076,7 +1071,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def overTolerance(self, value: float, ShapeType: str = "Shape") -> List[TopoShape]: + def overTolerance(self, value: float, ShapeType: str = "Shape", /) -> List[TopoShape]: """ Determines which shapes have a tolerance over the given value overTolerance(value, [ShapeType=Shape]) -> ShapeList @@ -1086,9 +1081,7 @@ 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 @@ -1098,7 +1091,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def globalTolerance(self, mode: int) -> float: + def globalTolerance(self, mode: int, /) -> float: """ Returns the computed tolerance according to the mode globalTolerance(mode) -> float @@ -1110,7 +1103,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def fixTolerance(self, value: float, ShapeType: str = "Shape") -> None: + def fixTolerance(self, value: float, ShapeType: str = "Shape", /) -> None: """ Sets (enforces) tolerances in a shape to the given value fixTolerance(value, [ShapeType=Shape]) @@ -1124,7 +1117,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def limitTolerance(self, tmin: float, tmax: float = 0, ShapeType: str = "Shape") -> bool: + def limitTolerance(self, tmin: float, tmax: float = 0, ShapeType: str = "Shape", /) -> bool: """ Limits tolerances in a shape limitTolerance(tmin, [tmax=0, ShapeType=Shape]) -> bool @@ -1144,9 +1137,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def optimalBoundingBox( - self, useTriangulation: bool = True, useShapeTolerance: bool = False - ) -> BoundBox: + def optimalBoundingBox(self, useTriangulation: bool = True, useShapeTolerance: bool = False, /) -> BoundBox: """ Get the optimal bounding box optimalBoundingBox([useTriangulation = True, useShapeTolerance = False]) -> bound box @@ -1160,7 +1151,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def findSubShape(self, shape: TopoShape) -> Tuple[Union[str, None], int]: + def findSubShape(self, shape: TopoShape, /) -> Tuple[Union[str, None], int]: """ findSubShape(shape) -> (type_name, index) @@ -1200,7 +1191,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def getChildShapes(self, shapetype: str, avoidtype: str = "") -> List[TopoShape]: + def getChildShapes(self, shapetype: str, avoidtype: str = "", /) -> List[TopoShape]: """ getChildShapes(shapetype, avoidtype='') -> list(Shape) diff --git a/src/Mod/Part/App/TopoShapeCompSolid.pyi b/src/Mod/Part/App/TopoShapeCompSolid.pyi index 34a80fee85..d9edec4abe 100644 --- a/src/Mod/Part/App/TopoShapeCompSolid.pyi +++ b/src/Mod/Part/App/TopoShapeCompSolid.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from TopoShape import TopoShape @@ -17,7 +21,7 @@ class TopoShapeCompSolid(TopoShape): TopoShapeCompSolid is the OpenCasCade topological compound solid wrapper """ - def add(self, solid: TopoShape) -> None: + def add(self, solid: TopoShape, /) -> None: """ Add a solid to the compound. add(solid) diff --git a/src/Mod/Part/App/TopoShapeCompound.pyi b/src/Mod/Part/App/TopoShapeCompound.pyi index b78f52c4cb..7b7b44c503 100644 --- a/src/Mod/Part/App/TopoShapeCompound.pyi +++ b/src/Mod/Part/App/TopoShapeCompound.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from TopoShape import TopoShape @@ -16,7 +20,7 @@ class TopoShapeCompound(TopoShape): Licence: LGPL """ - def add(self, shape: TopoShape) -> None: + def add(self, shape: TopoShape, /) -> None: """ Add a shape to the compound. add(shape) @@ -24,9 +28,7 @@ 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 c9c9cce0f5..6ced86b057 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from Wire import Wire @@ -141,7 +145,7 @@ class TopoShapeEdge(TopoShape): """Returns the continuity""" @constmethod - def getParameterByLength(self, pos: float, tolerance: float = 1e-7) -> float: + def getParameterByLength(self, pos: float, tolerance: float = 1e-7, /) -> float: """ Get the value of the primary parameter at the given distance along the cartesian length of the edge. getParameterByLength(pos, [tolerance = 1e-7]) -> Float @@ -161,7 +165,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def tangentAt(self, paramval: float) -> Vector: + def tangentAt(self, paramval: float, /) -> Vector: """ Get the tangent direction at the given primary parameter value along the Edge if it is defined tangentAt(paramval) -> Vector @@ -199,7 +203,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def valueAt(self, paramval: float) -> Vector: + def valueAt(self, paramval: float, /) -> Vector: """ Get the value of the cartesian parameter value at the given parameter value along the Edge valueAt(paramval) -> Vector @@ -241,7 +245,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def parameters(self, face: object = ...) -> List[float]: + def parameters(self, face: object = ..., /) -> List[float]: """ Get the list of parameters of the tessellation of an edge. parameters([face]) -> list @@ -252,7 +256,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def parameterAt(self, vertex: object) -> float: + def parameterAt(self, vertex: object, /) -> float: """ Get the parameter at the given vertex if lying on the edge parameterAt(Vertex) -> Float @@ -260,7 +264,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def normalAt(self, paramval: float) -> Vector: + def normalAt(self, paramval: float, /) -> Vector: """ Get the normal direction at the given parameter value along the Edge if it is defined normalAt(paramval) -> Vector @@ -298,7 +302,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def derivative1At(self, paramval: float) -> Vector: + def derivative1At(self, paramval: float, /) -> Vector: """ Get the first derivative at the given parameter value along the Edge if it is defined derivative1At(paramval) -> Vector @@ -336,7 +340,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def derivative2At(self, paramval: float) -> Vector: + def derivative2At(self, paramval: float, /) -> Vector: """ Get the second derivative at the given parameter value along the Edge if it is defined derivative2At(paramval) -> Vector @@ -374,7 +378,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def derivative3At(self, paramval: float) -> Vector: + def derivative3At(self, paramval: float, /) -> Vector: """ Get the third derivative at the given parameter value along the Edge if it is defined derivative3At(paramval) -> Vector @@ -412,7 +416,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def curvatureAt(self, paramval: float) -> float: + def curvatureAt(self, paramval: float, /) -> float: """ Get the curvature at the given parameter [First|Last] if defined curvatureAt(paramval) -> Float @@ -420,7 +424,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def centerOfCurvatureAt(self, paramval: float) -> Vector: + def centerOfCurvatureAt(self, paramval: float, /) -> Vector: """ Get the center of curvature at the given parameter [First|Last] if defined centerOfCurvatureAt(paramval) -> Vector @@ -428,7 +432,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def firstVertex(self, Orientation: bool = False) -> Vertex: + def firstVertex(self, Orientation: bool = False, /) -> Vertex: """ Returns the Vertex of orientation FORWARD in this edge. firstVertex([Orientation=False]) -> Vertex @@ -439,7 +443,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def lastVertex(self, Orientation: bool = False) -> Vertex: + def lastVertex(self, Orientation: bool = False, /) -> Vertex: """ Returns the Vertex of orientation REVERSED in this edge. lastVertex([Orientation=False]) -> Vertex @@ -527,7 +531,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def split(self, paramval: float) -> Wire: + def split(self, paramval: float, /) -> Wire: """ Splits the edge at the given parameter values and builds a wire out of it split(paramval) -> Wire @@ -545,7 +549,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def isSeam(self, Face: object) -> bool: + def isSeam(self, Face: object, /) -> bool: """ Checks whether the edge is a seam edge. isSeam(Face) @@ -553,7 +557,7 @@ class TopoShapeEdge(TopoShape): ... @constmethod - def curveOnSurface(self, idx: int) -> Tuple[object, object, object, float, float]: + def curveOnSurface(self, idx: int, /) -> Tuple[object, object, object, float, float]: """ Returns the 2D curve, the surface, the placement and the parameter range of index idx. curveOnSurface(idx) -> None or tuple diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 2794ba48ca..8fffb1fdcf 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Vector import Vector from TopoShape import TopoShape @@ -87,7 +91,7 @@ class TopoShapeFace(TopoShape): eigen vectors of the matrix of inertia of the system. """ - def addWire(self, wire: object) -> None: + def addWire(self, wire: object, /) -> None: """ Adds a wire to the face. addWire(wire) @@ -95,7 +99,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def makeOffset(self, dist: float) -> object: + def makeOffset(self, dist: float, /) -> object: """ Offset the face by a given amount. makeOffset(dist) -> Face @@ -131,7 +135,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def tangentAt(self, u: float, v: float) -> Vector: + def tangentAt(self, u: float, v: float, /) -> Vector: """ Get the tangent in u and v isoparametric at the given point if defined tangentAt(u,v) -> Vector @@ -139,7 +143,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def valueAt(self, u: float, v: float) -> Vector: + def valueAt(self, u: float, v: float, /) -> Vector: """ Get the point at the given parameter [0|Length] if defined valueAt(u,v) -> Vector @@ -147,7 +151,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def normalAt(self, pos: float) -> Vector: + def normalAt(self, pos: float, /) -> Vector: """ Get the normal vector at the given parameter [0|Length] if defined normalAt(pos) -> Vector @@ -155,7 +159,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def derivative1At(self, u: float, v: float) -> Tuple[Vector, Vector]: + def derivative1At(self, u: float, v: float, /) -> Tuple[Vector, Vector]: """ Get the first derivative at the given parameter [0|Length] if defined derivative1At(u,v) -> (vectorU,vectorV) @@ -163,7 +167,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def derivative2At(self, u: float, v: float) -> Tuple[Vector, Vector]: + def derivative2At(self, u: float, v: float, /) -> Tuple[Vector, Vector]: """ Vector = d2At(pos) - Get the second derivative at the given parameter [0|Length] if defined derivative2At(u,v) -> (vectorU,vectorV) @@ -171,7 +175,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def curvatureAt(self, u: float, v: float) -> float: + def curvatureAt(self, u: float, v: float, /) -> float: """ Get the curvature at the given parameter [0|Length] if defined curvatureAt(u,v) -> Float @@ -179,7 +183,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def isPartOfDomain(self, u: float, v: float) -> bool: + def isPartOfDomain(self, u: float, v: float, /) -> bool: """ Check if a given (u,v) pair is inside the domain of a face isPartOfDomain(u,v) -> bool @@ -187,7 +191,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def makeHalfSpace(self, pos: object) -> object: + def makeHalfSpace(self, pos: object, /) -> object: """ Make a half-space solid by this face and a reference point. makeHalfSpace(pos) -> Shape @@ -216,7 +220,7 @@ class TopoShapeFace(TopoShape): ... @constmethod - def curveOnSurface(self, Edge: object) -> Optional[Tuple[object, float, float]]: + def curveOnSurface(self, Edge: object, /) -> Optional[Tuple[object, float, float]]: """ Returns the curve associated to the edge in the parametric space of the face. curveOnSurface(Edge) -> (curve, min, max) or None @@ -226,7 +230,7 @@ class TopoShapeFace(TopoShape): """ ... - def cutHoles(self, list_of_wires: List[object]) -> None: + def cutHoles(self, list_of_wires: List[object], /) -> None: """ Cut holes in the face. cutHoles(list_of_wires) diff --git a/src/Mod/Part/App/TopoShapeShell.pyi b/src/Mod/Part/App/TopoShapeShell.pyi index 1d86b69f65..9f35df02af 100644 --- a/src/Mod/Part/App/TopoShapeShell.pyi +++ b/src/Mod/Part/App/TopoShapeShell.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Final, Dict @@ -68,7 +72,7 @@ class TopoShapeShell(TopoShape): eigen vectors of the matrix of inertia of the system. """ - def add(self, face: object) -> None: + def add(self, face: object, /) -> None: """ Add a face to the shell. add(face) @@ -92,7 +96,7 @@ class TopoShapeShell(TopoShape): ... @constmethod - def makeHalfSpace(self, point: object) -> object: + def makeHalfSpace(self, point: object, /) -> object: """ Make a half-space solid by this shell and a reference point. makeHalfSpace(point) -> Solid diff --git a/src/Mod/Part/App/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index 11f971e312..957e563916 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from TopoShape import TopoShape from Base.Vector import Vector @@ -77,7 +81,7 @@ class TopoShapeSolid(TopoShape): """ @constmethod - def getMomentOfInertia(self, point: Vector, direction: Vector) -> float: + def getMomentOfInertia(self, point: Vector, direction: Vector, /) -> float: """ computes the moment of inertia of the material system about the axis A. getMomentOfInertia(point,direction) -> Float @@ -85,7 +89,7 @@ class TopoShapeSolid(TopoShape): ... @constmethod - def getRadiusOfGyration(self, point: Vector, direction: Vector) -> float: + def getRadiusOfGyration(self, point: Vector, direction: Vector, /) -> float: """ Returns the radius of gyration of the current system about the axis A. getRadiusOfGyration(point,direction) -> Float @@ -94,10 +98,13 @@ class TopoShapeSolid(TopoShape): @overload @constmethod - def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float) -> TopoShape: ... + def offsetFaces( + self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: ... + @overload @constmethod - def offsetFaces(self, facesDict: Dict[TopoShape, float]) -> TopoShape: ... + def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: ... + @constmethod def offsetFaces(self, *args, **kwargs) -> TopoShape: """ diff --git a/src/Mod/Part/App/TopoShapeVertex.pyi b/src/Mod/Part/App/TopoShapeVertex.pyi index 44685da8c5..7f8d8c9f75 100644 --- a/src/Mod/Part/App/TopoShapeVertex.pyi +++ b/src/Mod/Part/App/TopoShapeVertex.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Vector import Vector from TopoShape import TopoShape diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index b67fe61c91..179c81c3e0 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Dict, List, Final, overload, Optional @@ -85,14 +89,15 @@ class TopoShapeWire(TopoShape): """ ... - def add(self, edge: object) -> None: + def add(self, edge: object, /) -> None: """ Add an edge to the wire add(edge) """ ... - def fixWire(self, face: Optional[object] = None, tolerance: Optional[float] = None) -> None: + def fixWire( + self, face: Optional[object] = None, tolerance: Optional[float] = None, /) -> None: """ Fix wire fixWire([face, tolerance]) @@ -102,7 +107,7 @@ class TopoShapeWire(TopoShape): ... @constmethod - def makeHomogenousWires(self, wire: object) -> object: + def makeHomogenousWires(self, wire: object, /) -> object: """ Make this and the given wire homogeneous to have the same number of edges makeHomogenousWires(wire) -> Wire @@ -110,7 +115,7 @@ class TopoShapeWire(TopoShape): ... @constmethod - def makePipe(self, profile: object) -> object: + def makePipe(self, profile: object, /) -> object: """ Make a pipe by sweeping along a wire. makePipe(profile) -> Shape @@ -124,7 +129,7 @@ class TopoShapeWire(TopoShape): isSolid: bool = False, isFrenet: bool = False, transition: int = 0, - ) -> object: + /,) -> object: """ Make a loft defined by a list of profiles along a wire. makePipeShell(shapeList,[isSolid=False,isFrenet=False,transition=0]) -> Shape diff --git a/src/Mod/Part/App/Toroid.pyi b/src/Mod/Part/App/Toroid.pyi index 4353a40f11..58d6618815 100644 --- a/src/Mod/Part/App/Toroid.pyi +++ b/src/Mod/Part/App/Toroid.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.GeometrySurface import GeometrySurface from Base.Vector import Vector diff --git a/src/Mod/Part/App/TrimmedCurve.pyi b/src/Mod/Part/App/TrimmedCurve.pyi index ee15e49b64..49e70f55b2 100644 --- a/src/Mod/Part/App/TrimmedCurve.pyi +++ b/src/Mod/Part/App/TrimmedCurve.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from BoundedCurve import BoundedCurve @@ -17,7 +21,7 @@ class TrimmedCurve(BoundedCurve): Licence: LGPL """ - def setParameterRange(self, first: float, last: float) -> None: + def setParameterRange(self, first: float, last: float, /) -> None: """ Re-trims this curve to the provided parameter range ([Float=First, Float=Last]) """ diff --git a/src/Mod/Part/Gui/ViewProviderPartExt.pyi b/src/Mod/Part/Gui/ViewProviderPartExt.pyi index dc9b6adea9..717c361643 100644 --- a/src/Mod/Part/Gui/ViewProviderPartExt.pyi +++ b/src/Mod/Part/Gui/ViewProviderPartExt.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index b8309421ad..773fcbe946 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.BodyBase import BodyBase from typing import Final, overload @@ -17,7 +21,7 @@ class Body(BodyBase): VisibleFeature: Final[object] = ... """Return the visible feature of this body""" - def insertObject(self, feature: object, target: object, after: bool = False) -> None: + def insertObject(self, feature: object, target: object, after: bool = False, /) -> None: """ insertObject(feature, target, after=False) Insert the feature into the body after the given feature. diff --git a/src/Mod/PartDesign/App/Feature.pyi b/src/Mod/PartDesign/App/Feature.pyi index e1d3da4074..1bb573e5c8 100644 --- a/src/Mod/PartDesign/App/Feature.pyi +++ b/src/Mod/PartDesign/App/Feature.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.PartFeature import PartFeature from typing import Optional, overload diff --git a/src/Mod/PartDesign/Gui/ViewProvider.pyi b/src/Mod/PartDesign/Gui/ViewProvider.pyi index 2bee076209..bbfd8fa060 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Gui.ViewProviderPartExt import ViewProviderPartExt from typing import Final, overload @@ -16,7 +20,7 @@ class ViewProvider(ViewProviderPartExt): Licence: LGPL """ - def setBodyMode(self, mode: bool) -> None: + def setBodyMode(self, mode: bool, /) -> None: """ setBodyMode(bool): body mode means that the object is part of a body and that the body is used to set the visual properties, not the features. Hence @@ -24,7 +28,7 @@ class ViewProvider(ViewProviderPartExt): """ ... - def makeTemporaryVisible(self, visible: bool) -> None: + def makeTemporaryVisible(self, visible: bool, /) -> None: """ makeTemporaryVisible(bool): makes this viewprovider visible in the scene graph without changing any properties, not the visibility one and also not diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index f84dabb13e..34a931d244 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import constmethod, export diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index 267c1bc606..7021edaae5 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index 14b7b6729d..83f91b16b2 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index 5c3263398c..6e78fe8ba7 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index 375e49c63f..d793ea0f34 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Sketcher/App/Constraint.pyi b/src/Mod/Sketcher/App/Constraint.pyi index 8c93386409..bda851deae 100644 --- a/src/Mod/Sketcher/App/Constraint.pyi +++ b/src/Mod/Sketcher/App/Constraint.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Persistence import Persistence from typing import Final diff --git a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi index 3b809b32fb..e809190d31 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension from typing import Final, overload diff --git a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi index 3c5ac0082d..37580a7033 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List diff --git a/src/Mod/Sketcher/App/GeometryFacade.pyi b/src/Mod/Sketcher/App/GeometryFacade.pyi index a78e115d2e..561be3cb90 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.pyi +++ b/src/Mod/Sketcher/App/GeometryFacade.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from Base.Axis import Axis @@ -61,71 +65,71 @@ class GeometryFacade(BaseClass): """ ... - def rotate(self, Ang: float, axis: Axis) -> None: + def rotate(self, Ang: float, axis: Axis, /) -> None: """ Rotates this geometric object at angle Ang (in radians) about axis """ ... - def scale(self, center: CoordinateSystem, factor: float) -> None: + def scale(self, center: CoordinateSystem, factor: float, /) -> None: """ Applies a scaling transformation on this geometric object with a center and scaling factor """ ... - def transform(self, transformation: Placement) -> None: + def transform(self, transformation: Placement, /) -> None: """ Applies a transformation to this geometric object """ ... - def translate(self, offset: Vector) -> None: + def translate(self, offset: Vector, /) -> None: """ Translates this geometric object """ ... @constmethod - def hasExtensionOfType(self, type_str: str) -> bool: + def hasExtensionOfType(self, type_str: str, /) -> bool: """ Returns a boolean indicating whether a geometry extension of the type indicated as a string exists. """ ... @constmethod - def hasExtensionOfName(self, name: str) -> bool: + def hasExtensionOfName(self, name: str, /) -> bool: """ Returns a boolean indicating whether a geometry extension with the name indicated as a string exists. """ ... @constmethod - def getExtensionOfType(self, type_str: str) -> DocumentObjectExtension: + def getExtensionOfType(self, type_str: str, /) -> DocumentObjectExtension: """ Gets the first geometry extension of the type indicated by the string. """ ... @constmethod - def getExtensionOfName(self, name: str) -> DocumentObjectExtension: + def getExtensionOfName(self, name: str, /) -> DocumentObjectExtension: """ Gets the first geometry extension of the name indicated by the string. """ ... - def setExtension(self, extension: DocumentObjectExtension) -> None: + def setExtension(self, extension: DocumentObjectExtension, /) -> None: """ Sets a geometry extension of the indicated type. """ ... - def deleteExtensionOfType(self, type_str: str) -> None: + def deleteExtensionOfType(self, type_str: str, /) -> None: """ Deletes all extensions of the indicated type. """ ... - def deleteExtensionOfName(self, name: str) -> None: + def deleteExtensionOfName(self, name: str, /) -> None: """ Deletes all extensions of the indicated name. """ diff --git a/src/Mod/Sketcher/App/Sketch.pyi b/src/Mod/Sketcher/App/Sketch.pyi index 6fa03c0c7a..698aaed707 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Base.Persistence import Persistence from Base.Vector import Vector @@ -56,8 +60,7 @@ class Sketch(Persistence): ... def moveGeometry( - self, GeoIndex: int, PointPos: Vector, Vector: Vector, relative: bool = False - ) -> None: + self, GeoIndex: int, PointPos: Vector, Vector: Vector, relative: bool = False, /) -> None: """ moveGeometry(GeoIndex,PointPos,Vector,[relative]) - move a given point (or curve) to another location. diff --git a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi index 2fda454ba4..2e8cfe069e 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension diff --git a/src/Mod/Sketcher/App/SketchObject.pyi b/src/Mod/Sketcher/App/SketchObject.pyi index 1a7cffefb1..b8453d2c7c 100644 --- a/src/Mod/Sketcher/App/SketchObject.pyi +++ b/src/Mod/Sketcher/App/SketchObject.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, constmethod, no_args from Base.Quantity import Quantity from Base.Vector import Vector @@ -79,12 +83,11 @@ 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: List[Geometry], isConstruction: bool = False, /) -> Tuple[int, ...]: ... def addGeometry( - self, geo: Union[Geometry, List[Geometry]], isConstruction: bool = False - ) -> Union[int, Tuple[int, ...]]: + self, geo: Union[Geometry, List[Geometry]], isConstruction: bool = False, /) -> Union[int, Tuple[int, ...]]: """ Add geometric objects to the sketch. @@ -111,7 +114,7 @@ class SketchObject(Part2DObject): """ ... - def delGeometry(self, geoId: int, noSolve: bool) -> None: + def delGeometry(self, geoId: int, noSolve: bool, /) -> None: """ Delete a geometric object from the sketch. @@ -123,7 +126,7 @@ class SketchObject(Part2DObject): """ ... - def delGeometries(self, geoIds: List[int], noSolve: bool) -> None: + def delGeometries(self, geoIds: List[int], noSolve: bool, /) -> None: """ Delete a list of geometric objects from the sketch. @@ -135,7 +138,7 @@ class SketchObject(Part2DObject): """ ... - def deleteAllGeometry(self, noSolve: bool) -> None: + def deleteAllGeometry(self, noSolve: bool, /) -> None: """ Delete all the geometry objects from the sketch, except external geometry. @@ -143,7 +146,7 @@ class SketchObject(Part2DObject): """ ... - def detectDegeneratedGeometries(self, tolerance: float) -> int: + def detectDegeneratedGeometries(self, tolerance: float, /) -> int: """ Detect degenerated geometries. A curve geometry is considered degenerated if the parameter range is less than the tolerance. @@ -158,7 +161,7 @@ class SketchObject(Part2DObject): """ ... - def removeDegeneratedGeometries(self, tolerance: float) -> int: + def removeDegeneratedGeometries(self, tolerance: float, /) -> int: """ Remove degenerated geometries. A curve geometry is considered degenerated if the parameter range is less than the tolerance. @@ -181,7 +184,7 @@ class SketchObject(Part2DObject): """ ... - def toggleConstruction(self, geoId: int) -> None: + def toggleConstruction(self, geoId: int, /) -> None: """ Toggles a geometry between regular and construction. @@ -192,7 +195,7 @@ class SketchObject(Part2DObject): """ ... - def setConstruction(self, geoId: int, state: bool) -> None: + def setConstruction(self, geoId: int, state: bool, /) -> None: """ Set construction mode of a geometry. @@ -205,7 +208,7 @@ class SketchObject(Part2DObject): """ ... - def getConstruction(self, geoId: int) -> bool: + def getConstruction(self, geoId: int, /) -> bool: """ Determine whether the given geometry is a "construction geometry". @@ -221,12 +224,11 @@ 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, constraints: List[Constraint], /) -> Tuple[int, ...]: ... def addConstraint( - self, constraint: Union[Constraint, List[Constraint]] - ) -> Union[int, Tuple[int, ...]]: + self, constraint: Union[Constraint, List[Constraint]], /) -> Union[int, Tuple[int, ...]]: """ Add constraints to the sketch. @@ -244,7 +246,7 @@ class SketchObject(Part2DObject): """ ... - def delConstraint(self, constraintIndex: int, noSolve: bool) -> None: + def delConstraint(self, constraintIndex: int, noSolve: bool, /) -> None: """ Delete a constraint from the sketch. @@ -256,8 +258,7 @@ class SketchObject(Part2DObject): ... def delConstraints( - self, constraintIndices: List[int], updateGeometry: bool, noSolve: bool - ) -> None: + self, constraintIndices: List[int], updateGeometry: bool, noSolve: bool, /) -> None: """ Delete multiple constraints from a sketch @@ -269,7 +270,7 @@ class SketchObject(Part2DObject): """ ... - def renameConstraint(self, constraintIndex: int, name: str) -> None: + def renameConstraint(self, constraintIndex: int, name: str, /) -> None: """ Rename a constraint in the sketch. @@ -283,7 +284,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getIndexByName(self, name: str) -> int: + def getIndexByName(self, name: str, /) -> int: """ Get the index of a constraint by name. @@ -295,7 +296,7 @@ class SketchObject(Part2DObject): """ ... - def carbonCopy(self, objName: str, asConstruction: bool = True) -> None: + def carbonCopy(self, objName: str, asConstruction: bool = True, /) -> None: """ Copy another sketch's geometry and constraints into this sketch. @@ -308,8 +309,7 @@ class SketchObject(Part2DObject): ... def addExternal( - self, objName: str, subName: str, defining: bool = False, intersection: bool = False - ) -> None: + self, objName: str, subName: str, defining: bool = False, intersection: bool = False, /) -> None: """ Add a link to an external geometry. @@ -324,7 +324,7 @@ class SketchObject(Part2DObject): """ ... - def delExternal(self, extGeoId: int) -> None: + def delExternal(self, extGeoId: int, /) -> None: """ Delete an external geometry link from the sketch. @@ -336,9 +336,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. @@ -366,7 +366,7 @@ class SketchObject(Part2DObject): """ ... - def setDatum(self, constraint: Union[int, str], value: Union[float, Quantity]) -> None: + def setDatum(self, constraint: Union[int, str], value: Union[float, Quantity], /) -> None: """ Set the value of a datum constraint (e.g. Distance or Angle) @@ -381,7 +381,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getDatum(self, constraint: Union[int, str]) -> Quantity: + def getDatum(self, constraint: Union[int, str], /) -> Quantity: """ Get the value of a datum constraint (e.g. Distance or Angle) @@ -395,7 +395,7 @@ class SketchObject(Part2DObject): """ ... - def setDriving(self, constraintIndex: int, state: bool) -> None: + def setDriving(self, constraintIndex: int, state: bool, /) -> None: """ Set the Driving status of a datum constraint. @@ -408,7 +408,7 @@ class SketchObject(Part2DObject): """ ... - def setDatumsDriving(self, state: bool) -> None: + def setDatumsDriving(self, state: bool, /) -> None: """ Set the Driving status of all datum constraints. @@ -433,7 +433,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getDriving(self, constraintIndex: int) -> bool: + def getDriving(self, constraintIndex: int, /) -> bool: """ Get the Driving status of a datum constraint. @@ -448,7 +448,7 @@ class SketchObject(Part2DObject): """ ... - def toggleDriving(self, constraintIndex: int) -> None: + def toggleDriving(self, constraintIndex: int, /) -> None: """ Toggle the Driving status of a datum constraint. @@ -483,7 +483,7 @@ class SketchObject(Part2DObject): """ ... - def setActive(self, constraintIndex: int, state: bool) -> None: + def setActive(self, constraintIndex: int, state: bool, /) -> None: """ Activates or deactivates a constraint (enforce it or not). @@ -497,7 +497,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getActive(self, constraintIndex: int) -> bool: + def getActive(self, constraintIndex: int, /) -> bool: """ Get whether a constraint is active, i.e. enforced, or not. @@ -512,7 +512,7 @@ class SketchObject(Part2DObject): """ ... - def toggleActive(self, constraintIndex: int) -> None: + def toggleActive(self, constraintIndex: int, /) -> None: """ Toggle the constraint between active (enforced) and inactive. @@ -524,7 +524,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getLabelPosition(self, constraintIndex: int) -> float: + def getLabelPosition(self, constraintIndex: int, /) -> float: """ Get label position of the constraint. @@ -538,7 +538,7 @@ class SketchObject(Part2DObject): """ ... - def setLabelPosition(self, constraintIndex: int, value: float) -> None: + def setLabelPosition(self, constraintIndex: int, value: float, /) -> None: """ Set label position of the constraint. @@ -551,7 +551,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getLabelDistance(self, constraintIndex: int) -> float: + def getLabelDistance(self, constraintIndex: int, /) -> float: """ Get label distance of the constraint. @@ -565,7 +565,7 @@ class SketchObject(Part2DObject): """ ... - def setLabelDistance(self, constraintIndex: int, value: float) -> None: + def setLabelDistance(self, constraintIndex: int, value: float, /) -> None: """ Set label distance of the constraint. @@ -578,8 +578,7 @@ class SketchObject(Part2DObject): ... def moveGeometry( - self, GeoIndex: int, PointPos: int, Vector: Vector, relative: bool = False - ) -> None: + self, GeoIndex: int, PointPos: int, Vector: Vector, relative: bool = False, /) -> None: """ Move a given point (or curve) to another location. @@ -596,8 +595,7 @@ class SketchObject(Part2DObject): ... def moveGeometries( - self, Geos: List[Tuple[int, int]], Vector: Vector, relative: bool = False - ) -> None: + self, Geos: List[Tuple[int, int]], Vector: Vector, relative: bool = False, /) -> None: """ Move given points and curves to another location. @@ -615,7 +613,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getPoint(self, GeoIndex: int, PointPos: int) -> Vector: + def getPoint(self, GeoIndex: int, PointPos: int, /) -> Vector: """ Retrieve the vector of a point in the sketch. @@ -624,7 +622,7 @@ class SketchObject(Part2DObject): ... @constmethod - def getGeoVertexIndex(self, index: int) -> Tuple[int, int]: + def getGeoVertexIndex(self, index: int, /) -> Tuple[int, int]: """ Retrieve the GeoId and PosId of a point in the sketch. @@ -753,7 +751,7 @@ class SketchObject(Part2DObject): """ ... - def calculateAngleViaPoint(self, GeoId1: int, GeoId2: int, px: float, py: float) -> float: + def calculateAngleViaPoint(self, GeoId1: int, GeoId2: int, px: float, py: float, /) -> float: """ calculateAngleViaPoint(GeoId1, GeoId2, px, py) - calculates angle between curves identified by GeoId1 and GeoId2 at point (x,y). The point must be @@ -762,7 +760,7 @@ class SketchObject(Part2DObject): """ ... - def isPointOnCurve(self, GeoIdCurve: int, x: float, y: float) -> bool: + def isPointOnCurve(self, GeoIdCurve: int, x: float, y: float, /) -> bool: """ isPointOnCurve(GeoIdCurve, float x, float y) -> bool - tests if the point (x,y) geometrically lies on a curve (e.g. ellipse). It treats lines as infinite, @@ -770,7 +768,7 @@ class SketchObject(Part2DObject): """ ... - def calculateConstraintError(self, index: int) -> float: + def calculateConstraintError(self, index: int, /) -> float: """ calculateConstraintError(index) - calculates the error function of the constraint identified by its index and returns the signed error value. @@ -780,7 +778,7 @@ class SketchObject(Part2DObject): """ ... - def changeConstraintsLocking(self, bLock: bool) -> None: + def changeConstraintsLocking(self, bLock: bool, /) -> None: """ changeConstraintsLocking(bLock) - locks or unlocks all tangent and perpendicular constraints. (Constraint locking prevents it from @@ -837,19 +835,19 @@ class SketchObject(Part2DObject): """ ... - def makeMissingPointOnPointCoincident(self, arg: bool) -> None: + def makeMissingPointOnPointCoincident(self, arg: bool, /) -> None: """ Applies the detected / set Point On Point coincident constraints. If the argument is True, then solving and redundant removal is done after each individual addition. """ ... - def makeMissingVerticalHorizontal(self, arg: bool) -> None: + def makeMissingVerticalHorizontal(self, arg: bool, /) -> None: """ Applies the detected / set Vertical/Horizontal constraints. If the argument is True, then solving and redundant removal is done after each individual addition. """ ... - def makeMissingEquality(self, arg: bool) -> None: + def makeMissingEquality(self, arg: bool, /) -> None: """ Applies the detected / set Equality constraints. If the argument is True, then solving and redundant removal is done after each individual addition. """ @@ -870,7 +868,7 @@ class SketchObject(Part2DObject): """ ... - def autoRemoveRedundants(self, arg: bool) -> None: + def autoRemoveRedundants(self, arg: bool, /) -> None: """ Removes constraints currently detected as redundant by the solver. If the argument is True, then the geometry is updated after solving. """ @@ -888,7 +886,7 @@ class SketchObject(Part2DObject): """ ... - def setGeometryIds(GeoIdsToIds: List[Tuple[int, int]]): + def setGeometryIds(GeoIdsToIds: List[Tuple[int, int]], /): """ Sets the GeometryId of the SketchGeometryExtension of the geometries with the provided GeoIds Expects a list of pairs (GeoId, id) diff --git a/src/Mod/Sketcher/App/SketchObjectSF.pyi b/src/Mod/Sketcher/App/SketchObjectSF.pyi index 5af77c2a15..0df672b9fd 100644 --- a/src/Mod/Sketcher/App/SketchObjectSF.pyi +++ b/src/Mod/Sketcher/App/SketchObjectSF.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.App.Part2DObject import Part2DObject diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi index a3994baf4a..d12ff8d5f3 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Part.App.GeometryExtension import GeometryExtension diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index 0bcb7c9cd0..1617880935 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Persistence import Persistence diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 6f27b86034..3a09048616 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from Base.Persistence import Persistence diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index f8be8e14f0..c3b6b2a319 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export, sequence_protocol from Base.Persistence import Persistence diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index d71ff4e19a..f2afe739d9 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 5add098af1..96d60ce2ec 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index da40d824b6..a2622c6393 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from typing import Any diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index d44c4b2978..1a0cfd9d6e 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -1,4 +1,6 @@ -# SPDX-License-Identifier: LGPL-2.1-or-later +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations from typing import Any, Final diff --git a/src/Mod/TechDraw/App/CenterLine.pyi b/src/Mod/TechDraw/App/CenterLine.pyi index b652ef2b99..1f6296b2ec 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index 1403bc370d..92c7e887af 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Final from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index 07218eb29f..400834b4fb 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index ae3da97780..adcc4c34b3 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index 73cec4d14d..3e4a085ad0 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index de603f8670..7485e8321d 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index 690f6c8f9f..d18ccedf14 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 797e4a9438..dde8091a80 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from DrawView import DrawView diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index f76b42d7e8..61681d87fc 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi index 1bdc533308..af38883645 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawProjGroup.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi index 489b009b0e..5a2a0a87f8 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index e2848a4d63..c4f8303fc7 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index 258184f688..ece06d65e5 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from TechDraw.DrawView import DrawView diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 2cc9f29114..184b1a114f 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index 26639c1638..013b935fd0 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObject import DocumentObject diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index f6db6b7b25..1d65c707d5 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from App.DocumentObject import DocumentObject diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index b90ddf5c31..03d788df62 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from TechDraw.DrawTile import DrawTile diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index c86dcce3e5..9e053235e6 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index 504207e028..8aebcc82ab 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from TechDraw.Drawview import DrawView diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 0288c0fff0..3b492e2381 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 216c7cbfeb..259369729e 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index e9aeb5b3ba..e242699a7b 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 362f33dee1..6d38994dc3 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 8cdd911e2c..1f9bdec008 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index b30eefac83..ed3f2ba60f 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any from Base.Metadata import export diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 589aa83a62..a5f9298743 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from Base.Metadata import export from TechDraw.DrawView import DrawView diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index a69a9ee5e9..fc1ce35920 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -1,3 +1,7 @@ +# SPDX-License: LGPL-2.1-or-later + +from __future__ import annotations + from typing import Any, Final from Base.PyObjectBase import PyObjectBase diff --git a/src/Tools/bindings/model/generateModel_Python.py b/src/Tools/bindings/model/generateModel_Python.py index 1782ffbcc3..a148dd64b6 100644 --- a/src/Tools/bindings/model/generateModel_Python.py +++ b/src/Tools/bindings/model/generateModel_Python.py @@ -14,9 +14,174 @@ from model.typedModel import ( Parameter, ParameterType, SequenceProtocol, + FuncArgument, + ArgumentKind, ) +class FunctionSignature: + """ + Parse function arguments with correct classification and order. + """ + + args: list[FuncArgument] + has_keywords: bool + docstring: str + + const_flag: bool = False + static_flag: bool = False + class_flag: bool = False + noargs_flag: bool = False + is_overload: bool = False + + def __init__(self, func: ast.FunctionDef): + self.args = [] + self.has_keywords = False + self.is_overload = False + self.docstring = ast.get_docstring(func) or "" + + args = func.args + self.update_flags(func) + + self.args.extend( + ( + FuncArgument( + arg.arg, + self.get_annotation_str(arg.annotation), + ArgumentKind.PositionOnly, + ) + for arg in args.posonlyargs + ), + ) + + self.args.extend( + ( + FuncArgument( + arg.arg, + self.get_annotation_str(arg.annotation), + ArgumentKind.Arg, + ) + for arg in args.args + ), + ) + + # tricky part to determine if there are keyword arguments or not + if args.args: + if args.args[0].arg in ("self", "cls"): + instance_args = len(args.args) > 1 + else: + instance_args = True + else: + instance_args = False + + self.has_keywords = bool(instance_args or args.kwonlyargs or args.kwarg) + + if args.vararg: + self.args.append( + FuncArgument( + args.vararg.arg, + self.get_annotation_str(args.vararg.annotation), + ArgumentKind.VarArg, + ), + ) + + self.args.extend( + ( + FuncArgument( + arg.arg, + self.get_annotation_str(arg.annotation), + ArgumentKind.KwOnly, + ) + for arg in args.kwonlyargs + ), + ) + + if args.kwarg: + self.args.append( + FuncArgument( + args.kwarg.arg, + self.get_annotation_str(args.kwarg.annotation), + ArgumentKind.KwArg, + ), + ) + + def get_annotation_str(self, node: ast.AST | None) -> str: + if not node: + return "object" + return ast.unparse(node) + + def update_flags(self, func: ast.FunctionDef) -> None: + for deco in func.decorator_list: + match deco: + case ast.Name(id, _): + name = id + case ast.Attribute(_, attr, _): + name = attr + case _: + continue + + match name: + case "constmethod": + self.const_flag = True + case "classmethod": + self.class_flag = True + case "no_args": + self.noargs_flag = True + case "staticmethod": + self.static_flag = True + case "overload": + self.is_overload = True + + +class Function: + name: str + signatures: list[FunctionSignature] + + def __init__(self, func: ast.FunctionDef) -> None: + self.name = func.name + self.signatures = [FunctionSignature(func)] + + def update(self, func: ast.FunctionDef) -> None: + self.signatures.append(FunctionSignature(func)) + + @property + def docstring(self) -> str: + return "\n".join((f.docstring for f in self.signatures)) + + @property + 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 self.signatures[0].has_keywords + + @property + def signature(self) -> FunctionSignature | None: + """First non overload signature""" + for sig in self.signatures: + if not sig.is_overload: + return sig + return None + + @property + def static_flag(self) -> bool: + return any(sig.static_flag for sig in self.signatures) + + @property + def const_flag(self) -> bool: + return any(sig.const_flag for sig in self.signatures) + + @property + def class_flag(self) -> bool: + return any(sig.class_flag for sig in self.signatures) + + @property + def noargs_flag(self) -> bool: + return any(sig.noargs_flag for sig in self.signatures) + + def _extract_decorator_kwargs(decorator: ast.expr) -> dict: """ Extract keyword arguments from a decorator call like `@export(Father="...", Name="...")`. @@ -146,7 +311,9 @@ 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, @@ -158,7 +325,11 @@ def _parse_class_attributes(class_node: ast.ClassDef, source_code: str) -> List[ 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` @@ -201,7 +372,12 @@ def _parse_class_attributes(class_node: ast.ClassDef, source_code: str) -> List[ attr_doc = _parse_docstring_for_documentation(docstring) param = Parameter(Name=name, Type=param_type) - attr = Attribute(Documentation=attr_doc, Parameter=param, Name=name, ReadOnly=readonly) + attr = Attribute( + Documentation=attr_doc, + Parameter=param, + Name=name, + ReadOnly=readonly, + ) attributes.append(attr) return attributes @@ -216,7 +392,7 @@ def _parse_methods(class_node: ast.ClassDef) -> List[Methode]: """ methods = [] - def collect_function_defs(nodes): + def collect_function_defs(nodes) -> list[ast.FunctionDef]: funcs = [] for node in nodes: if isinstance(node, ast.FunctionDef): @@ -226,99 +402,42 @@ def _parse_methods(class_node: ast.ClassDef) -> List[Methode]: funcs.extend(collect_function_defs(node.orelse)) return funcs - for stmt in collect_function_defs(class_node.body): - # Skip methods decorated with @overload - skip_method = False - for deco in stmt.decorator_list: - match deco: - case ast.Name(id="overload"): - skip_method = True - break - case ast.Attribute(attr="overload"): - skip_method = True - break - case _: - pass - if skip_method: - continue + # Collect including overloads + functions: dict[str, Function] = {} + for func_node in collect_function_defs(class_node.body): + if func := functions.get(func_node.name): + func.update(func_node) + else: + functions[func_node.name] = Function(func_node) - # Extract method name - method_name = stmt.name - - # Extract docstring - method_docstring = ast.get_docstring(stmt) or "" - doc_obj = _parse_docstring_for_documentation(method_docstring) - has_keyword_args = False + for func in functions.values(): + doc_obj = _parse_docstring_for_documentation(func.docstring) method_params = [] - # Helper for extracting an annotation string - def get_annotation_str(annotation): - match annotation: - case ast.Name(id=name): - return name - case ast.Attribute(value=ast.Name(id=name), attr=attr): - return f"{name}.{attr}" - case ast.Subscript(value=ast.Name(id=name), slice=_): - return name - case ast.Subscript( - value=ast.Attribute(value=ast.Name(id=name), attr=attr), slice=_ - ): - return f"{name}.{attr}" - case _: - return "object" + signature = func.signature + if signature is None: + continue # Process positional parameters (skipping self/cls) - for arg in stmt.args.args: - param_name = arg.arg - if param_name in ("self", "cls"): + for arg_i, arg in enumerate(signature.args): + param_name = arg.name + if arg_i == 0 and param_name in ("self", "cls"): continue - annotation_str = "object" - if arg.annotation: - annotation_str = get_annotation_str(arg.annotation) - param_type = _python_type_to_parameter_type(annotation_str) + param_type = _python_type_to_parameter_type(arg.annotation) method_params.append(Parameter(Name=param_name, Type=param_type)) - # Process keyword-only parameters - for kwarg in stmt.args.kwonlyargs: - has_keyword_args = True - param_name = kwarg.arg - annotation_str = "object" - if kwarg.annotation: - annotation_str = get_annotation_str(kwarg.annotation) - param_type = _python_type_to_parameter_type(annotation_str) - method_params.append(Parameter(Name=param_name, Type=param_type)) - - if stmt.args.kwarg: - has_keyword_args = True - - keyword_flag = has_keyword_args and not stmt.args.vararg - - # Check for various decorators using any(...) - const_method_flag = any( - isinstance(deco, ast.Name) and deco.id == "constmethod" for deco in stmt.decorator_list - ) - static_method_flag = any( - isinstance(deco, ast.Name) and deco.id == "staticmethod" for deco in stmt.decorator_list - ) - class_method_flag = any( - isinstance(deco, ast.Name) and deco.id == "classmethod" for deco in stmt.decorator_list - ) - no_args = any( - isinstance(deco, ast.Name) and deco.id == "no_args" for deco in stmt.decorator_list - ) - - methode = Methode( - Name=method_name, + method = Methode( + Name=func.name, Documentation=doc_obj, Parameter=method_params, - Const=const_method_flag, - Static=static_method_flag, - Class=class_method_flag, - Keyword=keyword_flag, - NoArgs=no_args, + Const=func.const_flag, + Static=func.static_flag, + Class=func.class_flag, + Keyword=func.has_keywords, + NoArgs=func.noargs_flag, ) - methods.append(methode) + methods.append(method) return methods @@ -457,7 +576,9 @@ 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) @@ -489,7 +610,9 @@ def _parse_class(class_node, source_code: str, path: str, imports_mapping: dict) 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 @@ -509,23 +632,33 @@ def _parse_class(class_node, source_code: str, path: str, imports_mapping: dict) 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 7c60385fe5..baa5d19ab9 100644 --- a/src/Tools/bindings/model/typedModel.py +++ b/src/Tools/bindings/model/typedModel.py @@ -326,3 +326,19 @@ class GenerateModel: # Each method might have parameters for param in meth.Parameter: print(f" * param: {param.Name}, type={param.Type}") + +# Rich Modules + +class ArgumentKind(Enum): + PositionOnly = 0 + Arg = 1 + VarArg = 2 + KwOnly = 3 + KwArg = 4 + +@dataclass +class FuncArgument: + name: str + annotation: str + kind: ArgumentKind + From c9579bbff2d090961e21d568405bd7f4c0b9e6a3 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Thu, 25 Sep 2025 21:43:39 -0500 Subject: [PATCH 05/20] [bindings] Code formatting --- src/App/ApplicationDirectories.pyi | 1 + src/App/ComplexGeoData.pyi | 9 +-- src/App/Document.pyi | 3 +- src/App/GroupExtension.pyi | 4 +- src/App/LinkBaseExtension.pyi | 18 +++-- src/App/Material.pyi | 6 +- src/App/MeasureManager.pyi | 4 +- src/App/Metadata.pyi | 14 ++-- src/App/PropertyContainer.pyi | 7 +- src/App/StringHasher.pyi | 6 +- src/App/StringID.pyi | 3 +- src/Base/Axis.pyi | 1 + src/Base/BaseClass.pyi | 1 + src/Base/BoundBox.pyi | 67 ++++++++++++++----- 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/Command.pyi | 8 +-- src/Gui/Document.pyi | 3 +- src/Gui/LinkView.pyi | 39 +++++++---- src/Gui/Navigation/NavigationStyle.pyi | 5 +- src/Gui/ViewProvider.pyi | 3 +- src/Gui/Workbench.pyi | 5 +- src/Mod/Assembly/App/AssemblyLink.pyi | 1 + src/Mod/Assembly/App/AssemblyObject.pyi | 1 + 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 + .../Material/App/MaterialFilterOptions.pyi | 7 +- src/Mod/Material/App/MaterialLibrary.pyi | 1 + src/Mod/Material/App/MaterialManager.pyi | 9 +-- src/Mod/Material/App/MaterialProperty.pyi | 1 + src/Mod/Material/App/Model.pyi | 29 ++++---- src/Mod/Material/App/ModelManager.pyi | 11 ++- src/Mod/Material/App/UUIDs.pyi | 1 + src/Mod/Material/Gui/MaterialTreeWidget.pyi | 1 + src/Mod/Measure/App/MeasureBase.pyi | 1 + src/Mod/Measure/App/Measurement.pyi | 1 + src/Mod/Measure/Gui/QuickMeasure.pyi | 1 + src/Mod/Mesh/App/Edge.pyi | 2 + src/Mod/Mesh/App/Facet.pyi | 2 + src/Mod/Mesh/App/Mesh.pyi | 2 + src/Mod/Mesh/App/MeshFeature.pyi | 1 + src/Mod/Mesh/App/MeshPoint.pyi | 2 + src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 1 + src/Mod/Part/App/Arc.pyi | 7 +- src/Mod/Part/App/ArcOfConic.pyi | 3 +- src/Mod/Part/App/BRepFeat/MakePrism.pyi | 1 + .../Part/App/BRepOffsetAPI_MakePipeShell.pyi | 11 +-- src/Mod/Part/App/BSplineCurve.pyi | 34 ++++++---- src/Mod/Part/App/BSplineSurface.pyi | 15 +++-- src/Mod/Part/App/BezierCurve.pyi | 3 +- .../Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 1 + src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 1 + src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 3 +- src/Mod/Part/App/Circle.pyi | 19 ++++-- src/Mod/Part/App/Cylinder.pyi | 19 ++++-- src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 5 +- 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 | 36 +++++----- 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 | 5 +- 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 | 38 ++++++----- src/Mod/Part/App/GeometrySurface.pyi | 34 ++++++---- src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 1 + src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 1 + 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/Point.pyi | 12 +++- src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 1 + .../App/ShapeFix/ShapeFix_EdgeConnect.pyi | 7 +- 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 | 17 +++-- 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 | 51 +++++++++----- src/Mod/Part/App/TopoShapeEdge.pyi | 32 +++++---- src/Mod/Part/App/TopoShapeFace.pyi | 8 +-- src/Mod/Part/App/TopoShapeSolid.pyi | 7 +- src/Mod/Part/App/TopoShapeWire.pyi | 16 ++--- 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 | 4 +- .../Sketcher/App/SketchGeometryExtension.pyi | 1 + src/Mod/Sketcher/App/SketchObject.pyi | 47 ++++++++----- 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 | 2 + src/Mod/TechDraw/App/CosmeticEdge.pyi | 1 + src/Mod/TechDraw/App/CosmeticExtension.pyi | 1 + src/Mod/TechDraw/App/CosmeticVertex.pyi | 4 +- src/Mod/TechDraw/App/DrawBrokenView.pyi | 1 + src/Mod/TechDraw/App/DrawGeomHatch.pyi | 1 + src/Mod/TechDraw/App/DrawHatch.pyi | 1 + src/Mod/TechDraw/App/DrawLeaderLine.pyi | 1 + src/Mod/TechDraw/App/DrawPage.pyi | 2 + .../TechDraw/App/DrawParametricTemplate.pyi | 2 + src/Mod/TechDraw/App/DrawProjGroup.pyi | 1 + src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 1 + src/Mod/TechDraw/App/DrawRichAnno.pyi | 1 + src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 1 + src/Mod/TechDraw/App/DrawTemplate.pyi | 1 + src/Mod/TechDraw/App/DrawTile.pyi | 1 + src/Mod/TechDraw/App/DrawTileWeld.pyi | 1 + src/Mod/TechDraw/App/DrawView.pyi | 1 + src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 1 + src/Mod/TechDraw/App/DrawViewClip.pyi | 3 +- src/Mod/TechDraw/App/DrawViewCollection.pyi | 1 + src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 1 + src/Mod/TechDraw/App/DrawViewDimension.pyi | 1 + src/Mod/TechDraw/App/DrawViewPart.pyi | 1 + src/Mod/TechDraw/App/DrawViewSymbol.pyi | 1 + src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 1 + src/Mod/TechDraw/App/GeomFormat.pyi | 2 + 191 files changed, 733 insertions(+), 345 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index 01dd557124..e3b65512e5 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -4,6 +4,7 @@ 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 92282643ae..638f4579fa 100644 --- a/src/App/ComplexGeoData.pyi +++ b/src/App/ComplexGeoData.pyi @@ -12,6 +12,7 @@ from Base.Matrix import Matrix from StringHasher import StringHasher from typing import Any, Final + @export( Namespace="Data", Reference=True, @@ -36,18 +37,14 @@ 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. """ diff --git a/src/App/Document.pyi b/src/App/Document.pyi index ddf0451495..eb56f4fd69 100644 --- a/src/App/Document.pyi +++ b/src/App/Document.pyi @@ -6,6 +6,7 @@ from PropertyContainer import PropertyContainer from DocumentObject import DocumentObject from typing import Final, Sequence + class Document(PropertyContainer): """ This is the Document class. @@ -218,7 +219,7 @@ class Document(PropertyContainer): hidden: bool = False, locked: bool = False, enum_vals: list[str] | None = None, - ) -> Document: + ) -> Document: """ Add a generic property. diff --git a/src/App/GroupExtension.pyi b/src/App/GroupExtension.pyi index e88a879ae2..b1d3506ded 100644 --- a/src/App/GroupExtension.pyi +++ b/src/App/GroupExtension.pyi @@ -7,9 +7,7 @@ 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 cb8a760194..67d72275be 100644 --- a/src/App/LinkBaseExtension.pyi +++ b/src/App/LinkBaseExtension.pyi @@ -7,9 +7,7 @@ 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 @@ -60,15 +58,15 @@ class LinkBaseExtension(DocumentObjectExtension): @overload def getLinkPropertyInfo(self, /) -> tuple: ... - + @overload def getLinkPropertyInfo(self, index: int, /) -> tuple: ... - + @overload 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. @@ -79,7 +77,13 @@ class LinkBaseExtension(DocumentObjectExtension): """ ... - def setLink(self, obj: Any, subName: Optional[str] = None, subElements: Optional[Union[str, Tuple[str, ...]]] = None, /) -> None: + def setLink( + self, + 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 cb89414f46..2c88d8a051 100644 --- a/src/App/Material.pyi +++ b/src/App/Material.pyi @@ -11,11 +11,9 @@ from typing import Any, overload Constructor=True, Delete=True, ) -@class_declarations( - """public: +@class_declarations("""public: static Base::Color toColor(PyObject* value); - """ -) + """) class Material(PyObjectBase): """ App.Material class. diff --git a/src/App/MeasureManager.pyi b/src/App/MeasureManager.pyi index 43c6d033bd..3c9c115e14 100644 --- a/src/App/MeasureManager.pyi +++ b/src/App/MeasureManager.pyi @@ -6,13 +6,13 @@ from Base.Metadata import export, no_args from Base.PyObjectBase import PyObjectBase from typing import List, Tuple, TypeAlias - MeasureType: TypeAlias = object + @export( Constructor=False, Delete=True, - ) +) class MeasureManager(PyObjectBase): """ MeasureManager class. diff --git a/src/App/Metadata.pyi b/src/App/Metadata.pyi index e09cf27193..37b5bb4392 100644 --- a/src/App/Metadata.pyi +++ b/src/App/Metadata.pyi @@ -12,7 +12,7 @@ from typing import Any, List, Dict, overload, Optional Delete=True, NumberProtocol=False, RichCompare=False, - ) +) @class_declarations( """public: MetadataPy(const Metadata & pla, PyTypeObject *T = &Type) @@ -53,16 +53,20 @@ 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/PropertyContainer.pyi b/src/App/PropertyContainer.pyi index 62e4fcef12..afa9047b42 100644 --- a/src/App/PropertyContainer.pyi +++ b/src/App/PropertyContainer.pyi @@ -7,9 +7,7 @@ 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. @@ -124,8 +122,7 @@ class PropertyContainer(Persistence): """ ... - def setPropertyStatus( - self, name: str, val: Union[int, str, List[Union[str, int]]], /) -> None: + def setPropertyStatus(self, name: str, val: Union[int, str, List[Union[str, int]]], /) -> None: """ setPropertyStatus(name, val) -> None diff --git a/src/App/StringHasher.pyi b/src/App/StringHasher.pyi index 569083176d..16d626d6be 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -38,10 +38,12 @@ 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: diff --git a/src/App/StringID.pyi b/src/App/StringID.pyi index 92d72d1a4c..dd4681f210 100644 --- a/src/App/StringID.pyi +++ b/src/App/StringID.pyi @@ -14,8 +14,7 @@ from typing import Any, Final, List @class_declarations("""private: friend class StringID; int _index = 0; - """ -) + """) class StringID(BaseClass): """ This is the StringID class diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index 7f0ea391d9..373291b42e 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -8,6 +8,7 @@ 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 0fd55ecef0..94ca026794 100644 --- a/src/Base/BaseClass.pyi +++ b/src/Base/BaseClass.pyi @@ -6,6 +6,7 @@ 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 68a5318c97..d550308bcb 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -8,6 +8,7 @@ from Vector import Vector from Matrix import Matrix from typing import overload, Any, Final, Tuple, Union + @export( TwinPointer="BoundBox3d", Constructor=True, @@ -109,13 +110,13 @@ class BoundBox(PyObjectBase): xMax: float = 0, yMax: float = 0, zMax: float = 0, - ) -> None: ... + ) -> None: ... @overload def __init__( self, min: Union[Vector, Tuple[float, float, float]], max: Union[Vector, Tuple[float, float, float]], - ) -> None: ... + ) -> None: ... # fmt: on def setVoid(self) -> None: @@ -136,13 +137,16 @@ 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: """ @@ -189,9 +193,13 @@ 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: """ @@ -212,13 +220,18 @@ 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 @@ -281,11 +294,17 @@ 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 @@ -305,11 +324,17 @@ 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 @@ -353,11 +378,17 @@ 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 e65f143940..20b9236959 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -10,6 +10,7 @@ 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 bd144f584d..efa51c5179 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -8,6 +8,7 @@ from PyObjectBase import PyObjectBase from enum import IntEnum from typing import overload, Union, Tuple, Sequence + class ScaleType(IntEnum): Other = -1 NoScaling = 0 @@ -15,6 +16,7 @@ class ScaleType(IntEnum): NonUniformLeft = 2 Uniform = 3 + @export( TwinPointer="Matrix4D", Constructor=True, @@ -107,9 +109,13 @@ 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 @@ -129,11 +135,17 @@ 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 @@ -335,9 +347,13 @@ 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 627775c30a..60e157db50 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,31 +1,40 @@ # 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 25ba13ac72..9f024acca7 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -6,6 +6,7 @@ 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 d45cd4873f..b698b09411 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -9,6 +9,7 @@ from Rotation import Rotation as RotationPy from Vector import Vector from typing import Sequence, overload + @export( Constructor=True, Delete=True, @@ -119,7 +120,9 @@ 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 b3ef75334f..b5502b1d16 100644 --- a/src/Base/Precision.pyi +++ b/src/Base/Precision.pyi @@ -4,6 +4,7 @@ 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 7094cf8e73..fb9d63780d 100644 --- a/src/Base/PyObjectBase.pyi +++ b/src/Base/PyObjectBase.pyi @@ -2,6 +2,7 @@ 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 8845cfad4b..4173dd9811 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -7,6 +7,7 @@ from PyObjectBase import PyObjectBase from typing import overload, Final, Tuple, Union from Unit import Unit as UnitPy + @export( NumberProtocol=True, RichCompare=True, @@ -65,9 +66,13 @@ 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]: """ @@ -76,13 +81,21 @@ 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: """ @@ -106,6 +119,9 @@ class Quantity(PyObjectBase): ... @overload - def __round__(self, /) -> int: ... + def __round__(self, /) -> int: + ... + @overload - def __round__(self, ndigits: int, /) -> float: ... + def __round__(self, ndigits: int, /) -> float: + ... diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index aa6346cbde..78ddb46fb2 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -8,6 +8,7 @@ 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 bb888e1be6..717dc6d858 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -6,17 +6,16 @@ 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 876b713069..6304c28389 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -8,6 +8,7 @@ from Quantity import Quantity from Unit import Unit from typing import Final, Tuple, overload + @export( NumberProtocol=True, RichCompare=True, @@ -31,7 +32,9 @@ class Unit(PyObjectBase): """ @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload def __init__( self, @@ -43,13 +46,20 @@ 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 3cf1787082..0e6617e265 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -6,6 +6,7 @@ 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/Command.pyi b/src/Gui/Command.pyi index bb05492962..9a7c1bc520 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -125,13 +125,7 @@ class Command(PyObjectBase): @staticmethod def createCustomCommand( - *, - macroFile: str, - menuText: str, - toolTip: str, - whatsThis: str, - statusTip: str, - pixmap: str, + *, macroFile: str, menuText: str, toolTip: str, whatsThis: str, statusTip: str, pixmap: str, shortcut: str ) -> str: """ diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index 375ee67a70..d207ea6221 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -192,8 +192,7 @@ class Document(Persistence): """ ... - def toggleTreeItem( - self, obj: Any, mod: int = 0, subName: Optional[str] = None, /) -> None: + def toggleTreeItem(self, obj: Any, mod: int = 0, subName: Optional[str] = None, /) -> None: """ toggleTreeItem(obj, mod=0, subName) -> None diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index c6197ad87f..fc800f3620 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -42,16 +42,20 @@ 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: """ @@ -69,10 +73,12 @@ 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: """ @@ -87,16 +93,18 @@ 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: + def setChildren(self, children: List[Any], vis: List[Any] = [], type: int = 0, /) -> None: """ setChildren([obj...],vis=[],type=0) Group a list of children objects. Note, this mode of operation is incompatible @@ -130,13 +138,16 @@ 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]: """ diff --git a/src/Gui/Navigation/NavigationStyle.pyi b/src/Gui/Navigation/NavigationStyle.pyi index ddb0597c61..c09ce379a4 100644 --- a/src/Gui/Navigation/NavigationStyle.pyi +++ b/src/Gui/Navigation/NavigationStyle.pyi @@ -3,9 +3,8 @@ 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/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 4041f73050..0612ba9568 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -327,7 +327,8 @@ class ViewProvider(ExtensionContainer): ... def getBoundingBox( - self, subName: Optional[str] = None, transform: bool = True, view: Any = None, /) -> BoundBox: + self, subName: Optional[str] = None, transform: bool = True, view: Any = None, / + ) -> BoundBox: """ getBoundingBox(subName, transform=True, view) -> Base.BoundBox diff --git a/src/Gui/Workbench.pyi b/src/Gui/Workbench.pyi index 2bff9d2b59..1c2f825151 100644 --- a/src/Gui/Workbench.pyi +++ b/src/Gui/Workbench.pyi @@ -6,9 +6,8 @@ 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 c5e8bf9d4c..a9f4290283 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -8,6 +8,7 @@ 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 4c1526c131..5aaf85dcf5 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export from App.Part import Part + @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") class AssemblyObject(Part): """ diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index 12c69672fa..220d3e76a6 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -6,6 +6,7 @@ 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 bdb3d684ef..2f5709f251 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -5,6 +5,7 @@ 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 6c452712ab..1604d4afa0 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -6,6 +6,7 @@ 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 f4cef9043b..b33e08cb9e 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -6,6 +6,7 @@ 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 8092311fd0..63c3e990f8 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -6,6 +6,7 @@ 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 a4518edb3e..31396d59be 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -8,6 +8,7 @@ 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 dc688ca4c9..206363a8e8 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -5,6 +5,7 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import export + @export( Include="Mod/CAM/App/Area.h", Namespace="Path", @@ -95,6 +96,7 @@ 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 e9c1323b46..896d970399 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -4,6 +4,7 @@ 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", @@ -31,6 +32,7 @@ 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 7a1877a0a8..dcc49facaa 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/CAM/App/FeatureArea.h", Namespace="Path", @@ -28,5 +29,6 @@ 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 4ae39aeaa6..738a3e3d0d 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -6,6 +6,7 @@ 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 7033ce2622..05dbfce859 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -5,6 +5,7 @@ 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", @@ -54,6 +55,7 @@ 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 fb46da51df..013f8fcead 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -5,6 +5,7 @@ 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", @@ -81,6 +82,7 @@ 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 62729e97b7..fb153ad0e3 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -5,6 +5,7 @@ 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", @@ -39,6 +40,7 @@ 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 de6ee617bb..57f48d9813 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -5,6 +5,7 @@ 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", @@ -69,6 +70,7 @@ 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 78e6ec1eb8..e08c24706a 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -5,6 +5,7 @@ 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", @@ -24,6 +25,7 @@ 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 322f9f31f8..4f67ff2788 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -7,6 +7,7 @@ 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", @@ -51,5 +52,6 @@ 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 c5189a1ceb..4f54097f03 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -8,6 +8,7 @@ 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 20c6f05dfd..14e5c0c6a4 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export from App.ComplexGeoData import ComplexGeoData + @export( Include="Mod/Fem/App/FemMesh.h", Namespace="Fem", @@ -260,6 +261,7 @@ 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 7fae9c27bf..a756469e5a 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -8,6 +8,7 @@ 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 52db00dc52..bc756ce819 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -8,6 +8,7 @@ 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 11f4bb1766..e3c0e95ff6 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -8,6 +8,7 @@ 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 d22535364d..aba0bf7a97 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -8,6 +8,7 @@ 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 d64ba3d0e3..f4fc527a68 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject + @export( Include="Mod/Fem/Gui/ViewProviderFemConstraint.h", Namespace="FemGui", @@ -32,6 +33,7 @@ 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 3ca4703201..522c140e6a 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject + @export( Include="Mod/Fem/Gui/ViewProviderFemMesh.h", Namespace="FemGui", @@ -43,6 +44,7 @@ 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 1f24bd16de..e35842681b 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -8,6 +8,7 @@ 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 437ec02dff..79216e15bf 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -8,6 +8,7 @@ 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 247216a716..1fdee6f85b 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -7,6 +7,7 @@ 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/MaterialFilterOptions.pyi b/src/Mod/Material/App/MaterialFilterOptions.pyi index d3c8938c2d..9d6a0851f3 100644 --- a/src/Mod/Material/App/MaterialFilterOptions.pyi +++ b/src/Mod/Material/App/MaterialFilterOptions.pyi @@ -6,12 +6,7 @@ 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 80690567bc..1afafb87da 100644 --- a/src/Mod/Material/App/MaterialLibrary.pyi +++ b/src/Mod/Material/App/MaterialLibrary.pyi @@ -6,6 +6,7 @@ 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 1fb65fb286..83a76234f7 100644 --- a/src/Mod/Material/App/MaterialManager.pyi +++ b/src/Mod/Material/App/MaterialManager.pyi @@ -6,11 +6,8 @@ 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 -) + +@export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True) class MaterialManager(BaseClass): """ Material descriptions. @@ -71,4 +68,4 @@ class MaterialManager(BaseClass): """ Refreshes the material tree. Use sparingly as this is an expensive operation. """ - ... \ No newline at end of file + ... diff --git a/src/Mod/Material/App/MaterialProperty.pyi b/src/Mod/Material/App/MaterialProperty.pyi index 999d716904..c1a8d8d572 100644 --- a/src/Mod/Material/App/MaterialProperty.pyi +++ b/src/Mod/Material/App/MaterialProperty.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from ModelProperty import ModelProperty from typing import Final + @export( Include="Mod/Material/App/Materials.h", Namespace="Materials", diff --git a/src/Mod/Material/App/Model.pyi b/src/Mod/Material/App/Model.pyi index 51f765a1ac..c7b2babe2d 100644 --- a/src/Mod/Material/App/Model.pyi +++ b/src/Mod/Material/App/Model.pyi @@ -6,6 +6,7 @@ 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", @@ -19,49 +20,49 @@ class Model(BaseClass): Author: DavidCarter (dcarter@davidcarter.ca) Licence: LGPL """ - + LibraryName: Final[str] = "" """Model library name.""" - + LibraryRoot: Final[str] = "" """Model library path.""" - + LibraryIcon: Final[bytes] = "" """Model icon.""" - + Name: str = "" """Model name.""" - + Type: str = "" """Model type.""" - + Directory: str = "" """Model directory.""" - + UUID: Final[str] = "" """Unique model identifier.""" - + Description: str = "" """Description of the model.""" - + URL: str = "" """URL to a detailed description of the model.""" - + DOI: str = "" """Digital Object Identifier (see https://doi.org/)""" - + Inherited: Final[List[str]] = [] """List of inherited models identified by UUID.""" - + Properties: Final[Dict[str, str]] = {} """Dictionary of model properties.""" - + def addInheritance(self) -> None: """ Add an inherited model. """ ... - + def addProperty(self) -> None: """ Add a model property. diff --git a/src/Mod/Material/App/ModelManager.pyi b/src/Mod/Material/App/ModelManager.pyi index 3d2ba4119e..35380ab9d9 100644 --- a/src/Mod/Material/App/ModelManager.pyi +++ b/src/Mod/Material/App/ModelManager.pyi @@ -6,11 +6,8 @@ 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 -) + +@export(Include="Mod/Material/App/ModelManager.h", Namespace="Materials", Constructor=True) class ModelManager(BaseClass): """ Material model descriptions. @@ -28,13 +25,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/UUIDs.pyi b/src/Mod/Material/App/UUIDs.pyi index 629b2f2add..fbbfec04da 100644 --- a/src/Mod/Material/App/UUIDs.pyi +++ b/src/Mod/Material/App/UUIDs.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final + @export( PythonName="Material.UUIDs", Twin="ModelUUIDs", diff --git a/src/Mod/Material/Gui/MaterialTreeWidget.pyi b/src/Mod/Material/Gui/MaterialTreeWidget.pyi index 00452b52e4..a1ef763b01 100644 --- a/src/Mod/Material/Gui/MaterialTreeWidget.pyi +++ b/src/Mod/Material/Gui/MaterialTreeWidget.pyi @@ -6,6 +6,7 @@ from Metadata import export, constmethod, forward_declarations, class_declaratio 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 18c562aeb0..577e537a81 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -6,6 +6,7 @@ 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 d5657ee8d1..fc67232999 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -7,6 +7,7 @@ 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 d274f81185..067c5dc151 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -5,6 +5,7 @@ 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 016cdfef86..0e5988c6d0 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -7,6 +7,7 @@ from typing import Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Mesh/App/Edge.h", Namespace="Mesh", @@ -45,6 +46,7 @@ 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 1dcdf1eb84..99bb48aad5 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Mesh/App/Facet.h", Namespace="Mesh", @@ -56,6 +57,7 @@ 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 64765f1a28..8d1772e5c7 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export from App.ComplexGeoData import ComplexGeoData + @export( Twin="MeshObject", TwinPointer="MeshObject", @@ -509,6 +510,7 @@ 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 ad2ada3cca..31f610220f 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -8,6 +8,7 @@ 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 a47bb396e6..318938fa34 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Mesh/App/MeshPoint.h", Namespace="Mesh", @@ -33,6 +34,7 @@ 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 8d73f82620..2bbba6ea8e 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -6,6 +6,7 @@ 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 706256a880..ff65500dbf 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -25,6 +25,9 @@ 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 0270897665..9f90aa50c8 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -25,7 +25,8 @@ 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 92ce616001..01f4fa97f1 100644 --- a/src/Mod/Part/App/BRepFeat/MakePrism.pyi +++ b/src/Mod/Part/App/BRepFeat/MakePrism.pyi @@ -6,6 +6,7 @@ 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_MakePipeShell.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi index c2f00505b2..6eed37a243 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -8,6 +8,7 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import overload + @export( PythonName="Part.BRepOffsetAPI_MakePipeShell", Include="BRepOffsetAPI_MakePipeShell.hxx", @@ -75,9 +76,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,7 +87,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): *, WithContact: bool = False, WithCorrection: bool = False - ) -> None: ... + ) -> None: + ... + def add(self, **kwargs) -> None: """ add(shape Profile, bool WithContact=False, bool WithCorrection=False) diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index f6c152a9a0..364248f076 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -104,10 +104,12 @@ 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: """ @@ -147,7 +149,8 @@ class BSplineCurve(BoundedCurve): list_of_ints: List[int], tol: float = 0.0, bool_add: bool = True, - /,) -> None: + /, + ) -> None: """ insertKnots(list_of_floats, list_of_ints, tol = 0.0, bool_add = True) @@ -279,8 +282,7 @@ class BSplineCurve(BoundedCurve): """ ... - def movePoint( - self, U: float, P: Vector, Index1: int, Index2: int, /) -> tuple[int, int]: + def movePoint(self, U: float, P: Vector, Index1: int, Index2: int, /) -> tuple[int, int]: """ movePoint(U, P, Index1, Index2) @@ -342,7 +344,9 @@ 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. @@ -379,7 +383,9 @@ class BSplineCurve(BoundedCurve): @overload @constmethod - def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: ... + def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: + ... + @constmethod def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: """ @@ -398,7 +404,9 @@ 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. @@ -441,7 +449,8 @@ class BSplineCurve(BoundedCurve): periodic: bool = False, degree: int = 3, interpolate: bool = False, - /,) -> None: + /, + ) -> None: """ Builds a B-Spline by a list of poles. arguments: poles (sequence of Base.Vector), [periodic (default is False), degree (default is 3), interpolate (default is False)] @@ -474,7 +483,9 @@ 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. @@ -524,8 +535,7 @@ class BSplineCurve(BoundedCurve): """ ... - def makeC1Continuous( - self, tol: float = 1e-6, ang_tol: float = 1e-7, /) -> "BSplineCurve": + def makeC1Continuous(self, tol: float = 1e-6, ang_tol: float = 1e-7, /) -> "BSplineCurve": """ makeC1Continuous(tol = 1e-6, ang_tol = 1e-7) Reduces as far as possible the multiplicities of the knots of this BSpline diff --git a/src/Mod/Part/App/BSplineSurface.pyi b/src/Mod/Part/App/BSplineSurface.pyi index e725ea32bc..da1915e721 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -185,7 +185,8 @@ class BSplineSurface(GeometrySurface): dX: float = ..., Y0: float = ..., dY: float = ..., - /,) -> None: + /, + ) -> None: """ increase(Int=UDegree, int=VDegree) Increases the degrees of this B-Spline surface to UDegree and VDegree @@ -378,8 +379,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setPoleCol( - self, VIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None: + def setPoleCol(self, VIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None: """ Modifies this B-Spline surface by assigning values to all or part of the column of poles of index VIndex, of this B-Spline surface. @@ -389,8 +389,7 @@ class BSplineSurface(GeometrySurface): """ ... - def setPoleRow( - self, UIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None: + def setPoleRow(self, UIndex: int, values: List[Any], CPoleWeights: List[float], /) -> None: """ Modifies this B-Spline surface by assigning values to all or part of the row of poles of index UIndex, of this B-Spline surface. @@ -495,7 +494,8 @@ class BSplineSurface(GeometrySurface): UIndex2: int = ..., VIndex1: int = ..., VIndex2: int = ..., - /,) -> Any: + /, + ) -> Any: """ Moves the point of parameters (U, V) of this B-Spline surface to P. UIndex1, UIndex2, VIndex1 and VIndex2 are the indexes in the poles @@ -695,7 +695,8 @@ class BSplineSurface(GeometrySurface): dX: float = ..., Y0: float = ..., dY: float = ..., - /,) -> None: + /, + ) -> None: """ interpolate(points) interpolate(zpoints, X0, dX, Y0, dY) diff --git a/src/Mod/Part/App/BezierCurve.pyi b/src/Mod/Part/App/BezierCurve.pyi index 2565b9d5ba..c683f20123 100644 --- a/src/Mod/Part/App/BezierCurve.pyi +++ b/src/Mod/Part/App/BezierCurve.pyi @@ -168,8 +168,7 @@ class BezierCurve(BoundedCurve): """ ... - def interpolate( - self, constraints: List[List], parameters: List[float] = ..., /) -> None: + def interpolate(self, constraints: List[List], parameters: List[float] = ..., /) -> None: """ Interpolates a list of constraints. Each constraint is a list of a point and some optional derivatives diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index 9b4594c092..8b3af2e48a 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -6,6 +6,7 @@ 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 8b9f3faddc..49e100d310 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -7,6 +7,7 @@ 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 ec029446d2..b591fffab2 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -44,7 +44,8 @@ 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 32a001b9b2..8c881e087c 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -41,12 +41,21 @@ 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 9116ac1c44..b35a3e019a 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -51,12 +51,21 @@ 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 7aa4947c8e..3bb7a84fe8 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -6,6 +6,7 @@ from Metadata import export, constmethod from typing import Final, overload from Part.Geom2d import ArcOfConic2d + @export( PythonName="Part.Geom2d.ArcOfCircle2d", Twin="Geom2dArcOfCircle", @@ -29,7 +30,9 @@ 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 d2533cdc18..b38b45717c 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -6,6 +6,7 @@ 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 05a04a355e..c595e2c504 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -6,6 +6,7 @@ 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 e108eca788..dcfb80dcc9 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -6,6 +6,7 @@ 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 1499f0921e..6417467c9d 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -6,6 +6,7 @@ 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 04a319f792..4c06a2c0e4 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi @@ -7,6 +7,7 @@ from typing import Final, overload from Part.Curve2d import Curve2d from Base.Vector import Vector + @export( Twin="Geom2dBSplineCurve", TwinPointer="Geom2dBSplineCurve", @@ -124,7 +125,14 @@ class BSplineCurve2d(Curve2d): """ ... - def insertKnots(self, list_of_floats: list[float], list_of_ints: list[int], tol: float = 0.0, bool_add: bool = True, /) -> None: + def insertKnots( + self, + list_of_floats: list[float], + 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) @@ -373,24 +381,18 @@ 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 8896ec6f00..0f4b748893 100644 --- a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi @@ -6,6 +6,7 @@ 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 4ebea3e42d..78b60f4db8 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -6,6 +6,7 @@ from Metadata import export, constmethod from typing import Final, overload, Tuple from Part.Geom2d import Conic2d + @export( PythonName="Part.Geom2d.Circle2d", Twin="Geom2dCircle", @@ -41,17 +42,27 @@ 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 978f9ff1d4..a6c377cfe1 100644 --- a/src/Mod/Part/App/Geom2d/Conic2d.pyi +++ b/src/Mod/Part/App/Geom2d/Conic2d.pyi @@ -6,6 +6,7 @@ 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 11a46cd0d5..de8b7faa32 100644 --- a/src/Mod/Part/App/Geom2d/Curve2d.pyi +++ b/src/Mod/Part/App/Geom2d/Curve2d.pyi @@ -8,6 +8,7 @@ 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", @@ -207,7 +208,9 @@ class Curve2d(Geometry2d): """ ... - def approximateBSpline(self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /) -> BSplineCurve: + def approximateBSpline( + self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", / + ) -> BSplineCurve: """ Approximates a curve of any type to a B-Spline curve approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> B-Spline curve diff --git a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi index 1035e4aecc..14af0cdaa7 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -6,6 +6,7 @@ from typing import Final, overload from Base.Metadata import export, constmethod from Part.Conic2d import Conic2d + @export( Twin="Geom2dEllipse", TwinPointer="Geom2dEllipse", @@ -55,12 +56,20 @@ 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 ca61d6d4b8..4e958d321a 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -6,6 +6,7 @@ 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 d45cb3ff41..852c1a7ee4 100644 --- a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.Conic2d import Conic2d from typing import Final, overload + @export( Twin="Geom2dHyperbola", TwinPointer="Geom2dHyperbola", @@ -61,10 +62,17 @@ 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 236e158d5a..4009317fd7 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -6,6 +6,7 @@ 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 1c8af07de7..9c24774d1c 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from typing import Final, overload from Part.Geom2d import Curve2d + @export( PythonName="Part.Geom2d.Line2dSegment", Twin="Geom2dLineSegment", @@ -36,11 +37,17 @@ 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 46c114cff5..9030954cc9 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -6,6 +6,7 @@ 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 06bf0eb202..580b749813 100644 --- a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi +++ b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi @@ -6,6 +6,7 @@ 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 4f3975999a..59e9f2a4cb 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -6,6 +6,7 @@ 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 8e4bcabf12..06a880483e 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -6,6 +6,7 @@ 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 3dcba1a8ff..7e8f9ea94f 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -45,9 +45,8 @@ 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. """ @@ -55,9 +54,11 @@ 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. """ @@ -65,9 +66,11 @@ 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'. """ @@ -75,9 +78,11 @@ 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. """ @@ -190,7 +195,8 @@ class GeometryCurve(Geometry): uMin: Optional[float] = None, uMax: Optional[float] = None, Tol: Optional[float] = None, - /,) -> float: + /, + ) -> float: """ Computes the length of a curve length([uMin, uMax, Tol]) -> float @@ -202,7 +208,8 @@ class GeometryCurve(Geometry): self, abscissa: Optional[float] = None, startingParameter: Optional[float] = None, - /,) -> float: + /, + ) -> float: """ Returns the parameter on the curve of a point at the given distance from a starting parameter. parameterAtDistance([abscissa, startingParameter]) -> float @@ -384,7 +391,8 @@ class GeometryCurve(Geometry): @constmethod def approximateBSpline( - self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", /) -> "BSplineCurve": + self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", / + ) -> "BSplineCurve": """ Approximates a curve of any type to a B-Spline curve. approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> BSplineCurve diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index b64cac5fa0..bb55b1c45e 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -85,23 +85,29 @@ 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: """ @@ -235,7 +241,9 @@ class GeometrySurface(Geometry): max_degree_v: int = 25, max_segments: int = 1000, precision_code: int = 0, - ) -> Any: ... + ) -> Any: + ... + @constmethod def toBSpline( self, diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index 33d5565b3f..8532f7b27f 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -6,6 +6,7 @@ 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 471bfa6ba0..56a1f0b69a 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase from Part.TopoShapePy import TopoShape from typing import Final, overload + @export( PythonName="Part.HLRBRep_PolyAlgo", Twin="HLRBRep_PolyAlgo", diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index 04e91394dc..f1d401ec53 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -7,6 +7,7 @@ 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 a79afc5930..24750f2356 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -8,6 +8,7 @@ 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 15d2c0c0ba..627c1c3ee4 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -61,10 +61,17 @@ 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 11cdb6395b..5f9a5fec0d 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -39,8 +39,13 @@ 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 a977096da6..7422d36ccd 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -37,11 +37,17 @@ 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/Point.pyi b/src/Mod/Part/App/Point.pyi index 3be16f85f5..034fd7e143 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -33,11 +33,17 @@ class Point(Geometry): """ @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload - def __init__(self, other: "Point") -> None: ... + def __init__(self, other: "Point") -> None: + ... + @overload - def __init__(self, coordinates: Vector) -> None: ... + def __init__(self, coordinates: Vector) -> None: + ... + @constmethod def toShape(self) -> object: """ diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index dacefa6c53..9276b41485 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -6,6 +6,7 @@ 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 267717aba7..a601c32121 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -8,6 +8,7 @@ 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", @@ -23,10 +24,12 @@ 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: """ diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi index 8b13d3fa16..431811faed 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -8,6 +8,7 @@ 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 d2e4873263..d443d2fc8c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -7,6 +7,7 @@ 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 1efcd01bd6..bc824c286b 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -6,6 +6,7 @@ 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 a314490f7e..829dfe4b0d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -7,6 +7,7 @@ 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 e9b429c842..71f94c1189 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -6,6 +6,7 @@ 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 fdb86bf638..c79a6b45f0 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -7,6 +7,7 @@ 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", @@ -22,22 +23,28 @@ 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: + def limitTolerance( + self, shape: TopoShape, tmin: float, tmax: float = 0, ShapeEnum: str = None, / + ) -> None: """ limitTolerance(shape, tmin, [tmax=0, ShapeEnum=SHAPE]) """ ... @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: """ diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi index fd44d06384..dfbd029878 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -6,6 +6,7 @@ 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 371f015fa7..484b13a90c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -6,6 +6,7 @@ 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 478a53d208..61c6723b88 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -6,6 +6,7 @@ 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 044104870d..96580bc169 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -6,6 +6,7 @@ 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 0b1eaebb19..0cc2aba5e8 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -5,6 +5,7 @@ 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 77287d8ce4..695776f3d5 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -6,6 +6,7 @@ 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 e6c7ddc7bc..2acc90c424 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -6,6 +6,7 @@ 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 9295628f01..b2c489e608 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -35,6 +35,5 @@ 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 6978bd6894..e4c469dea0 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -10,6 +10,7 @@ from App.ComplexGeoData import ComplexGeoData from __future__ import annotations from typing import Final, List, Tuple, Union, overload + @export( Include="Mod/Part/App/TopoShape.h", FatherInclude="App/ComplexGeoDataPy.h", @@ -296,7 +297,13 @@ class TopoShape(ComplexGeoData): ... @constmethod - def section(self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, approximation: bool = False, /) -> TopoShape: + def section( + self, + tool: Tuple[TopoShape, ...], + tolerance: float = 0.0, + approximation: bool = False, + / + ) -> TopoShape: """ Section of this with a given (list of) topo shape. section(tool,[approximation=False]) -> Shape @@ -348,7 +355,10 @@ 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) @@ -528,11 +538,13 @@ 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: @@ -546,11 +558,13 @@ 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: @@ -642,13 +656,7 @@ class TopoShape(ComplexGeoData): @constmethod def makeEvolved( - self, - *, - Profile: TopoShape, - Join: int, - AxeProf: bool, - Solid: bool, - ProfOnSpine: bool, + self, *, Profile: TopoShape, Join: int, AxeProf: bool, Solid: bool, ProfOnSpine: bool, Tolerance: float ) -> None: """ @@ -969,7 +977,10 @@ 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) @@ -1023,7 +1034,13 @@ class TopoShape(ComplexGeoData): """ ... - def mapShapes(self, generated: List[Tuple[TopoShape, TopoShape]], modified: List[Tuple[TopoShape, TopoShape]], op: str = "", /) -> None: + def mapShapes( + self, + generated: List[Tuple[TopoShape, TopoShape]], + modified: List[Tuple[TopoShape, TopoShape]], + op: str = "", + / + ) -> None: """ mapShapes(generated, modified, op='') @@ -1137,7 +1154,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def optimalBoundingBox(self, useTriangulation: bool = True, useShapeTolerance: bool = False, /) -> BoundBox: + def optimalBoundingBox( + self, useTriangulation: bool = True, useShapeTolerance: bool = False, / + ) -> BoundBox: """ Get the optimal bounding box optimalBoundingBox([useTriangulation = True, useShapeTolerance = False]) -> bound box diff --git a/src/Mod/Part/App/TopoShapeEdge.pyi b/src/Mod/Part/App/TopoShapeEdge.pyi index 6ced86b057..e717ba83a5 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -455,27 +455,29 @@ 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( @@ -485,7 +487,9 @@ class TopoShapeEdge(TopoShape): Minimum: int = ..., First: float = ..., Last: float = ..., - ) -> List[Vector]: ... + ) -> List[Vector]: + ... + @constmethod def discretize(self, **kwargs) -> List[Vector]: """ diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 8fffb1fdcf..7580cdcab3 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -110,13 +110,7 @@ class TopoShapeFace(TopoShape): @constmethod def makeEvolved( - self, - *, - Profile: TopoShape, - Join: int, - AxeProf: bool, - Solid: bool, - ProfOnSpine: bool, + self, *, Profile: TopoShape, Join: int, AxeProf: bool, Solid: bool, ProfOnSpine: bool, Tolerance: float ) -> TopoShape: """ diff --git a/src/Mod/Part/App/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index 957e563916..435f2d3aac 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -98,12 +98,13 @@ class TopoShapeSolid(TopoShape): @overload @constmethod - def offsetFaces( - self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: ... + def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: + ... @overload @constmethod - def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: ... + def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: + ... @constmethod def offsetFaces(self, *args, **kwargs) -> TopoShape: diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index 179c81c3e0..a7aeb7848b 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -96,8 +96,7 @@ class TopoShapeWire(TopoShape): """ ... - def fixWire( - self, face: Optional[object] = None, tolerance: Optional[float] = None, /) -> None: + def fixWire(self, face: Optional[object] = None, tolerance: Optional[float] = None, /) -> None: """ Fix wire fixWire([face, tolerance]) @@ -129,7 +128,8 @@ class TopoShapeWire(TopoShape): isSolid: bool = False, isFrenet: bool = False, transition: int = 0, - /,) -> object: + /, + ) -> object: """ Make a loft defined by a list of profiles along a wire. makePipeShell(shapeList,[isSolid=False,isFrenet=False,transition=0]) -> Shape @@ -140,14 +140,8 @@ class TopoShapeWire(TopoShape): @constmethod def makeEvolved( - self, - *, - Profile: TopoShape, - Join: int, - AxeProf: bool, - Solid: bool, - ProfOnSpine: bool, - Tolerance: float, + self, *, Profile: TopoShape, Join: int, AxeProf: bool, Solid: bool, ProfOnSpine: bool, + Tolerance: float ) -> TopoShape: """ Profile along the spine diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index 773fcbe946..74dd06dd3e 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -6,6 +6,7 @@ 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 1bb573e5c8..22308d0ffe 100644 --- a/src/Mod/PartDesign/App/Feature.pyi +++ b/src/Mod/PartDesign/App/Feature.pyi @@ -6,6 +6,7 @@ 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 bbfd8fa060..9214123ead 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -6,6 +6,7 @@ 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 34a931d244..5b05d62fe8 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import constmethod, export from Data import object + @export( Father="ComplexGeoDataPy", Twin="PointKernel", @@ -60,6 +61,7 @@ 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 7021edaae5..f4f7db2665 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from Base.Persistence import Persistence + @export( Include="Mod/Robot/App/Robot6Axis.h", Namespace="Robot", @@ -25,6 +26,7 @@ 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 83f91b16b2..05602a99e1 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -8,6 +8,7 @@ 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 6e78fe8ba7..b528494c65 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from Base.Persistence import Persistence + @export( Include="Mod/Robot/App/Trajectory.h", Namespace="Robot", @@ -39,6 +40,7 @@ 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 d793ea0f34..b655da7d48 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -7,6 +7,7 @@ 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 bda851deae..fb17f65cf0 100644 --- a/src/Mod/Sketcher/App/Constraint.pyi +++ b/src/Mod/Sketcher/App/Constraint.pyi @@ -6,6 +6,7 @@ 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 e809190d31..68ae6ec24c 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -6,6 +6,7 @@ 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", @@ -32,5 +33,6 @@ 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 37580a7033..0e2104ea16 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi @@ -6,6 +6,7 @@ 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 561be3cb90..4249aa5848 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.pyi +++ b/src/Mod/Sketcher/App/GeometryFacade.pyi @@ -11,6 +11,7 @@ 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 698aaed707..9daab0671e 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -7,6 +7,7 @@ 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", @@ -60,7 +61,8 @@ class Sketch(Persistence): ... def moveGeometry( - self, GeoIndex: int, PointPos: Vector, Vector: Vector, relative: bool = False, /) -> None: + self, GeoIndex: int, PointPos: Vector, Vector: Vector, relative: bool = False, / + ) -> None: """ moveGeometry(GeoIndex,PointPos,Vector,[relative]) - move a given point (or curve) to another location. diff --git a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi index 2e8cfe069e..8b766d5796 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi @@ -5,6 +5,7 @@ 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 b8453d2c7c..f7e573d090 100644 --- a/src/Mod/Sketcher/App/SketchObject.pyi +++ b/src/Mod/Sketcher/App/SketchObject.pyi @@ -11,6 +11,7 @@ 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", @@ -83,11 +84,17 @@ 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. @@ -224,11 +231,15 @@ 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. @@ -257,8 +268,7 @@ 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 @@ -309,7 +319,8 @@ class SketchObject(Part2DObject): ... def addExternal( - self, objName: str, subName: str, defining: bool = False, intersection: bool = False, /) -> None: + self, objName: str, subName: str, defining: bool = False, intersection: bool = False, / + ) -> None: """ Add a link to an external geometry. @@ -336,9 +347,13 @@ 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. @@ -577,8 +592,7 @@ 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. @@ -594,8 +608,7 @@ 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 0df672b9fd..6c360b3265 100644 --- a/src/Mod/Sketcher/App/SketchObjectSF.pyi +++ b/src/Mod/Sketcher/App/SketchObjectSF.pyi @@ -5,6 +5,7 @@ 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 d12ff8d5f3..f0c8740f0b 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi @@ -5,6 +5,7 @@ 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 1617880935..8689a97272 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -5,6 +5,7 @@ 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 3a09048616..c1bf6f3a16 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -5,6 +5,7 @@ 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 c3b6b2a319..c7c3e46a27 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -5,14 +5,13 @@ 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 f2afe739d9..e3d1e0047e 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -8,6 +8,7 @@ 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 96d60ce2ec..d3e4e5e958 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -8,6 +8,7 @@ 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 a2622c6393..e394ae9ed8 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -7,6 +7,7 @@ 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 1a0cfd9d6e..6f8d48b3c2 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -7,6 +7,7 @@ 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", @@ -43,5 +44,6 @@ 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 1f6296b2ec..0b48094e1f 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -7,6 +7,7 @@ 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", @@ -30,6 +31,7 @@ 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 92c7e887af..d1129dfc53 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -7,6 +7,7 @@ from typing import Final from Base.PyObjectBase import PyObjectBase from Base.Metadata import export + @export( Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index 400834b4fb..f9c617bfee 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension + @export( Include="Mod/TechDraw/App/CosmeticExtension.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index adcc4c34b3..191e5ce958 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -7,6 +7,7 @@ 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", @@ -30,6 +31,7 @@ class CosmeticVertex(PyObjectBase): def copy(self) -> Any: """Create a copy of this CosmeticVertex""" ... + Tag: Final[str] """Gives the tag of the CosmeticVertex as string.""" @@ -39,7 +41,7 @@ class CosmeticVertex(PyObjectBase): Show: bool """Show/hide the vertex.""" - Color: Any # type: tuple[float, float, float, float]] + Color: Any # type: tuple[float, float, float, float]] """set/return the vertex's colour using a tuple (rgba).""" Size: Any diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index 3e4a085ad0..66767c6a37 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart + @export( Include="Mod/TechDraw/App/DrawBrokenView.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index 7485e8321d..e5cffc8f66 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawGeomHatch.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index d18ccedf14..59af46f563 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -6,6 +6,7 @@ from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawHatch.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index dde8091a80..42bf823dcd 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawLeaderLine.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index 61681d87fc..ea53bd2d4b 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawPage.h", Namespace="TechDraw", @@ -45,6 +46,7 @@ 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 af38883645..750e344349 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from DrawTemplate import DrawTemplate + @export( Include="Mod/TechDraw/App/DrawParametricTemplate.h", Namespace="TechDraw", @@ -23,5 +24,6 @@ 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 5a2a0a87f8..1fe3c8f44e 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewCollection import DrawViewCollection + @export( Include="Mod/TechDraw/App/DrawProjGroup.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index c4f8303fc7..abcc6ff9fe 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart + @export( Include="Mod/TechDraw/App/DrawProjGroupItem.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index ece06d65e5..4a1fa6e9ba 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawRichAnno.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 184b1a114f..53450fc736 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from DrawTemplate import DrawTemplate + @export( Include="Mod/TechDraw/App/DrawSVGTemplate.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index 013b935fd0..97a278352b 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawTemplate.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index 1d65c707d5..73bc8a073b 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawTile.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index 03d788df62..bfe37e18b6 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawTile import DrawTile + @export( Include="Mod/TechDraw/App/DrawTileWeld.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 9e053235e6..70a1803823 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawView.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index 8aebcc82ab..f0d734de18 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.Drawview import DrawView + @export( Include="Mod/TechDraw/App/DrawViewAnnotation.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 3b492e2381..1e33c47a22 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -7,10 +7,11 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewClip.h", Namespace="TechDraw", - FatherInclude="Mod/TechDraw/App/DrawViewPy.h", + FatherInclude="Mod/TechDraw/App/DrawViewPy.h", ) class DrawViewClip(DrawView): """ diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 259369729e..87ed242408 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewCollection.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index e242699a7b..78ea25dcdf 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewDimension import DrawViewDimension + @export( Include="Mod/TechDraw/App/DrawViewDimExtent.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 6d38994dc3..317d75a154 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewDimension.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 1f9bdec008..32c537d2ac 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.rawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewPart.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index ed3f2ba60f..d4494577d7 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewSymbol.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index a5f9298743..2a4f60db4d 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawWeldSymbol.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index fc1ce35920..3bec82577b 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -7,6 +7,7 @@ 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", @@ -30,5 +31,6 @@ class GeomFormat(PyObjectBase): def copy(self) -> Any: """Create a copy of this geomformat""" ... + Tag: Final[str] """Gives the tag of the GeomFormat as string.""" From fca800bacaeb1d0472f697dcea66ac6b9daa43aa Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Thu, 25 Sep 2025 21:51:37 -0500 Subject: [PATCH 06/20] [bindings] Code cleanup --- .../bindings/model/generateModel_Python.py | 22 ++++++++++++++++--- src/Tools/bindings/model/typedModel.py | 15 ------------- 2 files changed, 19 insertions(+), 18 deletions(-) diff --git a/src/Tools/bindings/model/generateModel_Python.py b/src/Tools/bindings/model/generateModel_Python.py index a148dd64b6..d767e124d2 100644 --- a/src/Tools/bindings/model/generateModel_Python.py +++ b/src/Tools/bindings/model/generateModel_Python.py @@ -2,7 +2,10 @@ """Parses Python binding interface files into a typed AST model.""" -import ast, re +from dataclasses import dataclass +from enum import Enum +import ast +import re from typing import List from model.typedModel import ( GenerateModel, @@ -14,11 +17,24 @@ from model.typedModel import ( Parameter, ParameterType, SequenceProtocol, - FuncArgument, - ArgumentKind, ) +class ArgumentKind(Enum): + PositionOnly = 0 + Arg = 1 + VarArg = 2 + KwOnly = 3 + KwArg = 4 + + +@dataclass +class FuncArgument: + name: str + annotation: str + kind: ArgumentKind + + class FunctionSignature: """ Parse function arguments with correct classification and order. diff --git a/src/Tools/bindings/model/typedModel.py b/src/Tools/bindings/model/typedModel.py index baa5d19ab9..ae48386b12 100644 --- a/src/Tools/bindings/model/typedModel.py +++ b/src/Tools/bindings/model/typedModel.py @@ -327,18 +327,3 @@ class GenerateModel: for param in meth.Parameter: print(f" * param: {param.Name}, type={param.Type}") -# Rich Modules - -class ArgumentKind(Enum): - PositionOnly = 0 - Arg = 1 - VarArg = 2 - KwOnly = 3 - KwArg = 4 - -@dataclass -class FuncArgument: - name: str - annotation: str - kind: ArgumentKind - From 8e51db4072cddaa2f2a3c5b03783cb47872c4a07 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Fri, 26 Sep 2025 09:29:30 -0500 Subject: [PATCH 07/20] [bindings] re-shape some keyword-only signatures --- src/App/DocumentObject.pyi | 3 +-- src/Base/Vector.pyi | 2 +- src/Gui/Command.pyi | 10 ++++++++-- src/Gui/ViewProvider.pyi | 5 ++--- src/Mod/Part/App/GeometrySurface.pyi | 5 ++--- src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 1 - src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 1 - src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 2 +- src/Mod/Part/App/TopoShape.pyi | 13 +++++++++---- src/Mod/Part/App/TopoShapeFace.pyi | 10 ++++++++-- src/Mod/Part/App/TopoShapeWire.pyi | 11 ++++++++--- 11 files changed, 40 insertions(+), 23 deletions(-) diff --git a/src/App/DocumentObject.pyi b/src/App/DocumentObject.pyi index 917cbcdff4..d9700c2c70 100644 --- a/src/App/DocumentObject.pyi +++ b/src/App/DocumentObject.pyi @@ -67,7 +67,6 @@ class DocumentObject(ExtensionContainer): def addProperty( self, - *, type: str, name: str, group: str = "", @@ -159,8 +158,8 @@ class DocumentObject(ExtensionContainer): def getSubObject( self, - *, subname: Union[str, List[str], Tuple[str, ...]], + *, retType: int = 0, matrix: Matrix = None, transform: bool = True, diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index 0e6617e265..17b7cbd8a1 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -79,7 +79,7 @@ class Vector(PyObjectBase): # fmt: off @overload - def __init__(self, *, x: float = 0, y: float = 0, z: float = 0) -> None: ... + def __init__(self, x: float = 0, y: float = 0, z: float = 0) -> None: ... @overload def __init__(self, vector: "Vector") -> None: ... @overload diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index 9a7c1bc520..47f4aa387f 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -125,8 +125,14 @@ class Command(PyObjectBase): @staticmethod def createCustomCommand( - *, macroFile: str, menuText: str, toolTip: str, whatsThis: str, statusTip: str, pixmap: str, - shortcut: str + *, + macroFile: str, + menuText: str, + toolTip: str, + whatsThis: str, + statusTip: str, + pixmap: str, + shortcut: str, ) -> str: """ createCustomCommand(macroFile, menuText, toolTip, whatsThis, statusTip, pixmap, shortcut) -> str diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 0612ba9568..dd11b0fdd8 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -22,7 +22,6 @@ class ViewProvider(ExtensionContainer): def addProperty( self, - *, type: str, name: str, group: str, @@ -122,7 +121,7 @@ class ViewProvider(ExtensionContainer): ... def canDropObject( - self, *, obj: Any = None, owner: Any = None, subname: str, elem: Optional[List[str]] = None + self, obj: Any = None, *, owner: Any = None, subname: str, elem: Optional[List[str]] = None ) -> bool: """ canDropObject(obj=None, owner=None, subname, elem=None) -> bool @@ -143,7 +142,7 @@ class ViewProvider(ExtensionContainer): ... def dropObject( - self, *, obj: Any, owner: Any = None, subname: str, elem: Optional[List[str]] = None + self, obj: Any, *, owner: Any = None, subname: str, elem: Optional[List[str]] = None ) -> str: """ dropObject(obj, owner=None, subname, elem=None) -> str diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index bb55b1c45e..c606a391fc 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -40,7 +40,7 @@ class GeometrySurface(Geometry): ... @constmethod - def toShell(self, *, Bounds: object, Segment: object) -> Any: + def toShell(self, Bounds: object, Segment: object) -> Any: """ Make a shell of the surface. """ @@ -109,7 +109,7 @@ class GeometrySurface(Geometry): ... @constmethod - def projectPoint(self, *, Point: Vector, Method: str = ...) -> Any: + def projectPoint(self, Point: Vector, Method: str = ...) -> Any: """ Computes the projection of a point on the surface @@ -247,7 +247,6 @@ class GeometrySurface(Geometry): @constmethod def toBSpline( self, - *, tolerance: float = 1e-7, continuity_u: str = "C1", continuity_v: str = "C1", diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index 8532f7b27f..d9c68b75c1 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -103,7 +103,6 @@ class HLRBRep_Algo(PyObjectBase): def setProjector( self, - *, Origin: tuple[float, float, float] = (0, 0, 0), ZDir: tuple[float, float, float] = (0, 0, 0), XDir: tuple[float, float, float] = (0, 0, 0), diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index 56a1f0b69a..0b53d837ac 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -110,7 +110,6 @@ class HLRBRep_PolyAlgo(PyObjectBase): def setProjector( self, - *, 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), diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index f1d401ec53..09271bc4e8 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -146,7 +146,7 @@ class HLRToShape(PyObjectBase): ... def compoundOfEdges( - self, Type: int, Visible: bool, In3D: bool, *, Shape: Optional[TopoShape] = None + self, Type: int, Visible: bool, In3D: bool, Shape: Optional[TopoShape] = None ) -> TopoShape: """ compoundOfEdges(Type: int, Visible: bool, In3D: bool, Shape=None) -> TopoShape diff --git a/src/Mod/Part/App/TopoShape.pyi b/src/Mod/Part/App/TopoShape.pyi index e4c469dea0..92e90945c3 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Base.Matrix import Matrix from Base.BoundBox import BoundBox from App.ComplexGeoData import ComplexGeoData -from __future__ import annotations from typing import Final, List, Tuple, Union, overload @@ -471,7 +470,7 @@ class TopoShape(ComplexGeoData): @constmethod def transformed( - self, *, matrix: Matrix, copy: bool = False, checkScale: bool = False, op: str = None + self, matrix: Matrix, *, copy: bool = False, checkScale: bool = False, op: str = None ) -> TopoShape: """ Create a new transformed shape @@ -656,8 +655,14 @@ class TopoShape(ComplexGeoData): @constmethod def makeEvolved( - self, *, Profile: TopoShape, Join: int, AxeProf: bool, Solid: bool, ProfOnSpine: bool, - Tolerance: float + self, + Profile: TopoShape, + Join: int, + AxeProf: bool, + *, + Solid: bool, + ProfOnSpine: bool, + Tolerance: float, ) -> None: """ Profile along the spine diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 7580cdcab3..66c4ac07e2 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -110,8 +110,14 @@ class TopoShapeFace(TopoShape): @constmethod def makeEvolved( - self, *, Profile: TopoShape, Join: int, AxeProf: bool, Solid: bool, ProfOnSpine: bool, - Tolerance: float + self, + Profile: TopoShape, + Join: int, + *, + AxeProf: bool, + Solid: bool, + ProfOnSpine: bool, + Tolerance: float, ) -> TopoShape: """ Profile along the spine diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index a7aeb7848b..aac8842ff7 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -140,8 +140,14 @@ class TopoShapeWire(TopoShape): @constmethod def makeEvolved( - self, *, Profile: TopoShape, Join: int, AxeProf: bool, Solid: bool, ProfOnSpine: bool, - Tolerance: float + self, + Profile: TopoShape, + Join: int, + *, + AxeProf: bool, + Solid: bool, + ProfOnSpine: bool, + Tolerance: float, ) -> TopoShape: """ Profile along the spine @@ -151,7 +157,6 @@ class TopoShapeWire(TopoShape): @constmethod def approximate( self, - *, Tol2d: float = None, Tol3d: float = 0.0001, MaxSegments: int = 10, From 591e8a36b33ca33c6923c810eebaa31fcaefb4a8 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Fri, 26 Sep 2025 13:23:01 -0500 Subject: [PATCH 08/20] 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}") - From 0509df6b31b2e92469985331755d200b93b1765f Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Sat, 27 Sep 2025 07:27:22 -0500 Subject: [PATCH 09/20] Fixed docstrings --- src/App/ApplicationDirectories.pyi | 6 +++--- src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index 01dd557124..48b6e79073 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -49,14 +49,14 @@ class ApplicationDirectories(PyObjectBase): @staticmethod def versionStringForPath(major: int, minor: int, /) -> str: """ - Given a major and minor version number. + Given a major and minor version number, return the name for a versioned subdirectory. Args: major: Major version number. minor: Minor version number. Returns: - a string that can be used as the name for a versioned subdirectory. + A string that can be used as the name for a versioned subdirectory. Only returns the version string, not the full path. """ ... @@ -73,7 +73,7 @@ class ApplicationDirectories(PyObjectBase): startingPath: The path to check. Returns: - True for any path that the *current* version of FreeCAD would recognized as versioned, + True for any path that the *current* version of FreeCAD would recognize as versioned, and False for either something that is not versioned, or something that is versioned but for a later version of FreeCAD. """ diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index 1c8af07de7..dbb221f6e6 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -16,7 +16,7 @@ from Part.Geom2d import Curve2d ) class Line2dSegment(Curve2d): """ - Describes a line segment in 2D space. + Describes a line segment in 2D space. To create a line there are several ways: Part.Geom2d.Line2dSegment() From a7adf9c4661afc926e7a4b0bc943c4719814ecc0 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Sun, 5 Oct 2025 12:24:43 -0500 Subject: [PATCH 10/20] Clean unused imports in .pyi files --- src/Base/Vector.pyi | 2 +- src/Mod/Material/App/Material.pyi | 2 +- src/Mod/Material/App/MaterialFilter.pyi | 2 +- src/Mod/Material/App/MaterialLibrary.pyi | 3 +-- src/Mod/Material/App/MaterialManager.pyi | 4 ++-- src/Mod/Material/App/Model.pyi | 4 ++-- src/Mod/Material/App/ModelManager.pyi | 2 +- src/Mod/Material/App/ModelProperty.pyi | 2 +- src/Mod/Material/App/UUIDs.pyi | 2 +- src/Mod/Material/Gui/MaterialTreeWidget.pyi | 5 ----- src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi | 4 ++-- src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi | 2 +- src/Mod/Part/App/BezierSurface.pyi | 3 --- src/Mod/Part/App/BodyBase.pyi | 2 +- src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 2 +- src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 4 ++-- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 3 +-- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi | 3 +-- src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Circle2d.pyi | 4 ++-- src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Geometry2d.pyi | 1 - src/Mod/Part/App/Geom2d/Line2d.pyi | 3 +-- src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 4 ++-- src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi | 1 - src/Mod/Part/App/Geom2d/Parabola2d.pyi | 2 +- src/Mod/Part/App/GeomPlate/CurveConstraint.pyi | 4 ++-- src/Mod/Part/App/GeomPlate/PointConstraint.pyi | 3 +-- src/Mod/Part/App/GeometryExtension.pyi | 1 - src/Mod/Part/App/GeometryIntExtension.pyi | 1 - src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 3 +-- src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 3 +-- src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 4 ++-- src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 4 ++-- src/Mod/Part/App/Hyperbola.pyi | 2 +- src/Mod/Part/App/Line.pyi | 2 +- src/Mod/Part/App/LineSegment.pyi | 2 +- src/Mod/Part/App/OffsetCurve.pyi | 1 - src/Mod/Part/App/Parabola.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 3 +-- src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi | 4 ++-- src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi | 3 +-- src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi | 4 ++-- src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi | 3 +-- src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi | 3 +-- src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 3 +-- src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 3 +-- src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi | 1 - src/Mod/Part/App/Sphere.pyi | 3 +-- src/Mod/Part/App/Toroid.pyi | 2 +- src/Mod/PartDesign/App/Body.pyi | 4 ++-- src/Mod/PartDesign/Gui/ViewProvider.pyi | 1 - src/Mod/Sketcher/App/ExternalGeometryExtension.pyi | 1 - src/Mod/Sketcher/App/Sketch.pyi | 2 +- 67 files changed, 64 insertions(+), 99 deletions(-) diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index e62c8258b6..2b3728cc90 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -4,7 +4,7 @@ from __future__ import annotations from Metadata import export, constmethod, sequence_protocol, class_declarations from PyObjectBase import PyObjectBase -from typing import overload, Sequence, TYPE_CHECKING +from typing import overload, Sequence @export( TwinPointer="Vector3d", diff --git a/src/Mod/Material/App/Material.pyi b/src/Mod/Material/App/Material.pyi index c4017a40a4..0297fd9a7b 100644 --- a/src/Mod/Material/App/Material.pyi +++ b/src/Mod/Material/App/Material.pyi @@ -4,7 +4,7 @@ from __future__ import annotations from Base.Metadata import export, no_args, sequence_protocol from Base.BaseClass import BaseClass -from typing import Final, Dict +from typing import Final @export( Include="Mod/Material/App/Materials.h", diff --git a/src/Mod/Material/App/MaterialFilter.pyi b/src/Mod/Material/App/MaterialFilter.pyi index e29a47c017..cd8c4ffc63 100644 --- a/src/Mod/Material/App/MaterialFilter.pyi +++ b/src/Mod/Material/App/MaterialFilter.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass from typing import List diff --git a/src/Mod/Material/App/MaterialLibrary.pyi b/src/Mod/Material/App/MaterialLibrary.pyi index 80690567bc..13db36cf36 100644 --- a/src/Mod/Material/App/MaterialLibrary.pyi +++ b/src/Mod/Material/App/MaterialLibrary.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass -from typing import Final @export( Include="Mod/Material/App/MaterialLibrary.h", diff --git a/src/Mod/Material/App/MaterialManager.pyi b/src/Mod/Material/App/MaterialManager.pyi index 02ff1f46c1..6d9da885bc 100644 --- a/src/Mod/Material/App/MaterialManager.pyi +++ b/src/Mod/Material/App/MaterialManager.pyi @@ -2,9 +2,9 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass -from typing import Final, List, Dict, overload +from typing import Final, List, Dict @export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True) class MaterialManager(BaseClass): diff --git a/src/Mod/Material/App/Model.pyi b/src/Mod/Material/App/Model.pyi index ae99831298..a4e2b2ba66 100644 --- a/src/Mod/Material/App/Model.pyi +++ b/src/Mod/Material/App/Model.pyi @@ -2,9 +2,9 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass -from typing import Final, List, Dict, overload +from typing import Final, List, Dict @export( Include="Mod/Material/App/Model.h", diff --git a/src/Mod/Material/App/ModelManager.pyi b/src/Mod/Material/App/ModelManager.pyi index 1dbda87a49..6b370a5dcb 100644 --- a/src/Mod/Material/App/ModelManager.pyi +++ b/src/Mod/Material/App/ModelManager.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Final, List, Dict diff --git a/src/Mod/Material/App/ModelProperty.pyi b/src/Mod/Material/App/ModelProperty.pyi index 3402d10677..c9e883e04b 100644 --- a/src/Mod/Material/App/ModelProperty.pyi +++ b/src/Mod/Material/App/ModelProperty.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Final diff --git a/src/Mod/Material/App/UUIDs.pyi b/src/Mod/Material/App/UUIDs.pyi index c243afa582..8875a1a19c 100644 --- a/src/Mod/Material/App/UUIDs.pyi +++ b/src/Mod/Material/App/UUIDs.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Final diff --git a/src/Mod/Material/Gui/MaterialTreeWidget.pyi b/src/Mod/Material/Gui/MaterialTreeWidget.pyi index 96a22830a9..727bed014e 100644 --- a/src/Mod/Material/Gui/MaterialTreeWidget.pyi +++ b/src/Mod/Material/Gui/MaterialTreeWidget.pyi @@ -4,13 +4,8 @@ from __future__ import annotations from Metadata import ( export, - constmethod, - forward_declarations, - class_declarations, - sequence_protocol, ) from Base.BaseClass import BaseClass -from typing import Final, overload @export( Twin="MaterialTreeWidget", diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi index b476f2f228..aa83631419 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -2,13 +2,13 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from Part.App.Point import Point from Part.App.TopoShape import TopoShape from Part.App.TopoShapeEdge import TopoShapeEdge from Part.App.TopoShapeFace import TopoShapeFace -from typing import overload, Final +from typing import overload @export( PythonName="Part.BRepOffsetAPI_MakeFilling", diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi index 83f9a3e851..6715bda7fb 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from Base.Vector import Vector from TopoShape import TopoShape diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index 9a40288eff..c75475bf0b 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -5,9 +5,6 @@ from __future__ import annotations from Base.Metadata import ( export, constmethod, - forward_declarations, - class_declarations, - sequence_protocol, ) from GeometrySurface import GeometrySurface from typing import Final, Tuple diff --git a/src/Mod/Part/App/BodyBase.pyi b/src/Mod/Part/App/BodyBase.pyi index ce59058998..91264e08b5 100644 --- a/src/Mod/Part/App/BodyBase.pyi +++ b/src/Mod/Part/App/BodyBase.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from PartFeature import PartFeature @export( diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index 9b4594c092..346f0ab0f5 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Metadata import export, constmethod +from Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Tuple diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi index 8b9f3faddc..086375387c 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -2,8 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod -from typing import Tuple, overload +from Base.Metadata import export +from typing import Tuple from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi index 7efdca1e34..27319aba04 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase -from typing import overload from Part.TopoShapeEdgePy import TopoShapeEdge from Part.PointPy import Point diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi index ae916ddc38..a7dc4fa72c 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi @@ -2,10 +2,9 @@ from __future__ import annotations -from Metadata import export, constmethod +from Metadata import export from Base.PyObjectBase import PyObjectBase from Base.Vector import Vector -from typing import Final @export( Name="ChFi2d_FilletAlgoPy", diff --git a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index 61f8014f73..723aae5bc7 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Metadata import export, constmethod +from Metadata import export from typing import Final, overload from Part.Geom2d import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi index d2533cdc18..70e5f52324 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod, overload +from Base.Metadata import export from typing import Final from Part.Geom2d import Curve2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi index 05a04a355e..e704e62041 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Metadata import export, constmethod +from Metadata import export from typing import Final, overload from Part import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index e108eca788..01e0fb919b 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod, overload +from Base.Metadata import export, overload from typing import Final from Part.Geom2d import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index 1499f0921e..efbf9e7e30 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Metadata import export, constmethod, overload +from Metadata import export, overload from typing import Final from Part.Geom2d import ArcOfConic2d diff --git a/src/Mod/Part/App/Geom2d/Circle2d.pyi b/src/Mod/Part/App/Geom2d/Circle2d.pyi index 4ebea3e42d..5210975889 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -2,8 +2,8 @@ from __future__ import annotations -from Metadata import export, constmethod -from typing import Final, overload, Tuple +from Metadata import export +from typing import overload, Tuple from Part.Geom2d import Conic2d @export( diff --git a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi index 1035e4aecc..1fd46e46eb 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -3,7 +3,7 @@ from __future__ import annotations from typing import Final, overload -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.Conic2d import Conic2d @export( diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index ca61d6d4b8..0677b9a6c9 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase -from typing import overload @export( Twin="Geometry2d", diff --git a/src/Mod/Part/App/Geom2d/Line2d.pyi b/src/Mod/Part/App/Geom2d/Line2d.pyi index 236e158d5a..98d2f5cb20 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.Geom2d.Curve2d import Curve2d -from typing import overload @export( PythonName="Part.Geom2d.Line2d", diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index dbb221f6e6..9c6d5e8965 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -2,8 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod -from typing import Final, overload +from Base.Metadata import export +from typing import overload from Part.Geom2d import Curve2d @export( diff --git a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi index 46c114cff5..74adeb2f60 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -3,7 +3,6 @@ from __future__ import annotations from Metadata import export -from typing import Final from Part.Geom2d import Curve2d @export( diff --git a/src/Mod/Part/App/Geom2d/Parabola2d.pyi b/src/Mod/Part/App/Geom2d/Parabola2d.pyi index 2bb801c7a6..aec0c7bfe5 100644 --- a/src/Mod/Part/App/Geom2d/Parabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Parabola2d.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.App.Geom2d.Conic2d import Conic2d from typing import Final diff --git a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi index 4f3975999a..1ed2225ddb 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -2,9 +2,9 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase -from typing import Final, overload +from typing import Final @export( PythonName="Part.GeomPlate.CurveConstraintPy", diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index 8e4bcabf12..6efd21e82e 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase -from typing import Final, overload @export( PythonName="Part.GeomPlate.PointConstraintPy", diff --git a/src/Mod/Part/App/GeometryExtension.pyi b/src/Mod/Part/App/GeometryExtension.pyi index 3904ed194c..ab0ec8e4a7 100644 --- a/src/Mod/Part/App/GeometryExtension.pyi +++ b/src/Mod/Part/App/GeometryExtension.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase -from typing import Final @export( Include="Mod/Part/App/GeometryExtension.h", diff --git a/src/Mod/Part/App/GeometryIntExtension.pyi b/src/Mod/Part/App/GeometryIntExtension.pyi index 18df13ea9d..afa061a0cf 100644 --- a/src/Mod/Part/App/GeometryIntExtension.pyi +++ b/src/Mod/Part/App/GeometryIntExtension.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export from Part.GeometryExtension import GeometryExtension -from typing import Final @export( Father="GeometryExtensionPy", diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index 29a7b5a4a9..8daa7c844b 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod, class_declarations +from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase -from typing import Final @export( Twin="HLRBRep_Algo", diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index c1bc4ecba1..141417f395 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -2,10 +2,9 @@ from __future__ import annotations -from Base.Metadata import export, constmethod, class_declarations +from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from Part.TopoShapePy import TopoShape -from typing import Final, overload @export( PythonName="Part.HLRBRep_PolyAlgo", diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index cc3b17d3bc..c0069c2645 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -2,10 +2,10 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.TopoShapePy import TopoShape from Base.PyObjectBase import PyObjectBase -from typing import Optional, overload +from typing import Optional @export( PythonName="Part.HLRToShapePy", diff --git a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi index a79afc5930..1121f65fc5 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -2,11 +2,11 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo from Part.TopoShapePy import TopoShape -from typing import Optional, overload +from typing import Optional @export( PythonName="Part.PolyHLRToShapePy", diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index 15d2c0c0ba..aeb148c9e9 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.Vector import Vector from Conic import Conic from typing import Final, overload diff --git a/src/Mod/Part/App/Line.pyi b/src/Mod/Part/App/Line.pyi index 11cdb6395b..5033e3111f 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -5,7 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve -from typing import overload, Final +from typing import overload @export( PythonName="Part.Line", diff --git a/src/Mod/Part/App/LineSegment.pyi b/src/Mod/Part/App/LineSegment.pyi index a977096da6..1a91abd7b0 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -6,7 +6,7 @@ from Base.Metadata import export from Base.Type import Type from TrimmedCurve import TrimmedCurve from Point import Point -from typing import Final, overload +from typing import overload @export( PythonName="Part.LineSegment", diff --git a/src/Mod/Part/App/OffsetCurve.pyi b/src/Mod/Part/App/OffsetCurve.pyi index c8c6d41ee8..3f868fa4ca 100644 --- a/src/Mod/Part/App/OffsetCurve.pyi +++ b/src/Mod/Part/App/OffsetCurve.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve -from typing import Final @export( PythonName="Part.OffsetCurve", diff --git a/src/Mod/Part/App/Parabola.pyi b/src/Mod/Part/App/Parabola.pyi index 741cc42407..bd5597d7ff 100644 --- a/src/Mod/Part/App/Parabola.pyi +++ b/src/Mod/Part/App/Parabola.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.Vector import Vector from Conic import Conic from typing import Final diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index dacefa6c53..b3d2bf3ed3 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod, class_declarations +from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase -from typing import Final @export( PythonName="Part.ShapeFix.Edge", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi index acad1f2a0a..d98ad6efca 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from Part.App.TopoShapeEdge import TopoShapeEdge from Part.App.TopoShape import TopoShape diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi index 8b13d3fa16..7d23f38965 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -2,11 +2,11 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.ShapeFix_Root import ShapeFix_Root from Part.TopoShapeFace import TopoShapeFace from Part.TopoShapeShell import TopoShapeShell -from typing import Final, Union, overload +from typing import Union @export( PythonName="Part.ShapeFix.Face", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi index 574bf56a28..0d1ad6d983 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index d2e4873263..66459b0110 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export 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", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi index 1efcd01bd6..2bd8dec5b0 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root -from typing import overload @export( PythonName="Part.ShapeFix.FixSmallSolid", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi index a314490f7e..9202649f61 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from Part.App.TopoShapeCompound import TopoShapeCompound from Part.App.TopoShape import TopoShape diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi index e9b429c842..3f031e1165 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase -from typing import Final, overload @export( PythonName="Part.ShapeFix.Root", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi index c80c8f7007..398b165da0 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi @@ -2,10 +2,9 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.TopoShape import TopoShape -from typing import Final, overload @export( PythonName="Part.ShapeFix.Shape", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index 3597142f05..48bb615318 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -2,10 +2,10 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from Part.App.TopoShape import TopoShape -from typing import Final, overload +from typing import overload @export( PythonName="Part.ShapeFix.ShapeTolerance", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi index fd44d06384..2e39c02dbe 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Metadata import export, constmethod +from Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root -from typing import Final, overload @export( PythonName="Part.ShapeFix.Shell", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi index 371f015fa7..20d2db8786 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root -from typing import Final @export( PythonName="Part.ShapeFix.Solid", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi index 478a53d208..d4bd1cb5b3 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root -from typing import overload @export( PythonName="Part.ShapeFix.SplitCommonVertex", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi index 573e9d49ff..d2d821d198 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase -from typing import overload @export( PythonName="Part.ShapeFix.SplitTool", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 044104870d..640ddf7bb4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root -from typing import Final @export( PythonName="Part.ShapeFix.Wire", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index 0b1eaebb19..b0d3a090f4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.PyObjectBase import PyObjectBase @export( diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi index 77287d8ce4..b37429ea17 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -2,9 +2,8 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root -from typing import Final @export( PythonName="Part.ShapeFix.Wireframe", diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index e6c7ddc7bc..b63ea5676c 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase -from typing import overload @export( PythonName="Part.ShapeUpgrade.UnifySameDomain", diff --git a/src/Mod/Part/App/Sphere.pyi b/src/Mod/Part/App/Sphere.pyi index 67d6c5257a..15954c95c5 100644 --- a/src/Mod/Part/App/Sphere.pyi +++ b/src/Mod/Part/App/Sphere.pyi @@ -2,8 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod -from Base.BaseClass import BaseClass +from Base.Metadata import export from Base.Vector import Vector from Base.Axis import Axis as AxisPy from GeometrySurface import GeometrySurface diff --git a/src/Mod/Part/App/Toroid.pyi b/src/Mod/Part/App/Toroid.pyi index 58d6618815..abf2210467 100644 --- a/src/Mod/Part/App/Toroid.pyi +++ b/src/Mod/Part/App/Toroid.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.GeometrySurface import GeometrySurface from Base.Vector import Vector from typing import Final diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index 773fcbe946..c72c7768bc 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -2,9 +2,9 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Part.BodyBase import BodyBase -from typing import Final, overload +from typing import Final @export( Include="Mod/PartDesign/App/Body.h", diff --git a/src/Mod/PartDesign/Gui/ViewProvider.pyi b/src/Mod/PartDesign/Gui/ViewProvider.pyi index bbfd8fa060..0e351a063d 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderPartExt import ViewProviderPartExt -from typing import Final, overload @export( Include="Mod/PartDesign/Gui/ViewProvider.h", diff --git a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi index e809190d31..469439a680 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension -from typing import Final, overload @export( PythonName="Sketcher.ExternalGeometryExtension", diff --git a/src/Mod/Sketcher/App/Sketch.pyi b/src/Mod/Sketcher/App/Sketch.pyi index 0ab324906a..036d1f9041 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export from Base.Persistence import Persistence from Base.Vector import Vector from typing import Final, Tuple From 41c48b4f0badca2677658c37205fa7a7fb39fbc7 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Sun, 5 Oct 2025 13:30:30 -0500 Subject: [PATCH 11/20] [bindings] Fix undefined symbols in pti files --- src/Mod/CAM/App/Command.pyi | 2 +- src/Mod/Mesh/App/Edge.pyi | 2 +- src/Mod/Mesh/App/Mesh.pyi | 2 +- src/Mod/Part/App/BSplineCurve.pyi | 8 +++++--- src/Mod/Part/App/BezierSurface.pyi | 2 +- src/Mod/Part/App/GeomPlate/PointConstraint.pyi | 5 +++-- src/Mod/Part/App/GeometryCurve.pyi | 10 ++++++---- src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 2 +- src/Mod/TechDraw/App/CosmeticEdge.pyi | 5 ++++- 9 files changed, 23 insertions(+), 15 deletions(-) diff --git a/src/Mod/CAM/App/Command.pyi b/src/Mod/CAM/App/Command.pyi index e9c1323b46..e9037924b0 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -28,7 +28,7 @@ class Command(Persistence): """setFromGCode(): sets the path from the contents of the given GCode string""" ... - def transform(self, placement: Placement, /) -> "CommandPy": + def transform(self, placement: Placement, /) -> Command: """transform(Placement): returns a copy of this command transformed by the given placement""" ... Name: str diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 016cdfef86..0db207ebf2 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from typing import Final +from typing import Final, Any from Base.Metadata import export from Base.PyObjectBase import PyObjectBase diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index 64765f1a28..96b296f3b2 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -4,7 +4,7 @@ from __future__ import annotations from typing import Any, Final -from Base.Metadata import constmethod, export +from Base.Metadata import constmethod, export, class_declarations from App.ComplexGeoData import ComplexGeoData diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index 523fd95708..d02ceaf329 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -5,7 +5,9 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.Vector import Vector from BoundedCurve import BoundedCurve -from typing import Final, List, overload +from Part.App.Arc import Arc +from Part.App.BezierCurve import BezierCurve +from typing import Final, List, overload, Any @export( PythonName="Part.BSplineCurve", @@ -503,14 +505,14 @@ class BSplineCurve(BoundedCurve): ... @constmethod - def toBezier(self) -> List["BezierCurve"]: + def toBezier(self) -> List[BezierCurve]: """ Build a list of Bezier splines. """ ... @constmethod - def toBiArcs(self, tolerance: float, /) -> List["Arc"]: + def toBiArcs(self, tolerance: float, /) -> List[Arc]: """ Build a list of arcs and lines to approximate the B-spline. toBiArcs(tolerance) -> list. diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index c75475bf0b..5a608abc84 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -7,7 +7,7 @@ from Base.Metadata import ( constmethod, ) from GeometrySurface import GeometrySurface -from typing import Final, Tuple +from typing import Final, Tuple, Any @export( Twin="GeomBezierSurface", diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index 6efd21e82e..7774673887 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase +from typing import Tuple @export( PythonName="Part.GeomPlate.PointConstraintPy", @@ -97,13 +98,13 @@ class PointConstraint(PyObjectBase): """ ... - def setPnt2dOnSurf(self, p: "gp_Pnt2d", /) -> None: + def setPnt2dOnSurf(self, x: float, y: float, /) -> None: """ Allows you to set a 2D point on the surface. It takes a gp_Pnt2d as an argument, representing the 2D point to be associated with the surface. """ ... - def pnt2dOnSurf(self) -> "gp_Pnt2d": + def pnt2dOnSurf(self) -> Tuple[float, float]: """ Returns the 2D point on the surface. It returns a gp_Pnt2d representing the associated 2D point. """ diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index 08b7543d2d..5f2bc68712 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -6,6 +6,8 @@ from Base.Metadata import export, constmethod from Base.Vector import Vector from Base.Rotation import Rotation as RotationPy from Geometry import Geometry +from Part.App.BSplineCurve import BSplineCurve +from Part.App.TrimmedCurve import TrimmedCurve from typing import Final, overload, List, Union, Optional, Tuple @export( @@ -361,7 +363,7 @@ class GeometryCurve(Geometry): ... @constmethod - def toBSpline(self, points: Tuple[float, float], /) -> "BSplineCurve": + def toBSpline(self, points: Tuple[float, float], /) -> BSplineCurve: """ Converts a curve of any type (only part from First to Last) to BSpline curve. toBSpline((first: float, last: float)) -> BSplineCurve @@ -369,7 +371,7 @@ class GeometryCurve(Geometry): ... @constmethod - def toNurbs(self, points: Tuple[float, float], /) -> "NurbsCurve": + def toNurbs(self, points: Tuple[float, float], /) -> BSplineCurve: """ Converts a curve of any type (only part from First to Last) to NURBS curve. toNurbs((first: float, last: float)) -> NurbsCurve @@ -377,7 +379,7 @@ class GeometryCurve(Geometry): ... @constmethod - def trim(self, points: Tuple[float, float], /) -> "TrimmedCurve": + def trim(self, points: Tuple[float, float], /) -> TrimmedCurve: """ Returns a trimmed curve defined in the given parameter range. trim((first: float, last: float)) -> TrimmedCurve @@ -387,7 +389,7 @@ class GeometryCurve(Geometry): @constmethod def approximateBSpline( self, Tolerance: float, MaxSegments: int, MaxDegree: int, Order: str = "C2", / - ) -> "BSplineCurve": + ) -> BSplineCurve: """ Approximates a curve of any type to a B-Spline curve. approximateBSpline(Tolerance, MaxSegments, MaxDegree, [Order='C2']) -> BSplineCurve diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi index 3f031e1165..6d5d0bcc51 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -2,7 +2,7 @@ from __future__ import annotations -from Base.Metadata import export, constmethod +from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase @export( diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index 098c0a09d9..49e6900de5 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -2,10 +2,13 @@ from __future__ import annotations -from typing import Final +from typing import Final, TypeAlias from Base.PyObjectBase import PyObjectBase from Base.Metadata import export +from Base import Vector + +PyCXXVector: TypeAlias = Vector # Dirty trick to workaround current generator limitations @export( Include="Mod/TechDraw/App/Cosmetic.h", From f6615763adbd25463a6c9e82f465fd8f654dea57 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Sun, 5 Oct 2025 14:11:32 -0500 Subject: [PATCH 12/20] Rebase on main and fix ViewProviderAssembly.pyi --- src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index a4518edb3e..1c18a63e7c 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -2,10 +2,10 @@ from __future__ import annotations -from typing import Any +from typing import Any, List, Tuple from Base.Metadata import export - +from App.DocumentObject import DocumentObject from Gui.ViewProvider import ViewProvider @export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui") @@ -34,7 +34,7 @@ class ViewProviderAssembly(ViewProvider): ... def isolateComponents( - self, components: List[DocumentObject] | Tuple[DocumentObject, ...], mode: int + self, components: List[DocumentObject] | Tuple[DocumentObject, ...], mode: int, / ) -> None: """ Temporarily isolates a given set of components in the 3D view. @@ -55,6 +55,7 @@ class ViewProviderAssembly(ViewProvider): Restores the visual state of all components, clearing any active isolation. """ ... + EnableMovement: bool """Enable moving the parts by clicking and dragging.""" From d4d7cabdc5ea918288464a3306aba773a87195dc Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Tue, 7 Oct 2025 12:04:08 -0500 Subject: [PATCH 13/20] [bindings] Fix overload order --- src/App/GeoFeature.pyi | 2 +- src/App/Material.pyi | 3 +-- src/App/StringHasher.pyi | 9 ++++---- src/Base/Metadata.pyi | 4 ++-- src/Base/Placement.pyi | 4 ++++ src/Base/Quantity.pyi | 16 ++++++------- src/Base/Unit.pyi | 1 - src/Gui/LinkView.pyi | 41 +++++++++++++++++----------------- src/Mod/Part/App/TopoShape.pyi | 17 +++++++------- 9 files changed, 50 insertions(+), 47 deletions(-) diff --git a/src/App/GeoFeature.pyi b/src/App/GeoFeature.pyi index e42bc5be0e..1fec4bed82 100644 --- a/src/App/GeoFeature.pyi +++ b/src/App/GeoFeature.pyi @@ -3,7 +3,7 @@ from __future__ import annotations from DocumentObject import DocumentObject -from Base import Placement +from Base.Placement import Placement from typing import Any, Final, Optional class GeoFeature(DocumentObject): diff --git a/src/App/Material.pyi b/src/App/Material.pyi index d27a9df51e..aa54204aa6 100644 --- a/src/App/Material.pyi +++ b/src/App/Material.pyi @@ -24,8 +24,6 @@ class Material(PyObjectBase): UserDocu: This is the Material class """ - @overload - def __init__(self, *args: Any, **kwargs: Any) -> None: ... def set(self, string: str, /) -> None: """ Set(string) -- Set the material. @@ -35,6 +33,7 @@ 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/StringHasher.pyi b/src/App/StringHasher.pyi index 7a881f4edd..b0b4d97840 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -19,7 +19,9 @@ class StringHasher(BaseClass): """ @overload - def __init__(self, *args: Any, **kwargs: Any) -> None: ... + def getID(self, txt: str, base64: bool = False, /) -> Any: ... + @overload + def getID(self, id: int, base64: bool = False, /) -> Any: ... def getID(self, arg: Any, base64: bool = False, /) -> Any: """ getID(txt|id, base64=False) -> StringID @@ -34,16 +36,13 @@ class StringHasher(BaseClass): """ ... - @overload - def getID(self, txt: str, base64: bool = False, /) -> Any: ... - @overload - 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/Base/Metadata.pyi b/src/Base/Metadata.pyi index 627775c30a..ae989b1cc1 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -12,8 +12,8 @@ def export(**kwargs): """ ... -def constmethod(): ... -def no_args(): ... +def constmethod(method): ... +def no_args(method): ... def forward_declarations(source_code): """ A decorator to attach forward declarations to a class. diff --git a/src/Base/Placement.pyi b/src/Base/Placement.pyi index d45cd4873f..616a15cdf8 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -120,6 +120,8 @@ class Placement(PyObjectBase): def rotate( self, center: Sequence[float], axis: Sequence[float], angle: float, *, comp: bool = False ) -> None: ... + + @overload def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None: """ rotate(center, axis, angle, comp) -> None @@ -138,6 +140,8 @@ class Placement(PyObjectBase): optional keyword only argument, if True (default=False), behave like TopoShape.rotate() (i.e. the resulting placements are interchangeable). """ + + def rotate(self, *args, **kwargs) -> None: ... @constmethod diff --git a/src/Base/Quantity.pyi b/src/Base/Quantity.pyi index 8845cfad4b..7afbef1d47 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -54,6 +54,10 @@ class Quantity(PyObjectBase): def __init__(self, string: str) -> None: ... # fmt: on + @overload + def toStr(self, /) -> str: ... + @overload + def toStr(self, decimals: int, /) -> str: ... @constmethod def toStr(self, decimals: int = ..., /) -> str: """ @@ -64,10 +68,6 @@ class Quantity(PyObjectBase): """ ... - @overload - def toStr(self, /) -> str: ... - @overload - def toStr(self, decimals: int, /) -> str: ... @constmethod def getUserPreferred(self) -> Tuple["Quantity", str]: """ @@ -97,6 +97,10 @@ class Quantity(PyObjectBase): """ ... + @overload + def __round__(self, /) -> int: ... + @overload + def __round__(self, ndigits: int, /) -> float: ... @constmethod def __round__(self, ndigits: int = ..., /) -> Union[int, float]: """ @@ -105,7 +109,3 @@ class Quantity(PyObjectBase): """ ... - @overload - def __round__(self, /) -> int: ... - @overload - def __round__(self, ndigits: int, /) -> float: ... diff --git a/src/Base/Unit.pyi b/src/Base/Unit.pyi index 876b713069..e33fb19567 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Metadata import export from PyObjectBase import PyObjectBase from Quantity import Quantity -from Unit import Unit from typing import Final, Tuple, overload @export( diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index 0c4027e2d0..0235143cd1 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -25,6 +25,14 @@ class LinkView(BaseClass): """ ... + @overload + def setMaterial(self, material: None, /) -> None: ... + @overload + def setMaterial(self, material: Any, /) -> None: ... + @overload + def setMaterial(self, material: List[Any], /) -> None: ... + @overload + def setMaterial(self, material: Dict[int, Any], /) -> None: ... def setMaterial(self, material: Any, /) -> None: """ setMaterial(Material): set the override material of the entire linked object @@ -41,14 +49,11 @@ class LinkView(BaseClass): """ ... + @overload - def setMaterial(self, material: None, /) -> None: ... + def setType(self, type: int, /) -> None: ... @overload - def setMaterial(self, material: Any, /) -> None: ... - @overload - def setMaterial(self, material: List[Any], /) -> None: ... - @overload - def setMaterial(self, material: Dict[int, Any], /) -> None: ... + def setType(self, type: int, sublink: bool, /) -> None: ... def setType(self, type: int, sublink: bool = True, /) -> None: """ setType(type, sublink=True): set the link type. @@ -65,9 +70,11 @@ class LinkView(BaseClass): ... @overload - def setType(self, type: int, /) -> None: ... + def setTransform(self, matrix: Any, /) -> None: ... @overload - def setType(self, type: int, sublink: bool, /) -> None: ... + def setTransform(self, matrix: List[Any], /) -> None: ... + @overload + def setTransform(self, matrix: Dict[int, Any], /) -> None: ... def setTransform(self, matrix: Any, /) -> None: """ setTransform(matrix): set transformation of the linked object @@ -80,12 +87,6 @@ class LinkView(BaseClass): """ ... - @overload - def setTransform(self, matrix: Any, /) -> None: ... - @overload - def setTransform(self, matrix: List[Any], /) -> None: ... - @overload - 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) @@ -102,6 +103,12 @@ class LinkView(BaseClass): """ ... + @overload + def setLink(self, obj: Any, /) -> None: ... + @overload + def setLink(self, obj: Any, subname: str, /) -> None: ... + @overload + def setLink(self, obj: Any, subname: List[str], /) -> None: ... def setLink(self, obj: Any, subname: Any = None, /) -> None: """ setLink(object): Set the link @@ -119,12 +126,6 @@ class LinkView(BaseClass): """ ... - @overload - def setLink(self, obj: Any, /) -> None: ... - @overload - def setLink(self, obj: Any, subname: str, /) -> None: ... - @overload - 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/Mod/Part/App/TopoShape.pyi b/src/Mod/Part/App/TopoShape.pyi index de97dbf347..d59ebef2ae 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -521,6 +521,12 @@ class TopoShape(ComplexGeoData): """ ... + @overload + @constmethod + def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: ... + @overload + @constmethod + def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeFillet(self, *args) -> TopoShape: """ @@ -531,12 +537,13 @@ class TopoShape(ComplexGeoData): """ ... + @overload @constmethod - def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: ... + def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: ... @overload @constmethod - def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... + def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeChamfer(self, *args) -> TopoShape: """ @@ -547,12 +554,6 @@ class TopoShape(ComplexGeoData): """ ... - @overload - @constmethod - def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: ... - @overload - @constmethod - def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeThickness(self, faces: List, offset: float, tolerance: float, /) -> TopoShape: """ From 0d0689341be2b73a6bcc5b7c640a79dedadd07ce Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Tue, 7 Oct 2025 12:07:42 -0500 Subject: [PATCH 14/20] [bindings] Format with yapf (precommit will reformat) --- src/App/ApplicationDirectories.pyi | 1 + src/App/ComplexGeoData.pyi | 10 ++- src/App/Document.pyi | 1 + src/App/DocumentObject.pyi | 1 + src/App/DocumentObjectExtension.pyi | 1 + src/App/DocumentObjectGroup.pyi | 1 + src/App/Extension.pyi | 1 + src/App/ExtensionContainer.pyi | 1 + src/App/GeoFeature.pyi | 1 + src/App/GeoFeatureGroupExtension.pyi | 1 + src/App/GroupExtension.pyi | 5 +- src/App/LinkBaseExtension.pyi | 17 +++-- src/App/Material.pyi | 7 +- src/App/MeasureManager.pyi | 1 + src/App/Metadata.pyi | 16 +++-- src/App/OriginGroupExtension.pyi | 1 + src/App/Part.pyi | 1 + src/App/PropertyContainer.pyi | 5 +- src/App/StringHasher.pyi | 9 ++- src/App/StringID.pyi | 8 +-- src/App/SuppressibleExtension.pyi | 1 + 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 | 4 +- src/Base/Precision.pyi | 1 + src/Base/PyObjectBase.pyi | 1 + src/Base/Quantity.pyi | 34 +++++++--- src/Base/Rotation.pyi | 1 + src/Base/Type.pyi | 7 +- src/Base/Unit.pyi | 20 ++++-- src/Base/Vector.pyi | 1 + src/Gui/AxisOrigin.pyi | 2 + src/Gui/Command.pyi | 1 + src/Gui/Document.pyi | 2 + src/Gui/LinkView.pyi | 51 +++++++++++---- src/Gui/Navigation/NavigationStyle.pyi | 5 +- src/Gui/PythonWorkbench.pyi | 1 + src/Gui/Selection/SelectionObject.pyi | 2 + src/Gui/ViewProvider.pyi | 2 + src/Gui/ViewProviderDocumentObject.pyi | 2 + src/Gui/ViewProviderExtension.pyi | 1 + src/Gui/ViewProviderGeometryObject.pyi | 1 + src/Gui/ViewProviderLink.pyi | 1 + src/Gui/Workbench.pyi | 5 +- src/Mod/Assembly/App/AssemblyLink.pyi | 1 + src/Mod/Assembly/App/AssemblyObject.pyi | 7 +- 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 | 1 + src/Mod/Material/App/Array3D.pyi | 1 + src/Mod/Material/App/Material.pyi | 1 + src/Mod/Material/App/MaterialFilter.pyi | 1 + .../Material/App/MaterialFilterOptions.pyi | 1 + src/Mod/Material/App/MaterialLibrary.pyi | 1 + src/Mod/Material/App/MaterialManager.pyi | 1 + src/Mod/Material/App/MaterialProperty.pyi | 1 + 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 | 1 + src/Mod/Material/Gui/MaterialTreeWidget.pyi | 1 + src/Mod/Measure/App/MeasureBase.pyi | 1 + src/Mod/Measure/App/Measurement.pyi | 1 + src/Mod/Measure/Gui/QuickMeasure.pyi | 1 + src/Mod/Mesh/App/Edge.pyi | 2 + src/Mod/Mesh/App/Facet.pyi | 2 + src/Mod/Mesh/App/Mesh.pyi | 2 + src/Mod/Mesh/App/MeshFeature.pyi | 1 + src/Mod/Mesh/App/MeshPoint.pyi | 2 + src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 1 + src/Mod/Part/App/Arc.pyi | 8 ++- src/Mod/Part/App/ArcOfCircle.pyi | 1 + src/Mod/Part/App/ArcOfConic.pyi | 4 +- src/Mod/Part/App/ArcOfEllipse.pyi | 1 + src/Mod/Part/App/ArcOfHyperbola.pyi | 1 + src/Mod/Part/App/ArcOfParabola.pyi | 1 + src/Mod/Part/App/AttachEngine.pyi | 1 + src/Mod/Part/App/AttachExtension.pyi | 1 + src/Mod/Part/App/BRepFeat/MakePrism.pyi | 1 + .../Part/App/BRepOffsetAPI_MakeFilling.pyi | 47 ++++++++++---- .../Part/App/BRepOffsetAPI_MakePipeShell.pyi | 15 +++-- src/Mod/Part/App/BSplineCurve.pyi | 25 +++++-- src/Mod/Part/App/BSplineSurface.pyi | 1 + src/Mod/Part/App/BezierCurve.pyi | 1 + src/Mod/Part/App/BezierSurface.pyi | 1 + src/Mod/Part/App/BodyBase.pyi | 1 + src/Mod/Part/App/BoundedCurve.pyi | 1 + .../Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 1 + src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 1 + src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 6 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi | 1 + src/Mod/Part/App/Circle.pyi | 20 ++++-- src/Mod/Part/App/Cone.pyi | 1 + src/Mod/Part/App/Conic.pyi | 1 + src/Mod/Part/App/Cylinder.pyi | 20 ++++-- src/Mod/Part/App/Ellipse.pyi | 1 + src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 1 + src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 4 +- src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi | 17 +++-- src/Mod/Part/App/Geom2d/BezierCurve2d.pyi | 1 + src/Mod/Part/App/Geom2d/Circle2d.pyi | 21 ++++-- src/Mod/Part/App/Geom2d/Conic2d.pyi | 1 + src/Mod/Part/App/Geom2d/Curve2d.pyi | 57 ++++++++++++---- src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 20 ++++-- src/Mod/Part/App/Geom2d/Geometry2d.pyi | 1 + src/Mod/Part/App/Geom2d/Hyperbola2d.pyi | 16 +++-- src/Mod/Part/App/Geom2d/Line2d.pyi | 1 + src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 13 +++- src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi | 1 + src/Mod/Part/App/Geom2d/Parabola2d.pyi | 1 + .../Part/App/GeomPlate/BuildPlateSurface.pyi | 1 + .../Part/App/GeomPlate/CurveConstraint.pyi | 1 + .../Part/App/GeomPlate/PointConstraint.pyi | 1 + src/Mod/Part/App/Geometry.pyi | 1 + src/Mod/Part/App/GeometryBoolExtension.pyi | 1 + src/Mod/Part/App/GeometryCurve.pyi | 36 ++++++---- src/Mod/Part/App/GeometryDoubleExtension.pyi | 1 + src/Mod/Part/App/GeometryExtension.pyi | 1 + src/Mod/Part/App/GeometryIntExtension.pyi | 1 + src/Mod/Part/App/GeometryStringExtension.pyi | 1 + src/Mod/Part/App/GeometrySurface.pyi | 35 ++++++---- src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 1 + src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 2 + src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 1 + src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 1 + src/Mod/Part/App/Hyperbola.pyi | 16 +++-- src/Mod/Part/App/Line.pyi | 12 +++- src/Mod/Part/App/LineSegment.pyi | 13 +++- src/Mod/Part/App/OffsetCurve.pyi | 1 + src/Mod/Part/App/OffsetSurface.pyi | 1 + src/Mod/Part/App/Parabola.pyi | 1 + src/Mod/Part/App/Part2DObject.pyi | 1 + src/Mod/Part/App/PartFeature.pyi | 1 + src/Mod/Part/App/Plane.pyi | 1 + src/Mod/Part/App/PlateSurface.pyi | 1 + src/Mod/Part/App/Point.pyi | 14 +++- .../Part/App/RectangularTrimmedSurface.pyi | 1 + src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 1 + .../App/ShapeFix/ShapeFix_EdgeConnect.pyi | 9 ++- src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi | 1 + .../App/ShapeFix/ShapeFix_FaceConnect.pyi | 1 + .../App/ShapeFix/ShapeFix_FixSmallFace.pyi | 1 + .../App/ShapeFix/ShapeFix_FixSmallSolid.pyi | 1 + .../Part/App/ShapeFix/ShapeFix_FreeBounds.pyi | 1 + src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 1 + src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi | 1 + .../App/ShapeFix/ShapeFix_ShapeTolerance.pyi | 21 +++--- src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi | 1 + src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi | 1 + .../ShapeFix/ShapeFix_SplitCommonVertex.pyi | 1 + .../Part/App/ShapeFix/ShapeFix_SplitTool.pyi | 1 + src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 2 + .../Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 1 + .../Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 4 +- .../Part/App/ShapeUpgrade/UnifySameDomain.pyi | 1 + src/Mod/Part/App/Sphere.pyi | 1 + src/Mod/Part/App/SurfaceOfExtrusion.pyi | 1 + src/Mod/Part/App/SurfaceOfRevolution.pyi | 6 +- src/Mod/Part/App/TopoShape.pyi | 64 +++++++++--------- src/Mod/Part/App/TopoShapeCompSolid.pyi | 1 + src/Mod/Part/App/TopoShapeCompound.pyi | 5 +- src/Mod/Part/App/TopoShapeEdge.pyi | 33 ++++++---- src/Mod/Part/App/TopoShapeFace.pyi | 1 + src/Mod/Part/App/TopoShapeShell.pyi | 1 + src/Mod/Part/App/TopoShapeSolid.pyi | 9 ++- src/Mod/Part/App/TopoShapeVertex.pyi | 1 + src/Mod/Part/App/TopoShapeWire.pyi | 1 + src/Mod/Part/App/Toroid.pyi | 1 + src/Mod/Part/App/TrimmedCurve.pyi | 1 + src/Mod/Part/Gui/ViewProviderPartExt.pyi | 1 + src/Mod/PartDesign/App/Body.pyi | 1 + src/Mod/PartDesign/App/Feature.pyi | 1 + src/Mod/PartDesign/Gui/ViewProvider.pyi | 1 + src/Mod/Points/App/Points.pyi | 2 + src/Mod/Robot/App/Robot6Axis.pyi | 2 + src/Mod/Robot/App/RobotObject.pyi | 1 + src/Mod/Robot/App/Trajectory.pyi | 2 + src/Mod/Robot/App/Waypoint.pyi | 1 + src/Mod/Sketcher/App/Constraint.pyi | 1 + .../App/ExternalGeometryExtension.pyi | 2 + .../Sketcher/App/ExternalGeometryFacade.pyi | 1 + src/Mod/Sketcher/App/GeometryFacade.pyi | 1 + src/Mod/Sketcher/App/Sketch.pyi | 1 + .../Sketcher/App/SketchGeometryExtension.pyi | 1 + src/Mod/Sketcher/App/SketchObject.pyi | 51 ++++++++------- src/Mod/Sketcher/App/SketchObjectSF.pyi | 1 + .../ViewProviderSketchGeometryExtension.pyi | 1 + .../Spreadsheet/App/PropertyColumnWidths.pyi | 1 + .../Spreadsheet/App/PropertyRowHeights.pyi | 1 + src/Mod/Spreadsheet/App/PropertySheet.pyi | 5 +- src/Mod/Spreadsheet/App/Sheet.pyi | 1 + .../Gui/ViewProviderSpreadsheet.pyi | 1 + src/Mod/Surface/App/Blending/BlendCurve.pyi | 1 + src/Mod/Surface/App/Blending/BlendPoint.pyi | 2 + src/Mod/TechDraw/App/CenterLine.pyi | 2 + src/Mod/TechDraw/App/CosmeticEdge.pyi | 1 + src/Mod/TechDraw/App/CosmeticExtension.pyi | 1 + src/Mod/TechDraw/App/CosmeticVertex.pyi | 2 + src/Mod/TechDraw/App/DrawBrokenView.pyi | 1 + src/Mod/TechDraw/App/DrawGeomHatch.pyi | 1 + src/Mod/TechDraw/App/DrawHatch.pyi | 1 + src/Mod/TechDraw/App/DrawLeaderLine.pyi | 1 + src/Mod/TechDraw/App/DrawPage.pyi | 2 + .../TechDraw/App/DrawParametricTemplate.pyi | 2 + src/Mod/TechDraw/App/DrawProjGroup.pyi | 1 + src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 1 + src/Mod/TechDraw/App/DrawRichAnno.pyi | 1 + src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 1 + src/Mod/TechDraw/App/DrawTemplate.pyi | 1 + src/Mod/TechDraw/App/DrawTile.pyi | 1 + src/Mod/TechDraw/App/DrawTileWeld.pyi | 1 + src/Mod/TechDraw/App/DrawView.pyi | 1 + src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 1 + src/Mod/TechDraw/App/DrawViewClip.pyi | 1 + src/Mod/TechDraw/App/DrawViewCollection.pyi | 1 + src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 1 + src/Mod/TechDraw/App/DrawViewDimension.pyi | 1 + src/Mod/TechDraw/App/DrawViewPart.pyi | 1 + src/Mod/TechDraw/App/DrawViewSymbol.pyi | 1 + src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 1 + src/Mod/TechDraw/App/GeomFormat.pyi | 2 + 254 files changed, 885 insertions(+), 311 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index 48b6e79073..6d44fdf069 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -4,6 +4,7 @@ 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 3534b4b29a..faa8286b4e 100644 --- a/src/App/ComplexGeoData.pyi +++ b/src/App/ComplexGeoData.pyi @@ -12,6 +12,7 @@ from Base.Matrix import Matrix from StringHasher import StringHasher from typing import Any, Final + @export( Namespace="Data", Reference=True, @@ -36,18 +37,14 @@ 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. """ @@ -136,6 +133,7 @@ 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 3e5d8b4438..eb56f4fd69 100644 --- a/src/App/Document.pyi +++ b/src/App/Document.pyi @@ -6,6 +6,7 @@ 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 101147a69c..215d16e4d1 100644 --- a/src/App/DocumentObject.pyi +++ b/src/App/DocumentObject.pyi @@ -9,6 +9,7 @@ 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 diff --git a/src/App/DocumentObjectExtension.pyi b/src/App/DocumentObjectExtension.pyi index 930c0d16ee..118e91cce3 100644 --- a/src/App/DocumentObjectExtension.pyi +++ b/src/App/DocumentObjectExtension.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from Extension import Extension + class DocumentObjectExtension(Extension): """ Base class for all document object extensions diff --git a/src/App/DocumentObjectGroup.pyi b/src/App/DocumentObjectGroup.pyi index 3519c294f6..69f11e278e 100644 --- a/src/App/DocumentObjectGroup.pyi +++ b/src/App/DocumentObjectGroup.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from DocumentObject import DocumentObject + class DocumentObjectGroup(DocumentObject): """ This class handles document objects in group diff --git a/src/App/Extension.pyi b/src/App/Extension.pyi index 855938e93a..282d53acca 100644 --- a/src/App/Extension.pyi +++ b/src/App/Extension.pyi @@ -5,6 +5,7 @@ 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 8e2ef712bf..ecf688249f 100644 --- a/src/App/ExtensionContainer.pyi +++ b/src/App/ExtensionContainer.pyi @@ -5,6 +5,7 @@ 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 1fec4bed82..ec750f4dd3 100644 --- a/src/App/GeoFeature.pyi +++ b/src/App/GeoFeature.pyi @@ -6,6 +6,7 @@ from DocumentObject import DocumentObject from Base.Placement 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 7e7ed2ddd0..bff25d1e7f 100644 --- a/src/App/GeoFeatureGroupExtension.pyi +++ b/src/App/GeoFeatureGroupExtension.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from GroupExtension import GroupExtension + class GeoFeatureGroupExtension(GroupExtension): """ Author: Werner Mayer (wmayer@users.sourceforge.net) diff --git a/src/App/GroupExtension.pyi b/src/App/GroupExtension.pyi index 1aef56034e..6dd692dd74 100644 --- a/src/App/GroupExtension.pyi +++ b/src/App/GroupExtension.pyi @@ -6,9 +6,8 @@ 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 5d6b05e73f..d5b38b07f4 100644 --- a/src/App/LinkBaseExtension.pyi +++ b/src/App/LinkBaseExtension.pyi @@ -6,9 +6,8 @@ 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 @@ -57,11 +56,17 @@ class LinkBaseExtension(DocumentObjectExtension): ... @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. diff --git a/src/App/Material.pyi b/src/App/Material.pyi index aa54204aa6..457a44cfdb 100644 --- a/src/App/Material.pyi +++ b/src/App/Material.pyi @@ -6,15 +6,14 @@ 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. diff --git a/src/App/MeasureManager.pyi b/src/App/MeasureManager.pyi index 949e4e8710..3c9c115e14 100644 --- a/src/App/MeasureManager.pyi +++ b/src/App/MeasureManager.pyi @@ -8,6 +8,7 @@ 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 b399382521..37b5bb4392 100644 --- a/src/App/Metadata.pyi +++ b/src/App/Metadata.pyi @@ -6,6 +6,7 @@ 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, @@ -52,13 +53,20 @@ 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 e9d24800ac..22c4679428 100644 --- a/src/App/OriginGroupExtension.pyi +++ b/src/App/OriginGroupExtension.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from GeoFeatureGroupExtension import GeoFeatureGroupExtension + class OriginGroupExtension(GeoFeatureGroupExtension): """ Author: Alexander Golubev (fatzer2@gmail.com) diff --git a/src/App/Part.pyi b/src/App/Part.pyi index 4b542e59c8..0076cdc971 100644 --- a/src/App/Part.pyi +++ b/src/App/Part.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from GeoFeature import GeoFeature + class Part(GeoFeature): """ Author: Juergen Riegel (FreeCAD@juergen-riegel.net) diff --git a/src/App/PropertyContainer.pyi b/src/App/PropertyContainer.pyi index 1066ec6f6d..a1646d1611 100644 --- a/src/App/PropertyContainer.pyi +++ b/src/App/PropertyContainer.pyi @@ -6,9 +6,8 @@ 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 b0b4d97840..53024412d8 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, overload, Dict + @export( Constructor=True, Reference=True, @@ -19,9 +20,13 @@ 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: + ... + def getID(self, arg: Any, base64: bool = False, /) -> Any: """ getID(txt|id, base64=False) -> StringID diff --git a/src/App/StringID.pyi b/src/App/StringID.pyi index 6e41805997..dd4681f210 100644 --- a/src/App/StringID.pyi +++ b/src/App/StringID.pyi @@ -6,16 +6,15 @@ 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 @@ -30,6 +29,7 @@ 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 4146458c62..4719edf857 100644 --- a/src/App/SuppressibleExtension.pyi +++ b/src/App/SuppressibleExtension.pyi @@ -4,6 +4,7 @@ from __future__ import annotations from DocumentObjectExtension import DocumentObjectExtension + class SuppressibleExtension(DocumentObjectExtension): """ Author: Florian Foinant-Willig (flachyjoe@users.sourceforge.net) diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index 7f0ea391d9..373291b42e 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -8,6 +8,7 @@ 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 0fd55ecef0..94ca026794 100644 --- a/src/Base/BaseClass.pyi +++ b/src/Base/BaseClass.pyi @@ -6,6 +6,7 @@ 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 c76036fcf7..d550308bcb 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -8,6 +8,7 @@ from Vector import Vector from Matrix import Matrix from typing import overload, Any, Final, Tuple, Union + @export( TwinPointer="BoundBox3d", Constructor=True, @@ -136,11 +137,17 @@ 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 @@ -186,9 +193,13 @@ 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: """ @@ -209,14 +220,18 @@ 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 @@ -279,11 +294,17 @@ 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 @@ -303,11 +324,17 @@ 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 @@ -351,11 +378,17 @@ 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 e65f143940..20b9236959 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -10,6 +10,7 @@ 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 bd144f584d..efa51c5179 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -8,6 +8,7 @@ from PyObjectBase import PyObjectBase from enum import IntEnum from typing import overload, Union, Tuple, Sequence + class ScaleType(IntEnum): Other = -1 NoScaling = 0 @@ -15,6 +16,7 @@ class ScaleType(IntEnum): NonUniformLeft = 2 Uniform = 3 + @export( TwinPointer="Matrix4D", Constructor=True, @@ -107,9 +109,13 @@ 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 @@ -129,11 +135,17 @@ 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 @@ -335,9 +347,13 @@ 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 ae989b1cc1..4873852cb5 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,31 +1,40 @@ # 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(method): ... -def no_args(method): ... + +def constmethod(method): + ... + + +def no_args(method): + ... + + def forward_declarations(source_code): """ A decorator to attach forward declarations to a class. """ ... + def class_declarations(source_code): """ A decorator to attach forward declarations to a class. """ ... + def sequence_protocol(**kwargs): """ A decorator to attach sequence protocol metadata to a class. diff --git a/src/Base/Persistence.pyi b/src/Base/Persistence.pyi index 25ba13ac72..9f024acca7 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -6,6 +6,7 @@ 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 616a15cdf8..1bc3be8f7b 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -9,6 +9,7 @@ from Rotation import Rotation as RotationPy from Vector import Vector from typing import Sequence, overload + @export( Constructor=True, Delete=True, @@ -119,7 +120,8 @@ class Placement(PyObjectBase): @overload def rotate( self, center: Sequence[float], axis: Sequence[float], angle: float, *, comp: bool = False - ) -> None: ... + ) -> None: + ... @overload def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None: diff --git a/src/Base/Precision.pyi b/src/Base/Precision.pyi index b3ef75334f..b5502b1d16 100644 --- a/src/Base/Precision.pyi +++ b/src/Base/Precision.pyi @@ -4,6 +4,7 @@ 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 7094cf8e73..fb9d63780d 100644 --- a/src/Base/PyObjectBase.pyi +++ b/src/Base/PyObjectBase.pyi @@ -2,6 +2,7 @@ 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 7afbef1d47..2c4cadba7f 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -7,6 +7,7 @@ from PyObjectBase import PyObjectBase from typing import overload, Final, Tuple, Union from Unit import Unit as UnitPy + @export( NumberProtocol=True, RichCompare=True, @@ -55,9 +56,13 @@ class Quantity(PyObjectBase): # fmt: on @overload - def toStr(self, /) -> str: ... + def toStr(self, /) -> str: + ... + @overload - def toStr(self, decimals: int, /) -> str: ... + def toStr(self, decimals: int, /) -> str: + ... + @constmethod def toStr(self, decimals: int = ..., /) -> str: """ @@ -76,13 +81,21 @@ 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: """ @@ -98,9 +111,13 @@ class Quantity(PyObjectBase): ... @overload - def __round__(self, /) -> int: ... + def __round__(self, /) -> int: + ... + @overload - def __round__(self, ndigits: int, /) -> float: ... + def __round__(self, ndigits: int, /) -> float: + ... + @constmethod def __round__(self, ndigits: int = ..., /) -> Union[int, float]: """ @@ -108,4 +125,3 @@ class Quantity(PyObjectBase): When an argument is passed, work like built-in round(x, ndigits). """ ... - diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index aa6346cbde..78ddb46fb2 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -8,6 +8,7 @@ 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 bb888e1be6..717dc6d858 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -6,17 +6,16 @@ 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 e33fb19567..c6d18244d7 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -7,6 +7,7 @@ from PyObjectBase import PyObjectBase from Quantity import Quantity from typing import Final, Tuple, overload + @export( NumberProtocol=True, RichCompare=True, @@ -30,7 +31,9 @@ class Unit(PyObjectBase): """ @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload def __init__( self, @@ -42,13 +45,20 @@ 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 2b3728cc90..25664d5a22 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -6,6 +6,7 @@ from Metadata import export, constmethod, sequence_protocol, class_declarations from PyObjectBase import PyObjectBase from typing import overload, Sequence + @export( TwinPointer="Vector3d", Include="Base/Vector3D.h", diff --git a/src/Gui/AxisOrigin.pyi b/src/Gui/AxisOrigin.pyi index 045e9bd276..947b4f009e 100644 --- a/src/Gui/AxisOrigin.pyi +++ b/src/Gui/AxisOrigin.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, Tuple, Dict + @export( Constructor=True, Delete=True, @@ -45,6 +46,7 @@ class AxisOrigin(BaseClass): Output Coin path leading to the returned element detail. """ ... + AxisLength: float = 0.0 """Get/set the axis length.""" diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index 47f4aa387f..ed9740d4e5 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -6,6 +6,7 @@ from Base.Metadata import constmethod from Base.PyObjectBase import PyObjectBase from typing import Any, Dict, List, Optional + class Command(PyObjectBase): """ FreeCAD Python wrapper of Command functions diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index d207ea6221..ec3985242c 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -7,6 +7,7 @@ from Base.Persistence import Persistence from Base.Matrix import Matrix from typing import Any, Final, List, Optional + class Document(Persistence): """ This is a Document class @@ -227,6 +228,7 @@ class Document(Persistence): obj : Gui.ViewProvider """ ... + ActiveObject: Any = ... """The active object of the document.""" diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index 0235143cd1..cc74d8649c 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List, Dict, Tuple, overload + @export( Include="Gui/ViewProviderLink.h", Constructor=True, @@ -26,13 +27,21 @@ class LinkView(BaseClass): ... @overload - def setMaterial(self, material: None, /) -> None: ... + def setMaterial(self, material: None, /) -> None: + ... + @overload - def setMaterial(self, material: Any, /) -> None: ... + def setMaterial(self, material: Any, /) -> None: + ... + @overload - def setMaterial(self, material: List[Any], /) -> None: ... + def setMaterial(self, material: List[Any], /) -> None: + ... + @overload - def setMaterial(self, material: Dict[int, Any], /) -> None: ... + def setMaterial(self, material: Dict[int, Any], /) -> None: + ... + def setMaterial(self, material: Any, /) -> None: """ setMaterial(Material): set the override material of the entire linked object @@ -49,11 +58,14 @@ class LinkView(BaseClass): """ ... + @overload + def setType(self, type: int, /) -> None: + ... @overload - def setType(self, type: int, /) -> None: ... - @overload - def setType(self, type: int, sublink: bool, /) -> None: ... + def setType(self, type: int, sublink: bool, /) -> None: + ... + def setType(self, type: int, sublink: bool = True, /) -> None: """ setType(type, sublink=True): set the link type. @@ -70,11 +82,17 @@ class LinkView(BaseClass): ... @overload - def setTransform(self, matrix: Any, /) -> None: ... + def setTransform(self, matrix: Any, /) -> None: + ... + @overload - def setTransform(self, matrix: List[Any], /) -> None: ... + def setTransform(self, matrix: List[Any], /) -> None: + ... + @overload - def setTransform(self, matrix: Dict[int, Any], /) -> None: ... + def setTransform(self, matrix: Dict[int, Any], /) -> None: + ... + def setTransform(self, matrix: Any, /) -> None: """ setTransform(matrix): set transformation of the linked object @@ -104,11 +122,17 @@ class LinkView(BaseClass): ... @overload - def setLink(self, obj: Any, /) -> None: ... + def setLink(self, obj: Any, /) -> None: + ... + @overload - def setLink(self, obj: Any, subname: str, /) -> None: ... + def setLink(self, obj: Any, subname: str, /) -> None: + ... + @overload - def setLink(self, obj: Any, subname: List[str], /) -> None: ... + def setLink(self, obj: Any, subname: List[str], /) -> None: + ... + def setLink(self, obj: Any, subname: Any = None, /) -> None: """ setLink(object): Set the link @@ -152,6 +176,7 @@ class LinkView(BaseClass): Get children view objects """ ... + LinkedView: Final[Any] = ... """The linked view object""" diff --git a/src/Gui/Navigation/NavigationStyle.pyi b/src/Gui/Navigation/NavigationStyle.pyi index ddb0597c61..d6adf27d24 100644 --- a/src/Gui/Navigation/NavigationStyle.pyi +++ b/src/Gui/Navigation/NavigationStyle.pyi @@ -3,9 +3,8 @@ from Base.Metadata import export from Base.BaseClass import BaseClass -@export( - Include="Gui/Navigation/NavigationStyle.h", -) + +@export(Include="Gui/Navigation/NavigationStyle.h", ) class NavigationStyle(BaseClass): """ This is the base class for navigation styles diff --git a/src/Gui/PythonWorkbench.pyi b/src/Gui/PythonWorkbench.pyi index d182eadb42..e4e80ccd1d 100644 --- a/src/Gui/PythonWorkbench.pyi +++ b/src/Gui/PythonWorkbench.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Workbench import Workbench from warnings import deprecated + @export( Twin="PythonBaseWorkbench", TwinPointer="PythonBaseWorkbench", diff --git a/src/Gui/Selection/SelectionObject.pyi b/src/Gui/Selection/SelectionObject.pyi index 22ee6683c5..9baca931f8 100644 --- a/src/Gui/Selection/SelectionObject.pyi +++ b/src/Gui/Selection/SelectionObject.pyi @@ -4,6 +4,7 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Any, Final, Tuple + @export( Include="Gui/Selection/SelectionObject.h", Delete=True, @@ -31,6 +32,7 @@ class SelectionObject(BaseClass): isObjectTypeOf(type) -> Bool """ ... + ObjectName: Final[str] = "" """Name of the selected object""" diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index dd11b0fdd8..50221e26db 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -8,6 +8,7 @@ from App.ExtensionContainer import ExtensionContainer from typing import Any, Final, List, Optional import enum + class ViewProvider(ExtensionContainer): """ This is the ViewProvider base class @@ -341,6 +342,7 @@ class ViewProvider(ExtensionContainer): Default to active view. Optional. """ ... + Annotation: Any = ... """A pivy Separator to add a custom scenegraph to this ViewProvider.""" diff --git a/src/Gui/ViewProviderDocumentObject.pyi b/src/Gui/ViewProviderDocumentObject.pyi index b9c32daab5..721caa2059 100644 --- a/src/Gui/ViewProviderDocumentObject.pyi +++ b/src/Gui/ViewProviderDocumentObject.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from ViewProvider import ViewProvider from typing import Any, Final + class ViewProviderDocumentObject(ViewProvider): """ This is the ViewProvider base class @@ -18,6 +19,7 @@ class ViewProviderDocumentObject(ViewProvider): Update the view representation of the object """ ... + Object: Any = ... """Set/Get the associated data object""" diff --git a/src/Gui/ViewProviderExtension.pyi b/src/Gui/ViewProviderExtension.pyi index f0e7c53f17..35a4f55ba3 100644 --- a/src/Gui/ViewProviderExtension.pyi +++ b/src/Gui/ViewProviderExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import constmethod from App.Extension import Extension + class ViewProviderExtension(Extension): """ Base class for all view provider extensions diff --git a/src/Gui/ViewProviderGeometryObject.pyi b/src/Gui/ViewProviderGeometryObject.pyi index 8e909879b3..3073d44ee5 100644 --- a/src/Gui/ViewProviderGeometryObject.pyi +++ b/src/Gui/ViewProviderGeometryObject.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import no_args from ViewProviderDocumentObject import ViewProviderDocumentObject + class ViewProviderGeometryObject(ViewProviderDocumentObject): """ This is the ViewProvider geometry class diff --git a/src/Gui/ViewProviderLink.pyi b/src/Gui/ViewProviderLink.pyi index 97d2971e59..16322fdc94 100644 --- a/src/Gui/ViewProviderLink.pyi +++ b/src/Gui/ViewProviderLink.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from ViewProviderDocumentObject import ViewProviderDocumentObject from typing import Any, Final + class ViewProviderLink(ViewProviderDocumentObject): """ This is the ViewProviderLink class diff --git a/src/Gui/Workbench.pyi b/src/Gui/Workbench.pyi index 2bff9d2b59..9d261318c6 100644 --- a/src/Gui/Workbench.pyi +++ b/src/Gui/Workbench.pyi @@ -6,9 +6,8 @@ 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 c5e8bf9d4c..a9f4290283 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -8,6 +8,7 @@ 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 cc5fa9dad2..b33c5d3ce0 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export from App.Part import Part + @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") class AssemblyObject(Part): """ @@ -152,10 +153,10 @@ 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", / - ) -> list["App.DocumentObject"]: + def getDownstreamParts(self, start_part: "App.DocumentObject", joint_to_ignore: "App.DocumentObject", + /) -> list["App.DocumentObject"]: """ Finds all parts connected to a start_part that are not connected to ground when a specific joint is ignored. diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index 12c69672fa..220d3e76a6 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -6,6 +6,7 @@ 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 bdb3d684ef..2f5709f251 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -5,6 +5,7 @@ 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 6c452712ab..1604d4afa0 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -6,6 +6,7 @@ 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 f4cef9043b..b33e08cb9e 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -6,6 +6,7 @@ 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 8092311fd0..63c3e990f8 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -6,6 +6,7 @@ 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 1c18a63e7c..f3e983de56 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject 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 dc688ca4c9..206363a8e8 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -5,6 +5,7 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import export + @export( Include="Mod/CAM/App/Area.h", Namespace="Path", @@ -95,6 +96,7 @@ 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 e9037924b0..91827d2b9a 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -4,6 +4,7 @@ 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", @@ -31,6 +32,7 @@ class Command(Persistence): def transform(self, placement: Placement, /) -> Command: """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 7a1877a0a8..dcc49facaa 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/CAM/App/FeatureArea.h", Namespace="Path", @@ -28,5 +29,6 @@ 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 4ae39aeaa6..738a3e3d0d 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -6,6 +6,7 @@ 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 7033ce2622..05dbfce859 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -5,6 +5,7 @@ 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", @@ -54,6 +55,7 @@ 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 fb46da51df..013f8fcead 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -5,6 +5,7 @@ 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", @@ -81,6 +82,7 @@ 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 62729e97b7..fb153ad0e3 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -5,6 +5,7 @@ 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", @@ -39,6 +40,7 @@ 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 de6ee617bb..57f48d9813 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -5,6 +5,7 @@ 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", @@ -69,6 +70,7 @@ 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 78e6ec1eb8..e08c24706a 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -5,6 +5,7 @@ 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", @@ -24,6 +25,7 @@ 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 322f9f31f8..4f67ff2788 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -7,6 +7,7 @@ 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", @@ -51,5 +52,6 @@ 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 c5189a1ceb..4f54097f03 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -8,6 +8,7 @@ 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 20c6f05dfd..14e5c0c6a4 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export from App.ComplexGeoData import ComplexGeoData + @export( Include="Mod/Fem/App/FemMesh.h", Namespace="Fem", @@ -260,6 +261,7 @@ 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 7fae9c27bf..a756469e5a 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -8,6 +8,7 @@ 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 52db00dc52..bc756ce819 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -8,6 +8,7 @@ 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 11f4bb1766..e3c0e95ff6 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -8,6 +8,7 @@ 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 d22535364d..aba0bf7a97 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -8,6 +8,7 @@ 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 d64ba3d0e3..f4fc527a68 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject + @export( Include="Mod/Fem/Gui/ViewProviderFemConstraint.h", Namespace="FemGui", @@ -32,6 +33,7 @@ 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 3ca4703201..522c140e6a 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject + @export( Include="Mod/Fem/Gui/ViewProviderFemMesh.h", Namespace="FemGui", @@ -43,6 +44,7 @@ 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 1f24bd16de..e35842681b 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -8,6 +8,7 @@ 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 437ec02dff..79216e15bf 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -8,6 +8,7 @@ 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 247216a716..1fdee6f85b 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -7,6 +7,7 @@ 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 370033eaeb..461df2338d 100644 --- a/src/Mod/Material/App/Array2D.pyi +++ b/src/Mod/Material/App/Array2D.pyi @@ -7,6 +7,7 @@ from Base.BaseClass import BaseClass from Base.Metadata import constmethod from typing import Final, List, Any + @export( Twin="Array2D", TwinPointer="Array2D", diff --git a/src/Mod/Material/App/Array3D.pyi b/src/Mod/Material/App/Array3D.pyi index 95bd528462..b830905889 100644 --- a/src/Mod/Material/App/Array3D.pyi +++ b/src/Mod/Material/App/Array3D.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List + @export( Twin="Array3D", TwinPointer="Array3D", diff --git a/src/Mod/Material/App/Material.pyi b/src/Mod/Material/App/Material.pyi index 0297fd9a7b..7711b01e93 100644 --- a/src/Mod/Material/App/Material.pyi +++ b/src/Mod/Material/App/Material.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, no_args, sequence_protocol from Base.BaseClass import BaseClass from typing import Final + @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 cd8c4ffc63..c4d017e86c 100644 --- a/src/Mod/Material/App/MaterialFilter.pyi +++ b/src/Mod/Material/App/MaterialFilter.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import List + @export( Include="Mod/Material/App/MaterialFilter.h", Namespace="Materials", diff --git a/src/Mod/Material/App/MaterialFilterOptions.pyi b/src/Mod/Material/App/MaterialFilterOptions.pyi index 418113a06a..e8ba80a1b4 100644 --- a/src/Mod/Material/App/MaterialFilterOptions.pyi +++ b/src/Mod/Material/App/MaterialFilterOptions.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Base.BaseClass import BaseClass + @export( Include="Mod/Material/App/MaterialFilter.h", Namespace="Materials", diff --git a/src/Mod/Material/App/MaterialLibrary.pyi b/src/Mod/Material/App/MaterialLibrary.pyi index 13db36cf36..dd93389763 100644 --- a/src/Mod/Material/App/MaterialLibrary.pyi +++ b/src/Mod/Material/App/MaterialLibrary.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Base.BaseClass import BaseClass + @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 6d9da885bc..ac1dc030be 100644 --- a/src/Mod/Material/App/MaterialManager.pyi +++ b/src/Mod/Material/App/MaterialManager.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Final, List, Dict + @export(Include="Mod/Material/App/MaterialManager.h", Namespace="Materials", Constructor=True) class MaterialManager(BaseClass): """ diff --git a/src/Mod/Material/App/MaterialProperty.pyi b/src/Mod/Material/App/MaterialProperty.pyi index be748b7457..ce2261fe70 100644 --- a/src/Mod/Material/App/MaterialProperty.pyi +++ b/src/Mod/Material/App/MaterialProperty.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from ModelProperty import ModelProperty from typing import Final + @export( Include="Mod/Material/App/Materials.h", Namespace="Materials", diff --git a/src/Mod/Material/App/Model.pyi b/src/Mod/Material/App/Model.pyi index a4e2b2ba66..314cdff512 100644 --- a/src/Mod/Material/App/Model.pyi +++ b/src/Mod/Material/App/Model.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Final, List, Dict + @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 6b370a5dcb..d22b234432 100644 --- a/src/Mod/Material/App/ModelManager.pyi +++ b/src/Mod/Material/App/ModelManager.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export 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): """ @@ -24,13 +25,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 c9e883e04b..186f027f43 100644 --- a/src/Mod/Material/App/ModelProperty.pyi +++ b/src/Mod/Material/App/ModelProperty.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export 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 8875a1a19c..277ee356e9 100644 --- a/src/Mod/Material/App/UUIDs.pyi +++ b/src/Mod/Material/App/UUIDs.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Final + @export( PythonName="Material.UUIDs", Twin="ModelUUIDs", diff --git a/src/Mod/Material/Gui/MaterialTreeWidget.pyi b/src/Mod/Material/Gui/MaterialTreeWidget.pyi index 727bed014e..0ea163f69e 100644 --- a/src/Mod/Material/Gui/MaterialTreeWidget.pyi +++ b/src/Mod/Material/Gui/MaterialTreeWidget.pyi @@ -7,6 +7,7 @@ from Metadata import ( ) from Base.BaseClass import BaseClass + @export( Twin="MaterialTreeWidget", TwinPointer="MaterialTreeWidget", diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index 18c562aeb0..577e537a81 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -6,6 +6,7 @@ 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 d5657ee8d1..fc67232999 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -7,6 +7,7 @@ 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 d274f81185..067c5dc151 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -5,6 +5,7 @@ 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 0db207ebf2..28f05a20e9 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -7,6 +7,7 @@ from typing import Final, Any from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Mesh/App/Edge.h", Namespace="Mesh", @@ -45,6 +46,7 @@ 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 1dcdf1eb84..99bb48aad5 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Mesh/App/Facet.h", Namespace="Mesh", @@ -56,6 +57,7 @@ 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 96b296f3b2..810c6496c5 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -8,6 +8,7 @@ from Base.Metadata import constmethod, export, class_declarations from App.ComplexGeoData import ComplexGeoData + @export( Twin="MeshObject", TwinPointer="MeshObject", @@ -509,6 +510,7 @@ 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 ad2ada3cca..31f610220f 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -8,6 +8,7 @@ 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 a47bb396e6..318938fa34 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Mesh/App/MeshPoint.h", Namespace="Mesh", @@ -33,6 +34,7 @@ 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 8d73f82620..2bbba6ea8e 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -6,6 +6,7 @@ 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 706256a880..c3abf24753 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -7,6 +7,7 @@ from TrimmedCurve import TrimmedCurve from Geometry import Geom_Circle, Geom_Ellipse from typing import overload + @export( Father="TrimmedCurvePy", PythonName="Part.Arc", @@ -25,6 +26,9 @@ class Arc(TrimmedCurve): """ @overload - def __init__(self, circ: Geom_Circle, T: type = ...) -> None: ... + def __init__(self, circ: Geom_Circle, T: type = ...) -> None: + ... + @overload - def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None: ... + def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None: + ... diff --git a/src/Mod/Part/App/ArcOfCircle.pyi b/src/Mod/Part/App/ArcOfCircle.pyi index f09a700774..cc6d4a7e6e 100644 --- a/src/Mod/Part/App/ArcOfCircle.pyi +++ b/src/Mod/Part/App/ArcOfCircle.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final + @export( PythonName="Part.ArcOfCircle", Twin="GeomArcOfCircle", diff --git a/src/Mod/Part/App/ArcOfConic.pyi b/src/Mod/Part/App/ArcOfConic.pyi index 0270897665..469d53dda8 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from TrimmedCurve import TrimmedCurve from typing import overload + @export( Father="TrimmedCurvePy", PythonName="Part.ArcOfConic", @@ -25,7 +26,8 @@ class ArcOfConic(TrimmedCurve): """ @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... Location: Vector = ... """Center of the conic.""" diff --git a/src/Mod/Part/App/ArcOfEllipse.pyi b/src/Mod/Part/App/ArcOfEllipse.pyi index dbb72e5288..fc18f69d3a 100644 --- a/src/Mod/Part/App/ArcOfEllipse.pyi +++ b/src/Mod/Part/App/ArcOfEllipse.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final + @export( PythonName="Part.ArcOfEllipse", Twin="GeomArcOfEllipse", diff --git a/src/Mod/Part/App/ArcOfHyperbola.pyi b/src/Mod/Part/App/ArcOfHyperbola.pyi index 18ec6d17fc..021e3f6418 100644 --- a/src/Mod/Part/App/ArcOfHyperbola.pyi +++ b/src/Mod/Part/App/ArcOfHyperbola.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.ArcOfConic import ArcOfConic from typing import Final + @export( Father="ArcOfConicPy", Name="ArcOfHyperbolaPy", diff --git a/src/Mod/Part/App/ArcOfParabola.pyi b/src/Mod/Part/App/ArcOfParabola.pyi index 0845154bcb..da918281cf 100644 --- a/src/Mod/Part/App/ArcOfParabola.pyi +++ b/src/Mod/Part/App/ArcOfParabola.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final + @export( Father="ArcOfConicPy", Name="ArcOfParabolaPy", diff --git a/src/Mod/Part/App/AttachEngine.pyi b/src/Mod/Part/App/AttachEngine.pyi index 5adecc2284..f565b92c97 100644 --- a/src/Mod/Part/App/AttachEngine.pyi +++ b/src/Mod/Part/App/AttachEngine.pyi @@ -8,6 +8,7 @@ from Base.Placement import Placement from App.DocumentObject import DocumentObject from typing import Final, Optional + @export( Include="Mod/Part/App/Attacher.h", Namespace="Attacher", diff --git a/src/Mod/Part/App/AttachExtension.pyi b/src/Mod/Part/App/AttachExtension.pyi index 5b26a38d88..aa3807811e 100644 --- a/src/Mod/Part/App/AttachExtension.pyi +++ b/src/Mod/Part/App/AttachExtension.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension from typing import Any, Final + @export( Twin="AttachExtension", TwinPointer="AttachExtension", diff --git a/src/Mod/Part/App/BRepFeat/MakePrism.pyi b/src/Mod/Part/App/BRepFeat/MakePrism.pyi index 92ce616001..01f4fa97f1 100644 --- a/src/Mod/Part/App/BRepFeat/MakePrism.pyi +++ b/src/Mod/Part/App/BRepFeat/MakePrism.pyi @@ -6,6 +6,7 @@ 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 aa83631419..5a9194eef3 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -10,6 +10,7 @@ from Part.App.TopoShapeEdge import TopoShapeEdge from Part.App.TopoShapeFace import TopoShapeFace from typing import overload + @export( PythonName="Part.BRepOffsetAPI_MakeFilling", Include="BRepOffsetAPI_MakeFilling.hxx", @@ -62,17 +63,25 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): ... @overload - def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None: ... + def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None: + ... + @overload - def add( - self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True - ) -> None: ... + def add(self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True) -> None: + ... + @overload - def add(self, Support: TopoShapeFace, Order: int) -> None: ... + def add(self, Support: TopoShapeFace, Order: int) -> None: + ... + @overload - def add(self, Point: Point) -> None: ... + def add(self, Point: Point) -> None: + ... + @overload - def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None: ... + def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None: + ... + def add(self, **kwargs) -> None: """ add(Edge, Order, IsBound=True) @@ -97,9 +106,13 @@ 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]) @@ -108,9 +121,13 @@ 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]) @@ -119,9 +136,13 @@ 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 6715bda7fb..020dcc84d2 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -8,6 +8,7 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import overload + @export( PythonName="Part.BRepOffsetAPI_MakePipeShell", Include="BRepOffsetAPI_MakePipeShell.hxx", @@ -57,9 +58,7 @@ 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. @@ -77,9 +76,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, @@ -88,7 +87,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): *, WithContact: bool = False, WithCorrection: bool = False, - ) -> None: ... + ) -> None: + ... + def add(self, **kwargs) -> None: """ add(shape Profile, bool WithContact=False, bool WithCorrection=False) diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index d02ceaf329..af36aa95f5 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -9,6 +9,7 @@ from Part.App.Arc import Arc from Part.App.BezierCurve import BezierCurve from typing import Final, List, overload, Any + @export( PythonName="Part.BSplineCurve", Twin="GeomBSplineCurve", @@ -106,9 +107,13 @@ 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) @@ -342,7 +347,9 @@ 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. @@ -379,7 +386,9 @@ class BSplineCurve(BoundedCurve): @overload @constmethod - def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: ... + def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: + ... + @constmethod def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: """ @@ -398,7 +407,9 @@ 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. @@ -475,7 +486,9 @@ 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 c10412a2d2..bb6b0bdbdc 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from GeometrySurface import GeometrySurface from typing import Final, List, Any + @export( PythonName="Part.BSplineSurface", Twin="GeomBSplineSurface", diff --git a/src/Mod/Part/App/BezierCurve.pyi b/src/Mod/Part/App/BezierCurve.pyi index c683f20123..1d55114f7d 100644 --- a/src/Mod/Part/App/BezierCurve.pyi +++ b/src/Mod/Part/App/BezierCurve.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from BoundedCurve import BoundedCurve from typing import Final, List + @export( Twin="GeomBezierCurve", TwinPointer="GeomBezierCurve", diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index 5a608abc84..32e7aee21f 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -9,6 +9,7 @@ from Base.Metadata import ( from GeometrySurface import GeometrySurface from typing import Final, Tuple, Any + @export( Twin="GeomBezierSurface", TwinPointer="GeomBezierSurface", diff --git a/src/Mod/Part/App/BodyBase.pyi b/src/Mod/Part/App/BodyBase.pyi index 91264e08b5..52cacd1671 100644 --- a/src/Mod/Part/App/BodyBase.pyi +++ b/src/Mod/Part/App/BodyBase.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from PartFeature import PartFeature + @export( Twin="BodyBase", TwinPointer="BodyBase", diff --git a/src/Mod/Part/App/BoundedCurve.pyi b/src/Mod/Part/App/BoundedCurve.pyi index 65241d21fb..3da21fc5f2 100644 --- a/src/Mod/Part/App/BoundedCurve.pyi +++ b/src/Mod/Part/App/BoundedCurve.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Any, Final + @export( Twin="GeomBoundedCurve", TwinPointer="GeomBoundedCurve", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index 346f0ab0f5..c5078b2510 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -6,6 +6,7 @@ from Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Tuple + @export( Name="ChFi2d_AnaFilletAlgoPy", PythonName="Part.ChFi2d.AnaFilletAlgo", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi index 086375387c..3dc5847662 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -7,6 +7,7 @@ from typing import Tuple from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ChFi2d.ChamferAPI", Twin="ChFi2d_ChamferAPI", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi index 27319aba04..d08d9b549e 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase from Part.TopoShapeEdgePy import TopoShapeEdge from Part.PointPy import Point + @export( PythonName="Part.ChFi2d.FilletAPI", Twin="ChFi2d_FilletAPI", @@ -43,9 +44,8 @@ class ChFi2d_FilletAPI(PyObjectBase): """ ... - def result( - self, point: Point, solution: int = -1, / - ) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]: + def result(self, point: Point, solution: int = -1, + /) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]: """ result(point, solution=-1) diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi index a7dc4fa72c..8e92debb7e 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi @@ -6,6 +6,7 @@ from Metadata import export from Base.PyObjectBase import PyObjectBase from Base.Vector import Vector + @export( Name="ChFi2d_FilletAlgoPy", PythonName="Part.ChFi2d.FilletAlgo", diff --git a/src/Mod/Part/App/Circle.pyi b/src/Mod/Part/App/Circle.pyi index 32a001b9b2..85baff9780 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -8,6 +8,7 @@ from Conic import Conic from Point import Point from typing import overload + @export( PythonName="Part.Circle", Twin="GeomCircle", @@ -41,12 +42,21 @@ class Circle(Conic): """The radius of the circle.""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload - def __init__(self, circle: "Circle") -> None: ... + def __init__(self, circle: "Circle") -> None: + ... + @overload - def __init__(self, circle: "Circle", distance: float) -> None: ... + def __init__(self, circle: "Circle", distance: float) -> None: + ... + @overload - def __init__(self, center: Point, normal: Vector, radius: float) -> None: ... + def __init__(self, center: Point, normal: Vector, radius: float) -> None: + ... + @overload - def __init__(self, point1: Point, point2: Point, point3: Point) -> None: ... + def __init__(self, point1: Point, point2: Point, point3: Point) -> None: + ... diff --git a/src/Mod/Part/App/Cone.pyi b/src/Mod/Part/App/Cone.pyi index 632d34cc82..478c187222 100644 --- a/src/Mod/Part/App/Cone.pyi +++ b/src/Mod/Part/App/Cone.pyi @@ -8,6 +8,7 @@ from Base.Axis import Axis as AxisPy from GeometrySurface import GeometrySurface from typing import Final + @export( PythonName="Part.Cone", Twin="GeomCone", diff --git a/src/Mod/Part/App/Conic.pyi b/src/Mod/Part/App/Conic.pyi index dd56278eb4..5a54ce3cd9 100644 --- a/src/Mod/Part/App/Conic.pyi +++ b/src/Mod/Part/App/Conic.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Final + @export( PythonName="Part.Conic", Twin="GeomConic", diff --git a/src/Mod/Part/App/Cylinder.pyi b/src/Mod/Part/App/Cylinder.pyi index 9116ac1c44..52086d4b7a 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -8,6 +8,7 @@ from Circle import Circle from GeometrySurface import GeometrySurface from typing import overload + @export( PythonName="Part.Cylinder", Twin="GeomCylinder", @@ -51,12 +52,21 @@ class Cylinder(GeometrySurface): """The axis direction of the cylinder""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload - def __init__(self, cylinder: "Cylinder") -> None: ... + def __init__(self, cylinder: "Cylinder") -> None: + ... + @overload - def __init__(self, cylinder: "Cylinder", distance: float) -> None: ... + def __init__(self, cylinder: "Cylinder", distance: float) -> None: + ... + @overload - def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None: ... + def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None: + ... + @overload - def __init__(self, circle: Circle) -> None: ... + def __init__(self, circle: Circle) -> None: + ... diff --git a/src/Mod/Part/App/Ellipse.pyi b/src/Mod/Part/App/Ellipse.pyi index 716fb8e054..6fe65dcc56 100644 --- a/src/Mod/Part/App/Ellipse.pyi +++ b/src/Mod/Part/App/Ellipse.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from Conic import Conic from typing import Final + @export( Twin="GeomEllipse", TwinPointer="GeomEllipse", diff --git a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index 723aae5bc7..c4b517af95 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -6,6 +6,7 @@ from Metadata import export from typing import Final, overload from Part.Geom2d import ArcOfConic2d + @export( PythonName="Part.Geom2d.ArcOfCircle2d", Twin="Geom2dArcOfCircle", @@ -29,7 +30,8 @@ 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 70e5f52324..04b1b21f2c 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from typing import Final from Part.Geom2d import Curve2d + @export( PythonName="Part.Geom2d.ArcOfConic2d", Twin="Geom2dArcOfConic", diff --git a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi index e704e62041..98ac4c48fe 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -6,6 +6,7 @@ from Metadata import export from typing import Final, overload from Part import ArcOfConic2d + @export( PythonName="Part.Geom2d.ArcOfEllipse2d", Twin="Geom2dArcOfEllipse", @@ -31,4 +32,5 @@ class ArcOfEllipse2d(ArcOfConic2d): """The internal ellipse representation""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index 01e0fb919b..2d48b2aa43 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, overload from typing import Final from Part.Geom2d import ArcOfConic2d + @export( PythonName="Part.Geom2d.ArcOfHyperbola2d", Twin="Geom2dArcOfHyperbola", @@ -30,4 +31,5 @@ class ArcOfHyperbola2d(ArcOfConic2d): """The internal hyperbola representation""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index efbf9e7e30..cc3d549fdd 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -6,6 +6,7 @@ from Metadata import export, overload from typing import Final from Part.Geom2d import ArcOfConic2d + @export( PythonName="Part.Geom2d.ArcOfParabola2d", Twin="Geom2dArcOfParabola", @@ -29,4 +30,5 @@ class ArcOfParabola2d(ArcOfConic2d): """The internal parabola representation.""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi index 2a434ce988..881c510b16 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi @@ -7,6 +7,7 @@ from typing import Final, overload from Part.Curve2d import Curve2d from Base.Vector import Vector + @export( Twin="Geom2dBSplineCurve", TwinPointer="Geom2dBSplineCurve", @@ -87,9 +88,13 @@ 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) @@ -382,7 +387,9 @@ class BSplineCurve2d(Curve2d): knots: tuple[float, ...], periodic: bool, degree: int, - ) -> None: ... + ) -> None: + ... + @overload def buildFromPolesMultsKnots( self, @@ -393,7 +400,9 @@ class BSplineCurve2d(Curve2d): degree: int, weights: tuple[float, ...], CheckRational: bool, - ) -> None: ... + ) -> None: + ... + def buildFromPolesMultsKnots(self, **kwargs) -> None: """ Builds a B-Spline by a lists of Poles, Mults, Knots. diff --git a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi index 8896ec6f00..0f4b748893 100644 --- a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi @@ -6,6 +6,7 @@ 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 5210975889..8a40a76e94 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -6,6 +6,7 @@ from Metadata import export from typing import overload, Tuple from Part.Geom2d import Conic2d + @export( PythonName="Part.Geom2d.Circle2d", Twin="Geom2dCircle", @@ -41,17 +42,27 @@ 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 978f9ff1d4..a6c377cfe1 100644 --- a/src/Mod/Part/App/Geom2d/Conic2d.pyi +++ b/src/Mod/Part/App/Geom2d/Conic2d.pyi @@ -6,6 +6,7 @@ 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 d0b65d7b22..3c907ffc2d 100644 --- a/src/Mod/Part/App/Geom2d/Curve2d.pyi +++ b/src/Mod/Part/App/Geom2d/Curve2d.pyi @@ -8,6 +8,7 @@ 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", @@ -53,22 +54,34 @@ class Curve2d(Geometry2d): @overload @constmethod - def discretize(self, *, Number: int) -> List[Vector]: ... + def discretize(self, *, Number: int) -> List[Vector]: + ... + @overload @constmethod - def discretize(self, *, QuasiNumber: int) -> List[Vector]: ... + def discretize(self, *, QuasiNumber: int) -> List[Vector]: + ... + @overload @constmethod - def discretize(self, *, Distance: float) -> List[Vector]: ... + def discretize(self, *, Distance: float) -> List[Vector]: + ... + @overload @constmethod - def discretize(self, *, Deflection: float) -> List[Vector]: ... + def discretize(self, *, Deflection: float) -> List[Vector]: + ... + @overload @constmethod - def discretize(self, *, QuasiDeflection: float) -> List[Vector]: ... + def discretize(self, *, QuasiDeflection: float) -> List[Vector]: + ... + @overload @constmethod - def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]: ... + def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]: + ... + @constmethod def discretize(self, **kwargs) -> List[Vector]: """ @@ -107,13 +120,21 @@ 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 @@ -122,9 +143,13 @@ 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 @@ -181,9 +206,13 @@ 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 1fd46e46eb..7651041360 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -6,6 +6,7 @@ from typing import Final, overload from Base.Metadata import export from Part.Conic2d import Conic2d + @export( Twin="Geom2dEllipse", TwinPointer="Geom2dEllipse", @@ -55,12 +56,21 @@ class Ellipse2d(Conic2d): """The second focus is on the negative side of the major axis of the ellipse.""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload - def __init__(self, Ellipse: "Ellipse2d") -> None: ... + def __init__(self, Ellipse: "Ellipse2d") -> None: + ... + @overload - def __init__(self, S1: object, S2: object, Center: object) -> None: ... + def __init__(self, S1: object, S2: object, Center: object) -> None: + ... + @overload - def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ... + def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: + ... + @overload - def __init__(self, *args, **kwargs) -> None: ... + def __init__(self, *args, **kwargs) -> None: + ... diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index 0677b9a6c9..a7e97724da 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase + @export( Twin="Geometry2d", TwinPointer="Geometry2d", diff --git a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi index d45cb3ff41..852c1a7ee4 100644 --- a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.Conic2d import Conic2d from typing import Final, overload + @export( Twin="Geom2dHyperbola", TwinPointer="Geom2dHyperbola", @@ -61,10 +62,17 @@ 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 98d2f5cb20..7863122f53 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.Geom2d.Curve2d import Curve2d + @export( PythonName="Part.Geom2d.Line2d", Twin="Geom2dLine", diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index 9c6d5e8965..ef4c562e4c 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from typing import overload from Part.Geom2d import Curve2d + @export( PythonName="Part.Geom2d.Line2dSegment", Twin="Geom2dLineSegment", @@ -36,11 +37,17 @@ 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 74adeb2f60..5e25992320 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Metadata import export from Part.Geom2d import Curve2d + @export( Name="OffsetCurve2dPy", Namespace="Part", diff --git a/src/Mod/Part/App/Geom2d/Parabola2d.pyi b/src/Mod/Part/App/Geom2d/Parabola2d.pyi index aec0c7bfe5..12bf13c961 100644 --- a/src/Mod/Part/App/Geom2d/Parabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Parabola2d.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.App.Geom2d.Conic2d import Conic2d from typing import Final + @export( Include="Mod/Part/App/Geometry2d.h", FatherInclude="Mod/Part/App/Geom2d/Conic2dPy.h", diff --git a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi index 06bf0eb202..580b749813 100644 --- a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi +++ b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi @@ -6,6 +6,7 @@ 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 1ed2225ddb..cfd3bb2bac 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Final + @export( PythonName="Part.GeomPlate.CurveConstraintPy", Twin="GeomPlate_CurveConstraint", diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index 7774673887..5400f3f4f8 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Tuple + @export( PythonName="Part.GeomPlate.PointConstraintPy", Twin="GeomPlate_PointConstraint", diff --git a/src/Mod/Part/App/Geometry.pyi b/src/Mod/Part/App/Geometry.pyi index afa1653c7a..74ea9c6410 100644 --- a/src/Mod/Part/App/Geometry.pyi +++ b/src/Mod/Part/App/Geometry.pyi @@ -9,6 +9,7 @@ from Base.Vector import Vector from Base.Matrix import Matrix from typing import Final, List, Optional + @export( Include="Mod/Part/App/Geometry.h", Constructor=True, diff --git a/src/Mod/Part/App/GeometryBoolExtension.pyi b/src/Mod/Part/App/GeometryBoolExtension.pyi index 73ca3faa46..32e5a77c67 100644 --- a/src/Mod/Part/App/GeometryBoolExtension.pyi +++ b/src/Mod/Part/App/GeometryBoolExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from GeometryExtension import GeometryExtension + @export( PythonName="Part.GeometryBoolExtension", Include="Mod/Part/App/GeometryDefaultExtension.h", diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index 5f2bc68712..32a31bff25 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -10,6 +10,7 @@ from Part.App.BSplineCurve import BSplineCurve from Part.App.TrimmedCurve import TrimmedCurve from typing import Final, overload, List, Union, Optional, Tuple + @export( Twin="GeomCurve", TwinPointer="GeomCurve", @@ -47,9 +48,8 @@ class GeometryCurve(Geometry): @overload @constmethod - def discretize( - self, Number: int, *, First: Optional[float] = None, Last: Optional[float] = None - ) -> List[Vector]: + def discretize(self, Number: int, *, First: Optional[float] = None, + Last: Optional[float] = None) -> List[Vector]: """ Discretizes the curve and returns a list of points. """ @@ -57,9 +57,11 @@ 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. """ @@ -67,9 +69,11 @@ 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'. """ @@ -77,9 +81,11 @@ 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. """ @@ -88,7 +94,11 @@ class GeometryCurve(Geometry): @overload @constmethod def discretize( - self, QuasiDeflection: float, *, First: Optional[float] = None, Last: Optional[float] = None + self, + QuasiDeflection: float, + *, + First: Optional[float] = None, + Last: Optional[float] = None ) -> List[Vector]: """ Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve (faster). diff --git a/src/Mod/Part/App/GeometryDoubleExtension.pyi b/src/Mod/Part/App/GeometryDoubleExtension.pyi index af1af6688a..34440e7ee1 100644 --- a/src/Mod/Part/App/GeometryDoubleExtension.pyi +++ b/src/Mod/Part/App/GeometryDoubleExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from GeometryExtension import GeometryExtension + @export( PythonName="Part.GeometryDoubleExtension", Include="Mod/Part/App/GeometryDefaultExtension.h", diff --git a/src/Mod/Part/App/GeometryExtension.pyi b/src/Mod/Part/App/GeometryExtension.pyi index ab0ec8e4a7..28ea73dfe4 100644 --- a/src/Mod/Part/App/GeometryExtension.pyi +++ b/src/Mod/Part/App/GeometryExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase + @export( Include="Mod/Part/App/GeometryExtension.h", Constructor=True, diff --git a/src/Mod/Part/App/GeometryIntExtension.pyi b/src/Mod/Part/App/GeometryIntExtension.pyi index afa061a0cf..9bc8041d6f 100644 --- a/src/Mod/Part/App/GeometryIntExtension.pyi +++ b/src/Mod/Part/App/GeometryIntExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.GeometryExtension import GeometryExtension + @export( Father="GeometryExtensionPy", Name="GeometryIntExtensionPy", diff --git a/src/Mod/Part/App/GeometryStringExtension.pyi b/src/Mod/Part/App/GeometryStringExtension.pyi index b64ab4cf8b..47ac650fd4 100644 --- a/src/Mod/Part/App/GeometryStringExtension.pyi +++ b/src/Mod/Part/App/GeometryStringExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from GeometryExtension import GeometryExtension + @export( PythonName="Part.GeometryStringExtension", Include="Mod/Part/App/GeometryDefaultExtension.h", diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index 662ffa0aa3..ec256ae79c 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -10,6 +10,7 @@ from GeometryCurve import GeometryCurve from Line import Line from typing import Final, overload, Any, Tuple, List, Literal, Union + @export( Twin="GeomSurface", TwinPointer="GeomSurface", @@ -85,23 +86,29 @@ 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: """ @@ -235,7 +242,9 @@ class GeometrySurface(Geometry): max_degree_v: int = 25, max_segments: int = 1000, precision_code: int = 0, - ) -> Any: ... + ) -> Any: + ... + @constmethod def toBSpline( self, diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index 8daa7c844b..b3e1fabf10 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase + @export( Twin="HLRBRep_Algo", TwinPointer="HLRBRep_Algo", diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index 141417f395..488e87e118 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from Part.TopoShapePy import TopoShape + @export( PythonName="Part.HLRBRep_PolyAlgo", Twin="HLRBRep_PolyAlgo", @@ -174,6 +175,7 @@ class HLRBRep_PolyAlgo(PyObjectBase): Make a shape with the internal outlines in each face of shape S. """ ... + TolAngular: float = ... TolCoef: float = ... diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index c0069c2645..71892e1293 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -7,6 +7,7 @@ from Part.TopoShapePy import TopoShape from Base.PyObjectBase import PyObjectBase from typing import Optional + @export( PythonName="Part.HLRToShapePy", Twin="HLRBRep_HLRToShape", diff --git a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi index 1121f65fc5..cd108875ec 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -8,6 +8,7 @@ from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo from Part.TopoShapePy import TopoShape from typing import Optional + @export( PythonName="Part.PolyHLRToShapePy", Twin="HLRBRep_PolyHLRToShape", diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index aeb148c9e9..e8bc9c37c7 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from Conic import Conic from typing import Final, overload + @export( Name="HyperbolaPy", Namespace="Part", @@ -61,10 +62,17 @@ 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 5033e3111f..b5b4af8b31 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from GeometryCurve import GeometryCurve from typing import overload + @export( PythonName="Part.Line", Twin="GeomLine", @@ -39,8 +40,13 @@ 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 1a91abd7b0..b8458da698 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -8,6 +8,7 @@ from TrimmedCurve import TrimmedCurve from Point import Point from typing import overload + @export( PythonName="Part.LineSegment", Twin="GeomLineSegment", @@ -37,11 +38,17 @@ class LineSegment(TrimmedCurve): """Returns the end point point of this line.""" @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload - def __init__(self, line_segment: "LineSegment") -> None: ... + def __init__(self, line_segment: "LineSegment") -> None: + ... + @overload - def __init__(self, point1: Point, point2: Point) -> None: ... + def __init__(self, point1: Point, point2: Point) -> None: + ... + def setParameterRange(self) -> None: """ Set the parameter range of the underlying line geometry diff --git a/src/Mod/Part/App/OffsetCurve.pyi b/src/Mod/Part/App/OffsetCurve.pyi index 3f868fa4ca..b64dcf6c93 100644 --- a/src/Mod/Part/App/OffsetCurve.pyi +++ b/src/Mod/Part/App/OffsetCurve.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve + @export( PythonName="Part.OffsetCurve", Twin="GeomOffsetCurve", diff --git a/src/Mod/Part/App/OffsetSurface.pyi b/src/Mod/Part/App/OffsetSurface.pyi index 23a145e35b..b857180d6f 100644 --- a/src/Mod/Part/App/OffsetSurface.pyi +++ b/src/Mod/Part/App/OffsetSurface.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface + @export( Twin="GeomOffsetSurface", TwinPointer="GeomOffsetSurface", diff --git a/src/Mod/Part/App/Parabola.pyi b/src/Mod/Part/App/Parabola.pyi index bd5597d7ff..3f0d379572 100644 --- a/src/Mod/Part/App/Parabola.pyi +++ b/src/Mod/Part/App/Parabola.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from Conic import Conic from typing import Final + @export( Twin="GeomParabola", TwinPointer="GeomParabola", diff --git a/src/Mod/Part/App/Part2DObject.pyi b/src/Mod/Part/App/Part2DObject.pyi index 3f7a62668e..da3b4f8a2b 100644 --- a/src/Mod/Part/App/Part2DObject.pyi +++ b/src/Mod/Part/App/Part2DObject.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from PartFeature import PartFeature + @export( Twin="Part2DObject", TwinPointer="Part2DObject", diff --git a/src/Mod/Part/App/PartFeature.pyi b/src/Mod/Part/App/PartFeature.pyi index e2d9769cc9..1504b2e638 100644 --- a/src/Mod/Part/App/PartFeature.pyi +++ b/src/Mod/Part/App/PartFeature.pyi @@ -7,6 +7,7 @@ from App.GeoFeature import GeoFeature from App.DocumentObject import DocumentObject from typing import List, Tuple, Union + @export( Twin="Feature", TwinPointer="Feature", diff --git a/src/Mod/Part/App/Plane.pyi b/src/Mod/Part/App/Plane.pyi index 043b51023f..0916bb3135 100644 --- a/src/Mod/Part/App/Plane.pyi +++ b/src/Mod/Part/App/Plane.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface + @export( PythonName="Part.Plane", Twin="GeomPlane", diff --git a/src/Mod/Part/App/PlateSurface.pyi b/src/Mod/Part/App/PlateSurface.pyi index 0d55b800be..a6b24a93e9 100644 --- a/src/Mod/Part/App/PlateSurface.pyi +++ b/src/Mod/Part/App/PlateSurface.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface + @export( Twin="GeomPlateSurface", TwinPointer="GeomPlateSurface", diff --git a/src/Mod/Part/App/Point.pyi b/src/Mod/Part/App/Point.pyi index 3be16f85f5..1769b265da 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from Geometry import Geometry from typing import overload + @export( PythonName="Part.Point", Twin="GeomPoint", @@ -33,17 +34,24 @@ class Point(Geometry): """ @overload - def __init__(self) -> None: ... + def __init__(self) -> None: + ... + @overload - def __init__(self, other: "Point") -> None: ... + def __init__(self, other: "Point") -> None: + ... + @overload - def __init__(self, coordinates: Vector) -> None: ... + def __init__(self, coordinates: Vector) -> None: + ... + @constmethod def toShape(self) -> object: """ Create a vertex from this point. """ ... + X: float = ... """X component of this point.""" diff --git a/src/Mod/Part/App/RectangularTrimmedSurface.pyi b/src/Mod/Part/App/RectangularTrimmedSurface.pyi index f1b5de1ddc..d0a0ced08b 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurface.pyi +++ b/src/Mod/Part/App/RectangularTrimmedSurface.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from GeometrySurface import GeometrySurface from typing import Any, Final, Tuple + @export( Twin="GeomTrimmedSurface", TwinPointer="GeomTrimmedSurface", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index b3d2bf3ed3..a60a84cc89 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ShapeFix.Edge", Include="ShapeFix_Edge.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi index d98ad6efca..63a7a8ec5f 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -8,6 +8,7 @@ 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", @@ -23,9 +24,13 @@ 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 7d23f38965..9ba4b5eca9 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -8,6 +8,7 @@ from Part.TopoShapeFace import TopoShapeFace from Part.TopoShapeShell import TopoShapeShell from typing import Union + @export( PythonName="Part.ShapeFix.Face", Include="ShapeFix_Face.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi index 0d1ad6d983..997313723c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ShapeFix.FaceConnect", Include="ShapeFix_FaceConnect.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index 66459b0110..ae2dd62257 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.App.TopoShape import TopoShape + @export( PythonName="Part.ShapeFix.FixSmallFace", Include="ShapeFix_FixSmallFace.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi index 2bd8dec5b0..78bfed768c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root + @export( PythonName="Part.ShapeFix.FixSmallSolid", Include="ShapeFix_FixSmallSolid.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi index 9202649f61..2382bfeb48 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -7,6 +7,7 @@ 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 6d5d0bcc51..f84c92f12e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ShapeFix.Root", Include="ShapeFix_Root.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi index 398b165da0..1e2827279c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.TopoShape import TopoShape + @export( PythonName="Part.ShapeFix.Shape", Include="ShapeFix_Shape.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index 48bb615318..33479fc743 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -7,6 +7,7 @@ from Base.PyObjectBase import PyObjectBase from Part.App.TopoShape import TopoShape from typing import overload + @export( PythonName="Part.ShapeFix.ShapeTolerance", Include="ShapeFix_ShapeTolerance.hxx", @@ -22,11 +23,13 @@ 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: @@ -36,11 +39,13 @@ 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 2e39c02dbe..42d3e7f5b9 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root + @export( PythonName="Part.ShapeFix.Shell", Twin="ShapeFix_Shell", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi index 20d2db8786..4bc465d77b 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root + @export( PythonName="Part.ShapeFix.Solid", Twin="ShapeFix_Solid", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi index d4bd1cb5b3..a794a8e8e4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root + @export( PythonName="Part.ShapeFix.SplitCommonVertex", Include="ShapeFix_SplitCommonVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi index d2d821d198..a1d38628ba 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ShapeFix.SplitTool", Include="ShapeFix_SplitTool.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 640ddf7bb4..401f275411 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root + @export( PythonName="Part.ShapeFix.Wire", Twin="ShapeFix_Wire", @@ -229,6 +230,7 @@ class ShapeFix_Wire(ShapeFix_Root): This method examines the geometry and applies corrective actions to eliminate or reduce the presence of tails. """ pass + ModifyTopologyMode: bool = ... """Mode for modifying topology of the wire""" diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index b0d3a090f4..05a448a666 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ShapeFix.WireVertex", Include="ShapeFix_WireVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi index b37429ea17..5fd469994e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root + @export( PythonName="Part.ShapeFix.Wireframe", Twin="ShapeFix_Wireframe", @@ -51,4 +52,5 @@ class ShapeFix_Wireframe(ShapeFix_Root): """ ... - def shape(self) -> None: ... + def shape(self) -> None: + ... diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index b63ea5676c..7019e0f64b 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase + @export( PythonName="Part.ShapeUpgrade.UnifySameDomain", Include="ShapeUpgrade_UnifySameDomain.hxx", diff --git a/src/Mod/Part/App/Sphere.pyi b/src/Mod/Part/App/Sphere.pyi index 15954c95c5..6be8d3b9de 100644 --- a/src/Mod/Part/App/Sphere.pyi +++ b/src/Mod/Part/App/Sphere.pyi @@ -8,6 +8,7 @@ from Base.Axis import Axis as AxisPy from GeometrySurface import GeometrySurface from typing import Final + @export( Twin="GeomSphere", TwinPointer="GeomSphere", diff --git a/src/Mod/Part/App/SurfaceOfExtrusion.pyi b/src/Mod/Part/App/SurfaceOfExtrusion.pyi index 4590904807..ae65168ebf 100644 --- a/src/Mod/Part/App/SurfaceOfExtrusion.pyi +++ b/src/Mod/Part/App/SurfaceOfExtrusion.pyi @@ -7,6 +7,7 @@ from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve from Base.Vector import Vector + @export( Twin="GeomSurfaceOfExtrusion", TwinPointer="GeomSurfaceOfExtrusion", diff --git a/src/Mod/Part/App/SurfaceOfRevolution.pyi b/src/Mod/Part/App/SurfaceOfRevolution.pyi index 9295628f01..c2a32b51e7 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -9,6 +9,7 @@ from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve from typing import overload + @export( Twin="GeomSurfaceOfRevolution", TwinPointer="GeomSurfaceOfRevolution", @@ -35,6 +36,5 @@ 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 d59ebef2ae..937abc3ac7 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -9,6 +9,7 @@ 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", @@ -87,9 +88,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def writeInventor( - self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object - ) -> str: + def writeInventor(self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object) -> str: """ Write the mesh in OpenInventor format to a string. writeInventor() -> string @@ -296,7 +295,11 @@ 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. @@ -349,9 +352,10 @@ 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) @@ -452,9 +456,7 @@ 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 @@ -523,10 +525,14 @@ class TopoShape(ComplexGeoData): @overload @constmethod - def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: ... + def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: + ... + @overload @constmethod - def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... + def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: + ... + @constmethod def makeFillet(self, *args) -> TopoShape: """ @@ -537,13 +543,16 @@ class TopoShape(ComplexGeoData): """ ... + @overload + @constmethod + def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: + ... @overload @constmethod - def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: ... - @overload - @constmethod - def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... + def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: + ... + @constmethod def makeChamfer(self, *args) -> TopoShape: """ @@ -787,9 +796,7 @@ 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 @@ -965,9 +972,7 @@ 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) @@ -975,9 +980,10 @@ 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) @@ -1022,9 +1028,7 @@ 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 @@ -1097,9 +1101,7 @@ class TopoShape(ComplexGeoData): ... @constmethod - def inTolerance( - self, valmin: float, valmax: float, ShapeType: str = "Shape", / - ) -> List[TopoShape]: + def inTolerance(self, valmin: float, valmax: float, ShapeType: str = "Shape", /) -> List[TopoShape]: """ Determines which shapes have a tolerance within a given interval inTolerance(valmin, valmax, [ShapeType=Shape]) -> ShapeList diff --git a/src/Mod/Part/App/TopoShapeCompSolid.pyi b/src/Mod/Part/App/TopoShapeCompSolid.pyi index d9edec4abe..b573903fb2 100644 --- a/src/Mod/Part/App/TopoShapeCompSolid.pyi +++ b/src/Mod/Part/App/TopoShapeCompSolid.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TopoShape import TopoShape + @export( Father="TopoShapePy", Name="TopoShapeCompSolidPy", diff --git a/src/Mod/Part/App/TopoShapeCompound.pyi b/src/Mod/Part/App/TopoShapeCompound.pyi index 7389ac78e3..d48ef7dda4 100644 --- a/src/Mod/Part/App/TopoShapeCompound.pyi +++ b/src/Mod/Part/App/TopoShapeCompound.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, constmethod from TopoShape import TopoShape + @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -28,9 +29,7 @@ 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 6ced86b057..afd929b94f 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -9,6 +9,7 @@ from Vertex import Vertex from TopoShape import TopoShape from typing import Final, Tuple, Dict, List, overload + @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -455,27 +456,29 @@ 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( @@ -485,7 +488,9 @@ class TopoShapeEdge(TopoShape): Minimum: int = ..., First: float = ..., Last: float = ..., - ) -> List[Vector]: ... + ) -> List[Vector]: + ... + @constmethod def discretize(self, **kwargs) -> List[Vector]: """ diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 66c4ac07e2..63ccc93f34 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import Final, Tuple, Dict, Optional, List + @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeShell.pyi b/src/Mod/Part/App/TopoShapeShell.pyi index 9f35df02af..5eab7d210a 100644 --- a/src/Mod/Part/App/TopoShapeShell.pyi +++ b/src/Mod/Part/App/TopoShapeShell.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Final, Dict + @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index f392f62b12..cb9f5d3d86 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -8,6 +8,7 @@ from Base.Vector import Vector from Base.Matrix import Matrix from typing import Final, Dict, Tuple, overload + @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -98,10 +99,14 @@ class TopoShapeSolid(TopoShape): @overload @constmethod - def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: ... + def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: + ... + @overload @constmethod - def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: ... + def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: + ... + @constmethod def offsetFaces(self, *args, **kwargs) -> TopoShape: """ diff --git a/src/Mod/Part/App/TopoShapeVertex.pyi b/src/Mod/Part/App/TopoShapeVertex.pyi index 7f8d8c9f75..7d298102ea 100644 --- a/src/Mod/Part/App/TopoShapeVertex.pyi +++ b/src/Mod/Part/App/TopoShapeVertex.pyi @@ -7,6 +7,7 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import Final + @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index aac8842ff7..849957dd49 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Dict, List, Final, overload, Optional + @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/Toroid.pyi b/src/Mod/Part/App/Toroid.pyi index abf2210467..12b7c6bb63 100644 --- a/src/Mod/Part/App/Toroid.pyi +++ b/src/Mod/Part/App/Toroid.pyi @@ -7,6 +7,7 @@ from Part.GeometrySurface import GeometrySurface from Base.Vector import Vector from typing import Final + @export( Name="ToroidPy", Namespace="Part", diff --git a/src/Mod/Part/App/TrimmedCurve.pyi b/src/Mod/Part/App/TrimmedCurve.pyi index 49e70f55b2..1ce252e9a5 100644 --- a/src/Mod/Part/App/TrimmedCurve.pyi +++ b/src/Mod/Part/App/TrimmedCurve.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from BoundedCurve import BoundedCurve + @export( Twin="GeomTrimmedCurve", TwinPointer="GeomTrimmedCurve", diff --git a/src/Mod/Part/Gui/ViewProviderPartExt.pyi b/src/Mod/Part/Gui/ViewProviderPartExt.pyi index 717c361643..5c8b3b0716 100644 --- a/src/Mod/Part/Gui/ViewProviderPartExt.pyi +++ b/src/Mod/Part/Gui/ViewProviderPartExt.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject + @export( Include="Mod/Part/Gui/ViewProviderExt.h", Namespace="PartGui", diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index c72c7768bc..fa044d35e4 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from Part.BodyBase import BodyBase from typing import Final + @export( Include="Mod/PartDesign/App/Body.h", FatherInclude="Mod/Part/App/BodyBasePy.h", diff --git a/src/Mod/PartDesign/App/Feature.pyi b/src/Mod/PartDesign/App/Feature.pyi index 1bb573e5c8..22308d0ffe 100644 --- a/src/Mod/PartDesign/App/Feature.pyi +++ b/src/Mod/PartDesign/App/Feature.pyi @@ -6,6 +6,7 @@ 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 0e351a063d..cfb237b472 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderPartExt import ViewProviderPartExt + @export( Include="Mod/PartDesign/Gui/ViewProvider.h", Namespace="PartDesignGui", diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 34a931d244..5b05d62fe8 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import constmethod, export from Data import object + @export( Father="ComplexGeoDataPy", Twin="PointKernel", @@ -60,6 +61,7 @@ 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 7021edaae5..f4f7db2665 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from Base.Persistence import Persistence + @export( Include="Mod/Robot/App/Robot6Axis.h", Namespace="Robot", @@ -25,6 +26,7 @@ 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 83f91b16b2..05602a99e1 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -8,6 +8,7 @@ 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 6e78fe8ba7..b528494c65 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from Base.Persistence import Persistence + @export( Include="Mod/Robot/App/Trajectory.h", Namespace="Robot", @@ -39,6 +40,7 @@ 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 d793ea0f34..b655da7d48 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -7,6 +7,7 @@ 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 bda851deae..fb17f65cf0 100644 --- a/src/Mod/Sketcher/App/Constraint.pyi +++ b/src/Mod/Sketcher/App/Constraint.pyi @@ -6,6 +6,7 @@ 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 469439a680..07ecb36a67 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension + @export( PythonName="Sketcher.ExternalGeometryExtension", Include="Mod/Sketcher/App/ExternalGeometryExtension.h", @@ -31,5 +32,6 @@ 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 37580a7033..0e2104ea16 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi @@ -6,6 +6,7 @@ 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 561be3cb90..4249aa5848 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.pyi +++ b/src/Mod/Sketcher/App/GeometryFacade.pyi @@ -11,6 +11,7 @@ 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 036d1f9041..70a25fbfba 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -7,6 +7,7 @@ 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 2e8cfe069e..8b766d5796 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi @@ -5,6 +5,7 @@ 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 43a334bb82..f7e573d090 100644 --- a/src/Mod/Sketcher/App/SketchObject.pyi +++ b/src/Mod/Sketcher/App/SketchObject.pyi @@ -11,6 +11,7 @@ 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", @@ -83,14 +84,17 @@ 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. @@ -227,12 +231,15 @@ 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. @@ -261,9 +268,7 @@ 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 @@ -342,9 +347,13 @@ 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. @@ -583,9 +592,7 @@ 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. @@ -601,9 +608,7 @@ 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 0df672b9fd..6c360b3265 100644 --- a/src/Mod/Sketcher/App/SketchObjectSF.pyi +++ b/src/Mod/Sketcher/App/SketchObjectSF.pyi @@ -5,6 +5,7 @@ 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 d12ff8d5f3..f0c8740f0b 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi @@ -5,6 +5,7 @@ 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 1617880935..8689a97272 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -5,6 +5,7 @@ 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 3a09048616..c1bf6f3a16 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -5,6 +5,7 @@ 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 c3b6b2a319..7207e71bcc 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -5,14 +5,13 @@ 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 f2afe739d9..e3d1e0047e 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -8,6 +8,7 @@ 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 96d60ce2ec..d3e4e5e958 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -8,6 +8,7 @@ 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 a2622c6393..e394ae9ed8 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -7,6 +7,7 @@ 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 1a0cfd9d6e..6f8d48b3c2 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -7,6 +7,7 @@ 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", @@ -43,5 +44,6 @@ 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 d3d7beafae..515fe93084 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -7,6 +7,7 @@ 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", @@ -30,6 +31,7 @@ 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 49e6900de5..753a59cac9 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -10,6 +10,7 @@ from Base import Vector PyCXXVector: TypeAlias = Vector # Dirty trick to workaround current generator limitations + @export( Include="Mod/TechDraw/App/Cosmetic.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index 8cddfb5b63..c16660ea68 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension + @export( Include="Mod/TechDraw/App/CosmeticExtension.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index e11fb22bb3..35747eda04 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -7,6 +7,7 @@ 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", @@ -30,6 +31,7 @@ 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 960bcf5d0a..d73fb6534c 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart + @export( Include="Mod/TechDraw/App/DrawBrokenView.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index 1f2a02b0ab..d035fee397 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawGeomHatch.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index dd5e0fb42b..20bfbdb2e8 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -6,6 +6,7 @@ from typing import Any from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawHatch.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 8e6b3b7bd5..5ce984716c 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawLeaderLine.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index 8720f95744..40fcd79379 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawPage.h", Namespace="TechDraw", @@ -45,6 +46,7 @@ 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 efd87fdcf8..cda154e03c 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import export from DrawTemplate import DrawTemplate + @export( Include="Mod/TechDraw/App/DrawParametricTemplate.h", Namespace="TechDraw", @@ -23,5 +24,6 @@ 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 b72ac0877b..d2aa509ce5 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewCollection import DrawViewCollection + @export( Include="Mod/TechDraw/App/DrawProjGroup.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index 2c23c0642c..7d291d1d97 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewPart import DrawViewPart + @export( Include="Mod/TechDraw/App/DrawProjGroupItem.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index 9f7cfc802f..7480d90486 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawRichAnno.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index 676f483294..debcd7a511 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from DrawTemplate import DrawTemplate + @export( Include="Mod/TechDraw/App/DrawSVGTemplate.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index 70d1daf328..d3762913c5 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawTemplate.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index ed0527c8f5..01ca20aa2a 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -6,6 +6,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawTile.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index b9e5e25295..686dc2c0a2 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawTile import DrawTile + @export( Include="Mod/TechDraw/App/DrawTileWeld.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 2c97fa2f15..43ce7cf8b4 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -8,6 +8,7 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject + @export( Include="Mod/TechDraw/App/DrawView.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index 1b169779bd..d88b4b38f9 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.Drawview import DrawView + @export( Include="Mod/TechDraw/App/DrawViewAnnotation.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 2236ec5885..9818cdb638 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewClip.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 652613f729..35442c74ea 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewCollection.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index d7478bce61..c54f48e49d 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawViewDimension import DrawViewDimension + @export( Include="Mod/TechDraw/App/DrawViewDimExtent.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 210df2f31f..910e156a7d 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewDimension.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index 46f46b87a7..b80e4d9a75 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.rawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewPart.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index 8ce2369413..1bddc286d2 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -7,6 +7,7 @@ from typing import Any from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawViewSymbol.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 6390dffffe..3bb3fcddd9 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -5,6 +5,7 @@ from __future__ import annotations from Base.Metadata import export from TechDraw.DrawView import DrawView + @export( Include="Mod/TechDraw/App/DrawWeldSymbol.h", Namespace="TechDraw", diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index 7164ea7ced..5eb35e4c69 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -7,6 +7,7 @@ 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", @@ -30,5 +31,6 @@ class GeomFormat(PyObjectBase): def copy(self) -> Any: """Create a copy of this geomformat""" ... + Tag: Final[str] """Gives the tag of the GeomFormat as string.""" From d8b1a36e196842f3b430d8270ed555b1f87105b9 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Thu, 9 Oct 2025 19:33:59 -0500 Subject: [PATCH 15/20] [bindings] Automatic export of function signatures with annotations to runtime. (PyMethodDef.ml_doc) --- .../bindings/model/generateModel_Python.py | 39 +++++++++++++++++++ 1 file changed, 39 insertions(+) diff --git a/src/Tools/bindings/model/generateModel_Python.py b/src/Tools/bindings/model/generateModel_Python.py index 1c0ddab78a..08bd9b9fb3 100644 --- a/src/Tools/bindings/model/generateModel_Python.py +++ b/src/Tools/bindings/model/generateModel_Python.py @@ -19,6 +19,8 @@ from model.typedModel import ( SequenceProtocol, ) +SIGNATURE_SEP = re.compile(r"\s+--\s+", re.DOTALL) +SELF_CLS_ARG = re.compile(r"\(\s*(self|cls)(\s*,\s*)?") class ArgumentKind(Enum): PositionOnly = 0 @@ -43,6 +45,8 @@ class FunctionSignature: args: list[FuncArgument] has_keywords: bool docstring: str + annotated_text: str + text: str const_flag: bool = False static_flag: bool = False @@ -121,6 +125,19 @@ class FunctionSignature: ), ) + # Annotated signatures (Not supported by __text_signature__) + returns = ast.unparse(func.returns) if func.returns else "object" + parameters = ast.unparse(func.args) + self.annotated_text = SELF_CLS_ARG.sub("(", f"{func.name}({parameters}) -> {returns}", 1) + + # Not Annotated signatures (supported by __text_signature__) + all_args = [*args.posonlyargs, *args.args, args.vararg, *args.kwonlyargs, args.kwarg] + for item in all_args: + if item: + item.annotation = None + parameters = ast.unparse(args) + self.text = SELF_CLS_ARG.sub(r"($\1\2", f"{func.name}({parameters})", 1) + def get_annotation_str(self, node: ast.AST | None) -> str: if not node: return "object" @@ -195,6 +212,27 @@ class Function: def noargs_flag(self) -> bool: return any(sig.noargs_flag for sig in self.signatures) + def add_signature_docs(self, doc: Documentation) -> None: + if len (self.signatures) == 1: + docstring = [self.signatures[0].text] + signature = [self.signatures[0].annotated_text] + else: + docstring = [sig.text for sig in self.signatures if not sig.is_overload] + signature = [sig.annotated_text for sig in self.signatures if sig.is_overload] + + if not docstring: + return + + user_doc = doc.UserDocu or "" + marker = SIGNATURE_SEP.search(user_doc) + if marker: + user_doc = user_doc[marker.end():].strip() + + docstring.append("--\n") # mark __text_signature__ + docstring.extend(signature) # Include real annotated signature in user docstring + docstring.append(f"\n{user_doc}") # Rest of the docstring + doc.UserDocu = "\n".join(docstring) + def _extract_decorator_kwargs(decorator: ast.expr) -> dict: """ @@ -420,6 +458,7 @@ def _parse_methods(class_node: ast.ClassDef) -> List[Methode]: for func in functions.values(): doc_obj = _parse_docstring_for_documentation(func.docstring) + func.add_signature_docs(doc_obj) method_params = [] signature = func.signature From fc99a20a034dbdeb72d371053c4598dcdba6b518 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Fri, 10 Oct 2025 14:09:50 -0500 Subject: [PATCH 16/20] [bindings] remove redundant signatures. batch1 --- src/App/DocumentObject.pyi | 27 ++-- src/App/GeoFeature.pyi | 21 ++- src/App/GroupExtension.pyi | 2 - src/App/LinkBaseExtension.pyi | 45 +++---- src/App/MeasureManager.pyi | 4 - src/App/Metadata.pyi | 50 ------- src/App/PropertyContainer.pyi | 32 ----- src/App/StringHasher.pyi | 2 - src/Base/Axis.pyi | 8 -- src/Base/BoundBox.pyi | 38 ------ src/Base/CoordinateSystem.pyi | 10 -- src/Base/Matrix.pyi | 60 --------- src/Base/Persistence.pyi | 4 - src/Base/Placement.pyi | 26 ---- src/Base/Quantity.pyi | 2 - src/Base/Rotation.pyi | 26 ---- src/Base/Type.pyi | 22 --- src/Base/Vector.pyi | 40 ------ src/Gui/AxisOrigin.pyi | 4 - src/Gui/Command.pyi | 28 ---- src/Gui/Document.pyi | 40 ------ src/Gui/LinkView.pyi | 21 ++- src/Gui/Selection/SelectionObject.pyi | 3 +- src/Gui/ViewProvider.pyi | 52 -------- src/Gui/ViewProviderGeometryObject.pyi | 2 - src/Mod/Assembly/App/AssemblyObject.pyi | 126 ++++++++---------- src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 15 +-- src/Mod/CAM/App/Area.pyi | 17 +-- src/Mod/CAM/App/Command.pyi | 6 +- src/Mod/CAM/App/FeatureArea.pyi | 5 +- src/Mod/CAM/App/Path.pyi | 34 +++-- src/Mod/CAM/App/Voronoi.pyi | 9 +- src/Mod/CAM/PathSimulator/App/PathSim.pyi | 40 +++--- src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 41 +++--- 34 files changed, 194 insertions(+), 668 deletions(-) diff --git a/src/App/DocumentObject.pyi b/src/App/DocumentObject.pyi index 215d16e4d1..6d8710f44e 100644 --- a/src/App/DocumentObject.pyi +++ b/src/App/DocumentObject.pyi @@ -78,13 +78,13 @@ class DocumentObject(ExtensionContainer): 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. + Add a generic property. """ ... def removeProperty(self, string: str, /) -> None: """ - removeProperty(string) -- Remove a generic property. + Remove a generic property. Note, you can only remove user-defined properties but not built-in ones. """ @@ -135,7 +135,7 @@ class DocumentObject(ExtensionContainer): def recompute(self, recursive: bool = False, /) -> None: """ - recompute(recursive=False): Recomputes this object + Recomputes this object """ ... @@ -166,8 +166,6 @@ class DocumentObject(ExtensionContainer): depth: int = 0, ) -> Any: """ - getSubObject(subname, retType=0, matrix=None, transform=True, depth=0) - * subname(string|list|tuple): dot separated string or sequence of strings referencing subobject. @@ -196,15 +194,13 @@ class DocumentObject(ExtensionContainer): def getSubObjectList(self, subname: str, /) -> list: """ - getSubObjectList(subname) - Return a list of objects referenced by a given subname including this object """ ... def getSubObjects(self, reason: int = 0, /) -> list: """ - getSubObjects(reason=0): Return subname reference of all sub-objects + Return subname reference of all sub-objects """ ... @@ -217,7 +213,6 @@ class DocumentObject(ExtensionContainer): depth: int = 0, ) -> Any: """ - getLinkedObject(recursive=True, matrix=None, transform=True, depth=0) Returns the linked object if there is one, or else return itself * recursive: whether to recursively resolve the links @@ -234,14 +229,14 @@ class DocumentObject(ExtensionContainer): def setElementVisible(self, element: str, visible: bool, /) -> int: """ - setElementVisible(element,visible): Set the visibility of a child element + Set the visibility of a child element Return -1 if element visibility is not supported, 0 if element not found, 1 if success """ ... def isElementVisible(self, element: str, /) -> int: """ - isElementVisible(element): Check if a child element is visible + Check if a child element is visible Return -1 if element visibility is not supported or element not found, 0 if invisible, or else 1 """ ... @@ -288,7 +283,7 @@ class DocumentObject(ExtensionContainer): @constmethod def resolve(self, subname: str, /) -> tuple: """ - resolve(subname) -- resolve the sub object + resolve the sub object Returns a tuple (subobj,parent,elementName,subElement), where 'subobj' is the last object referenced in 'subname', and 'parent' is the direct parent of @@ -301,7 +296,7 @@ class DocumentObject(ExtensionContainer): @constmethod def resolveSubElement(self, subname: str, append: bool, type: int, /) -> tuple: """ - resolveSubElement(subname,append,type) -- resolve both new and old style sub element + resolve both new and old style sub element subname: subname reference containing object hierarchy append: Whether to append object hierarchy prefix inside subname to returned element name @@ -313,22 +308,20 @@ class DocumentObject(ExtensionContainer): def adjustRelativeLinks(self, parent: DocumentObject, recursive: bool = True, /) -> bool: """ - adjustRelativeLinks(parent,recursive=True) -- auto correct potential cyclic dependencies + auto correct potential cyclic dependencies """ ... @constmethod def getElementMapVersion(self, property_name: str, /) -> str: """ - getElementMapVersion(property_name): return element map version of a given geometry property + return element map version of a given geometry property """ ... @constmethod def isAttachedToDocument(self) -> bool: """ - isAttachedToDocument() -> bool - Return true if the object is part of a document, false otherwise. """ ... diff --git a/src/App/GeoFeature.pyi b/src/App/GeoFeature.pyi index ec750f4dd3..8a3f03a1c8 100644 --- a/src/App/GeoFeature.pyi +++ b/src/App/GeoFeature.pyi @@ -23,8 +23,6 @@ class GeoFeature(DocumentObject): def getPaths(self) -> Any: """ - getPaths() - Returns all possible paths to the root of the document. Note: Not implemented. """ @@ -32,7 +30,6 @@ class GeoFeature(DocumentObject): def getGlobalPlacement(self) -> Placement: """ - getGlobalPlacement() -> Base.Placement Deprecated: This function does not handle Links correctly. Use getGlobalPlacementOf instead. Returns the placement of the object in the global coordinate space, respecting all stacked @@ -45,14 +42,16 @@ class GeoFeature(DocumentObject): @staticmethod def getGlobalPlacementOf(targetObj: Any, rootObj: Any, subname: str, /) -> Placement: """ - getGlobalPlacementOf(targetObj, rootObj, subname) -> Base.Placement - Selection example: obj = "part1" sub = "linkToPart2.LinkToBody.Pad.face1" + Examples: + obj = "part1" + sub = "linkToPart2.LinkToBody.Pad.face1" - Global placement of Pad in this context : - getGlobalPlacementOf(pad, part1, "linkToPart2.LinkToBody.Pad.face1") + Global placement of Pad in this context: + getGlobalPlacementOf(pad, part1, "linkToPart2.LinkToBody.Pad.face1") - Global placement of linkToPart2 in this context : - getGlobalPlacementOf(linkToPart2, part1, "linkToPart2.LinkToBody.Pad.face1") + + Global placement of linkToPart2 in this context: + getGlobalPlacementOf(linkToPart2, part1, "linkToPart2.LinkToBody.Pad.face1") Returns the placement of the object in the global coordinate space, respecting all stacked relationships. @@ -61,8 +60,6 @@ class GeoFeature(DocumentObject): def getPropertyNameOfGeometry(self) -> Optional[str]: """ - getPropertyNameOfGeometry() -> str or None - Returns the property name of the actual geometry. For example for a Part feature it returns the value 'Shape', for a mesh feature the value 'Mesh' and so on. @@ -72,8 +69,6 @@ class GeoFeature(DocumentObject): def getPropertyOfGeometry(self) -> Optional[Any]: """ - getPropertyOfGeometry() -> object or None - Returns the property of the actual geometry. For example for a Part feature it returns its Shape property, for a Mesh feature its Mesh property and so on. diff --git a/src/App/GroupExtension.pyi b/src/App/GroupExtension.pyi index 6dd692dd74..3b075862ed 100644 --- a/src/App/GroupExtension.pyi +++ b/src/App/GroupExtension.pyi @@ -72,8 +72,6 @@ class GroupExtension(DocumentObjectExtension): def hasObject(self, obj: Any, recursive: bool = False, /) -> bool: """ - hasObject(obj, recursive=false) - Checks if the group has a given object @param obj the object to check for. @param recursive if true check also if the obj is child of some sub group (default is false). diff --git a/src/App/LinkBaseExtension.pyi b/src/App/LinkBaseExtension.pyi index d5b38b07f4..ded2268b6e 100644 --- a/src/App/LinkBaseExtension.pyi +++ b/src/App/LinkBaseExtension.pyi @@ -18,15 +18,18 @@ class LinkBaseExtension(DocumentObjectExtension): LinkedChildren: Final[List[Any]] = [] """Return a flattened (in case grouped by plain group) list of linked children""" - def configLinkProperty(self, **kwargs) -> Any: + def configLinkProperty(self, *args, **kwargs) -> Any: """ - configLinkProperty(key=val,...): property configuration - configLinkProperty(key,...): property configuration with default name + Examples: + Called with default names: + configLinkProperty(prop1, prop2, ..., propN) + Called with custom names: + configLinkProperty(prop1=val1, prop2=val2, ..., propN=valN) - This methode is here to implement what I called Property Design + This method is here to implement what I called Property Design Pattern. The extension operates on a predefined set of properties, but it relies on the extended object to supply the actual property by - calling this methode. You can choose a sub set of functionality of + calling this method. You can choose a sub set of functionality of this extension by supplying only some of the supported properties. The 'key' are names used to refer to properties supported by this @@ -45,35 +48,34 @@ class LinkBaseExtension(DocumentObjectExtension): def getLinkExtProperty(self, name: str, /) -> Any: """ - getLinkExtProperty(name): return the property value by its predefined 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 + lookup the property name by its predefined name """ ... @overload - def getLinkPropertyInfo(self, /) -> tuple: + def getLinkPropertyInfo(self, /) -> tuple[tuple[str, str, str]]: ... @overload - def getLinkPropertyInfo(self, index: int, /) -> tuple: + def getLinkPropertyInfo(self, index: int, /) -> tuple[str, str, str]: ... @overload - def getLinkPropertyInfo(self, name: str, /) -> tuple: + def getLinkPropertyInfo(self, name: str, /) -> tuple[str, str]: ... def getLinkPropertyInfo(self, arg: Any = None, /) -> tuple: """ - getLinkPropertyInfo(): return a tuple of (name,type,doc) for all supported properties. - - getLinkPropertyInfo(index): return (name,type,doc) of a specific property - - getLinkPropertyInfo(name): return (type,doc) of a specific property + Overloads: + (): return (name,type,doc) for all supported properties. + (index): return (name,type,doc) of a specific property + (name): return (type,doc) of a specific property """ ... @@ -85,12 +87,7 @@ class LinkBaseExtension(DocumentObjectExtension): /, ) -> None: """ - setLink(obj,subName=None,subElements=None): Set link object. - - setLink([obj,...]), - setLink([(obj,subName,subElements),...]), - setLink({index:obj,...}), - setLink({index:(obj,subName,subElements),...}): set link element of a link group. + Called with only obj, set link object, otherwise set link element of a link group. obj (DocumentObject): the object to link to. If this is None, then the link is cleared @@ -102,7 +99,7 @@ class LinkBaseExtension(DocumentObjectExtension): def cacheChildLabel(self, enable: bool = True, /) -> None: """ - cacheChildLabel(enable=True): enable/disable child label cache + enable/disable child label cache The cache is not updated on child label change for performance reason. You must call this function on any child label change @@ -111,16 +108,12 @@ class LinkBaseExtension(DocumentObjectExtension): def flattenSubname(self, subname: str, /) -> str: """ - flattenSubname(subname) -> string - Return a flattened subname in case it references an object inside a linked plain group """ ... def expandSubname(self, subname: str, /) -> str: """ - expandSubname(subname) -> string - Return an expanded subname in case it references an object inside a linked plain group """ ... diff --git a/src/App/MeasureManager.pyi b/src/App/MeasureManager.pyi index 3c9c115e14..a0267f0bfb 100644 --- a/src/App/MeasureManager.pyi +++ b/src/App/MeasureManager.pyi @@ -27,8 +27,6 @@ class MeasureManager(PyObjectBase): @staticmethod def addMeasureType(id: str, label: str, measureType: MeasureType, /) -> None: """ - addMeasureType(id, label, measureType) -> None - Add a new measure type. id : str @@ -44,8 +42,6 @@ class MeasureManager(PyObjectBase): @no_args def getMeasureTypes() -> List[Tuple[str, str, MeasureType]]: """ - getMeasureTypes() -> List[(id, label, pythonMeasureType)] - Returns a list of all registered measure types. """ ... diff --git a/src/App/Metadata.pyi b/src/App/Metadata.pyi index 37b5bb4392..14ab91b62f 100644 --- a/src/App/Metadata.pyi +++ b/src/App/Metadata.pyi @@ -191,8 +191,6 @@ class Metadata(PyObjectBase): def getLastSupportedFreeCADVersion(self) -> Optional[str]: """ - getLastSupportedFreeCADVersion() -> str or None - Search through all content package items, and determine if a maximum supported version of FreeCAD is set. Returns None if no maximum version is set, or if *any* content item fails to @@ -203,8 +201,6 @@ class Metadata(PyObjectBase): def getFirstSupportedFreeCADVersion(self) -> Optional[str]: """ - getFirstSupportedFreeCADVersion() -> str or None - Search through all content package items, and determine if a minimum supported version of FreeCAD is set. Returns 0.0 if no minimum version is set, or if *any* content item fails to @@ -216,8 +212,6 @@ class Metadata(PyObjectBase): def supportsCurrentFreeCAD(self) -> bool: """ - supportsCurrentFreeCAD() -> bool - Returns False if this metadata object directly indicates that it does not support the current version of FreeCAD, or True if it makes no indication, or specifically indicates that it does support the current version. Does not @@ -227,8 +221,6 @@ class Metadata(PyObjectBase): def getGenericMetadata(self, name: str, /) -> List[Any]: """ - getGenericMetadata(name) -> list - Get the list of GenericMetadata objects with key 'name'. Generic metadata objects are Python objects with a string 'contents' and a dictionary of strings, 'attributes'. They represent unrecognized simple XML tags @@ -238,56 +230,42 @@ class Metadata(PyObjectBase): def addContentItem(self, content_type: str, metadata: "Metadata", /) -> None: """ - addContentItem(content_type,metadata) - Add a new content item of type 'content_type' with metadata 'metadata'. """ ... def removeContentItem(self, content_type: str, name: str, /) -> None: """ - removeContentItem(content_type,name) - Remove the content item of type 'content_type' with name 'name'. """ ... def addMaintainer(self, name: str, email: str, /) -> None: """ - addMaintainer(name, email) - Add a new Maintainer. """ ... def removeMaintainer(self, name: str, email: str, /) -> None: """ - removeMaintainer(name, email) - Remove the Maintainer. """ ... def addLicense(self, short_code: str, path: str, /) -> None: """ - addLicense(short_code,path) - Add a new License. """ ... def removeLicense(self, short_code: str, /) -> None: """ - removeLicense(short_code) - Remove the License. """ ... def addUrl(self, url_type: str, url: str, branch: str, /) -> None: """ - addUrl(url_type,url,branch) - Add a new Url or type 'url_type' (which should be one of 'repository', 'readme', 'bugtracker', 'documentation', or 'webpage') If type is 'repository' you @@ -298,32 +276,24 @@ class Metadata(PyObjectBase): def removeUrl(self, url_type: str, url: str, /) -> None: """ - removeUrl(url_type,url) - Remove the Url. """ ... def addAuthor(self, name: str, email: str, /) -> None: """ - addAuthor(name, email) - Add a new Author with name 'name', and optionally email 'email'. """ ... def removeAuthor(self, name: str, email: str, /) -> None: """ - removeAuthor(name, email) - Remove the Author. """ ... def addDepend(self, name: str, kind: str, optional: bool, /) -> None: """ - addDepend(name, kind, optional) - Add a new Dependency on package 'name' of kind 'kind' (optional, one of 'auto' (the default), 'internal', 'addon', or 'python'). @@ -332,8 +302,6 @@ class Metadata(PyObjectBase): def removeDepend(self, name: str, kind: str, /) -> None: """ - removeDepend(name, kind) - Remove the Dependency on package 'name' of kind 'kind' (optional - if unspecified any matching name is removed). @@ -342,72 +310,54 @@ class Metadata(PyObjectBase): def addConflict(self, name: str, kind: str, /) -> None: """ - addConflict(name, kind) - Add a new Conflict. See documentation for addDepend(). """ ... def removeConflict(self, name: str, kind: str, /) -> None: """ - removeConflict(name, kind) - Remove the Conflict. See documentation for removeDepend(). """ ... def addReplace(self, name: str, /) -> None: """ - addReplace(name) - Add a new Replace. """ ... def removeReplace(self, name: str, /) -> None: """ - removeReplace(name) - Remove the Replace. """ ... def addTag(self, tag: str, /) -> None: """ - addTag(tag) - Add a new Tag. """ ... def removeTag(self, tag: str, /) -> None: """ - removeTag(tag) - Remove the Tag. """ ... def addFile(self, filename: str, /) -> None: """ - addFile(filename) - Add a new File. """ ... def removeFile(self, filename: str, /) -> None: """ - removeFile(filename) - Remove the File. """ ... def write(self, filename: str, /) -> None: """ - write(filename) - Write the metadata to the given file as XML data. """ ... diff --git a/src/App/PropertyContainer.pyi b/src/App/PropertyContainer.pyi index a1646d1611..a3e4ad8f5f 100644 --- a/src/App/PropertyContainer.pyi +++ b/src/App/PropertyContainer.pyi @@ -18,8 +18,6 @@ class PropertyContainer(Persistence): def getPropertyByName(self, name: str, checkOwner: int = 0, /) -> Any: """ - getPropertyByName(name, checkOwner=0) -> object or Tuple - Returns the value of a named property. Note that the returned property may not always belong to this container (e.g. from a linked object). @@ -34,8 +32,6 @@ class PropertyContainer(Persistence): def getPropertyTouchList(self, name: str, /) -> tuple: """ - getPropertyTouchList(name) -> tuple - Returns a list of index of touched values for list type properties. name : str @@ -45,8 +41,6 @@ class PropertyContainer(Persistence): def getTypeOfProperty(self, name: str, /) -> list: """ - getTypeOfProperty(name) -> list - Returns the type of a named property. This can be a list conformed by elements in (Hidden, NoRecompute, NoPersist, Output, ReadOnly, Transient). @@ -57,8 +51,6 @@ class PropertyContainer(Persistence): def getTypeIdOfProperty(self, name: str, /) -> str: """ - getTypeIdOfProperty(name) -> str - Returns the C++ class name of a named property. name : str @@ -68,8 +60,6 @@ class PropertyContainer(Persistence): def setEditorMode(self, name: str, type: Union[int, List[str]], /) -> None: """ - setEditorMode(name, type) -> None - Set the behaviour of the property in the property editor. name : str @@ -83,8 +73,6 @@ class PropertyContainer(Persistence): def getEditorMode(self, name: str, /) -> list: """ - getEditorMode(name) -> list - Get the behaviour of the property in the property editor. It returns a list of strings with the current mode. If the list is empty there are no special restrictions. @@ -99,8 +87,6 @@ class PropertyContainer(Persistence): def getGroupOfProperty(self, name: str, /) -> str: """ - getGroupOfProperty(name) -> str - Returns the name of the group which the property belongs to in this class. The properties are sorted in different named groups for convenience. @@ -111,8 +97,6 @@ class PropertyContainer(Persistence): def setGroupOfProperty(self, name: str, group: str, /) -> None: """ - setGroupOfProperty(name, group) -> None - Set the name of the group of a dynamic property. name : str @@ -124,8 +108,6 @@ class PropertyContainer(Persistence): def setPropertyStatus(self, name: str, val: Union[int, str, List[Union[str, int]]], /) -> None: """ - setPropertyStatus(name, val) -> None - Set property status. name : str @@ -138,8 +120,6 @@ class PropertyContainer(Persistence): def getPropertyStatus(self, name: str = "", /) -> list: """ - getPropertyStatus(name='') -> list - Get property status. name : str @@ -149,8 +129,6 @@ class PropertyContainer(Persistence): def getDocumentationOfProperty(self, name: str, /) -> str: """ - getDocumentationOfProperty(name) -> str - Returns the documentation string of the property of this class. name : str @@ -160,8 +138,6 @@ class PropertyContainer(Persistence): def setDocumentationOfProperty(self, name: str, docstring: str, /) -> None: """ - setDocumentationOfProperty(name, docstring) -> None - Set the documentation string of a dynamic property of this class. name : str @@ -173,8 +149,6 @@ class PropertyContainer(Persistence): def getEnumerationsOfProperty(self, name: str, /) -> Optional[list]: """ - getEnumerationsOfProperty(name) -> list or None - Return all enumeration strings of the property of this class or None if not a PropertyEnumeration. @@ -186,8 +160,6 @@ class PropertyContainer(Persistence): @constmethod def dumpPropertyContent(self, Property: str, *, Compression: int = 3) -> bytearray: """ - dumpPropertyContent(Property, Compression=3) -> bytearray - Dumps the content of the property, both the XML representation and the additional data files required, into a byte representation. @@ -200,8 +172,6 @@ class PropertyContainer(Persistence): def restorePropertyContent(self, name: str, obj: object, /) -> None: """ - restorePropertyContent(name, obj) -> None - Restore the content of the object from a byte representation as stored by `dumpPropertyContent`. It could be restored from any Python object implementing the buffer protocol. @@ -215,8 +185,6 @@ class PropertyContainer(Persistence): @constmethod def renameProperty(self, oldName: str, newName: str, /) -> None: """ - renameProperty(oldName, newName) -> None - Rename a property. oldName : str diff --git a/src/App/StringHasher.pyi b/src/App/StringHasher.pyi index 53024412d8..fb8e38a1ad 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -29,8 +29,6 @@ class StringHasher(BaseClass): def getID(self, arg: Any, base64: bool = False, /) -> Any: """ - getID(txt|id, base64=False) -> StringID - If the input is text, return a StringID object that is unique within this hasher. This StringID object is reference counted. The hasher may only save hash ID's that are used. diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index 373291b42e..183a671d45 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -51,16 +51,12 @@ class Axis(PyObjectBase): def copy(self) -> Axis: """ - copy() -> Base.Axis - Returns a copy of this Axis. """ ... def move(self, vector: Vector, /) -> None: """ - move(vector) -> None - Move the axis base along the given vector. vector : Base.Vector @@ -70,8 +66,6 @@ class Axis(PyObjectBase): def multiply(self, placement: Placement, /) -> Axis: """ - multiply(placement) -> Base.Axis - Multiply this axis by a placement. placement : Base.Placement @@ -81,8 +75,6 @@ class Axis(PyObjectBase): def reversed(self) -> Axis: """ - reversed() -> Base.Axis - Compute the reversed axis. This returns a new Base.Axis with the original direction reversed. """ diff --git a/src/Base/BoundBox.pyi b/src/Base/BoundBox.pyi index d550308bcb..8a50042bf9 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -121,8 +121,6 @@ class BoundBox(PyObjectBase): def setVoid(self) -> None: """ - setVoid() -> None - Invalidate the bounding box. """ ... @@ -130,8 +128,6 @@ class BoundBox(PyObjectBase): @constmethod def isValid(self) -> bool: """ - isValid() -> bool - Checks if the bounding box is valid. """ ... @@ -150,9 +146,6 @@ class BoundBox(PyObjectBase): def add(self, *args: Any, **kwargs: Any) -> None: """ - add(minMax) -> None - add(x, y, z) -> None - Increase the maximum values or decrease the minimum values of this BoundBox by replacing the current values with the given values, so the bounding box can grow but not shrink. @@ -171,8 +164,6 @@ class BoundBox(PyObjectBase): @constmethod def getPoint(self, index: int, /) -> Vector: """ - getPoint(index) -> Base.Vector - Get the point of the given index. The index must be in the range of [0, 7]. @@ -183,8 +174,6 @@ class BoundBox(PyObjectBase): @constmethod def getEdge(self, index: int, /) -> Tuple[Vector, ...]: """ - getEdge(index) -> tuple of Base.Vector - Get the edge points of the given index. The index must be in the range of [0, 11]. @@ -203,9 +192,6 @@ class BoundBox(PyObjectBase): @constmethod def closestPoint(self, *args: Any, **kwargs: Any) -> Vector: """ - closestPoint(point) -> Base.Vector - closestPoint(x, y, z) -> Base.Vector - Get the closest point of the bounding box to the given point. point : Base.Vector, tuple @@ -234,9 +220,6 @@ class BoundBox(PyObjectBase): def intersect(self, *args: Any) -> bool: """ - intersect(boundBox2) -> bool - intersect(base, dir) -> bool - Checks if the given object intersects with this bounding box. That can be another bounding box or a line specified by base and direction. @@ -248,8 +231,6 @@ class BoundBox(PyObjectBase): def intersected(self, boundBox2: "BoundBox", /) -> "BoundBox": """ - intersected(boundBox2) -> Base.BoundBox - Returns the intersection of this and the given bounding box. boundBox2 : Base.BoundBox @@ -258,8 +239,6 @@ class BoundBox(PyObjectBase): def united(self, boundBox2: "BoundBox", /) -> "BoundBox": """ - united(boundBox2) -> Base.BoundBox - Returns the union of this and the given bounding box. boundBox2 : Base.BoundBox @@ -268,8 +247,6 @@ class BoundBox(PyObjectBase): def enlarge(self, variation: float, /) -> None: """ - enlarge(variation) -> None - Decrease the minimum values and increase the maximum values by the given value. A negative value shrinks the bounding box. @@ -279,8 +256,6 @@ class BoundBox(PyObjectBase): def getIntersectionPoint(self, base: Vector, dir: Vector, epsilon: float = 0.0001, /) -> Vector: """ - getIntersectionPoint(base, dir, epsilon=0.0001) -> Base.Vector - Calculate the intersection point of a line with the bounding box. The base point must lie inside the bounding box, if not an exception is thrown. @@ -307,9 +282,6 @@ class BoundBox(PyObjectBase): def move(self, *args: Any, **kwargs: Any) -> None: """ - move(displacement) -> None - move(x, y, z) -> None - Move the bounding box by the given values. displacement : Base.Vector, tuple @@ -337,9 +309,6 @@ class BoundBox(PyObjectBase): def scale(self, *args: Any, **kwargs: Any) -> None: """ - scale(factor) -> None - scale(x, y, z) -> None - Scale the bounding box by the given values. factor : Base.Vector, tuple @@ -355,8 +324,6 @@ class BoundBox(PyObjectBase): def transformed(self, matrix: Matrix, /) -> "BoundBox": """ - transformed(matrix) -> Base.BoundBox - Returns a new BoundBox containing the transformed rectangular cuboid represented by this BoundBox. @@ -367,8 +334,6 @@ class BoundBox(PyObjectBase): def isCutPlane(self, base: Vector, normal: Vector, /) -> bool: """ - isCutPlane(base, normal) -> bool - Check if the plane specified by base and normal intersects (cuts) this bounding box. @@ -391,9 +356,6 @@ class BoundBox(PyObjectBase): def isInside(self, *args: Any) -> bool: """ - isInside(object) -> bool - isInside(x, y, z) -> bool - Check if a point or a bounding box is inside this bounding box. object : Base.Vector, Base.BoundBox diff --git a/src/Base/CoordinateSystem.pyi b/src/Base/CoordinateSystem.pyi index 20b9236959..a7a8a1eeac 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -45,8 +45,6 @@ class CoordinateSystem(PyObjectBase): def setAxes(self, axis: Union[AxisPy, Vector], xDir: Vector, /) -> None: """ - setAxes(axis, xDir) -> None - Set axis or Z-direction, and X-direction. The X-direction is determined from the orthonormal compononent of `xDir` with respect to `axis` direction. @@ -59,8 +57,6 @@ class CoordinateSystem(PyObjectBase): @constmethod def displacement(self, coordSystem2: "CoordinateSystem", /) -> Placement: """ - displacement(coordSystem2) -> Base.Placement - Computes the placement from this to the passed coordinate system `coordSystem2`. coordSystem2 : Base.CoordinateSystem @@ -69,8 +65,6 @@ class CoordinateSystem(PyObjectBase): def transformTo(self, vector: Vector, /) -> Vector: """ - transformTo(vector) -> Base.Vector - Computes the coordinates of the point in coordinates of this coordinate system. vector : Base.Vector @@ -79,8 +73,6 @@ class CoordinateSystem(PyObjectBase): def transform(self, trans: Union[Rotation, Placement], /) -> None: """ - transform(trans) -> None - Applies a transformation on this coordinate system. trans : Base.Rotation, Base.Placement @@ -89,8 +81,6 @@ class CoordinateSystem(PyObjectBase): def setPlacement(self, placement: Placement, /) -> None: """ - setPlacement(placement) -> None - Set placement to the coordinate system. placement : Base.Placement diff --git a/src/Base/Matrix.pyi b/src/Base/Matrix.pyi index efa51c5179..6e9fce63ff 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -118,9 +118,6 @@ class Matrix(PyObjectBase): def move(self, *args) -> None: """ - move(vector) -> None - move(x, y, z) -> None - Move the matrix along a vector, equivalent to left multiply the matrix by a pure translation transformation. @@ -148,10 +145,6 @@ class Matrix(PyObjectBase): def scale(self, *args) -> None: """ - scale(vector) -> None - scale(x, y, z) -> None - scale(factor) -> None - Scale the first three rows of the matrix. vector : Base.Vector @@ -169,8 +162,6 @@ class Matrix(PyObjectBase): @constmethod def hasScale(self, tol: float = 0, /) -> ScaleType: """ - hasScale(tol=0) -> ScaleType - Return an enum value of ScaleType. Possible values are: Uniform, NonUniformLeft, NonUniformRight, NoScaling or Other if it's not a scale matrix. @@ -182,8 +173,6 @@ class Matrix(PyObjectBase): @constmethod def decompose(self) -> Tuple["Matrix", "Matrix", "Matrix", "Matrix"]: """ - decompose() -> Base.Matrix, Base.Matrix, Base.Matrix, Base.Matrix - Return a tuple of matrices representing shear, scale, rotation and move. So that matrix = move * rotation * scale * shear. """ @@ -192,8 +181,6 @@ class Matrix(PyObjectBase): @no_args def nullify(self) -> None: """ - nullify() -> None - Make this the null matrix. """ ... @@ -202,8 +189,6 @@ class Matrix(PyObjectBase): @constmethod def isNull(self) -> bool: """ - isNull() -> bool - Check if this is the null matrix. """ ... @@ -211,8 +196,6 @@ class Matrix(PyObjectBase): @no_args def unity(self) -> None: """ - unity() -> None - Make this matrix to unity (4D identity matrix). """ ... @@ -220,16 +203,12 @@ class Matrix(PyObjectBase): @constmethod def isUnity(self, tol: float = 0.0, /) -> bool: """ - isUnity([tol=0.0]) -> bool - Check if this is the unit matrix (4D identity matrix). """ ... def transform(self, vector: Vector, matrix2: "Matrix", /) -> None: """ - transform(vector, matrix2) -> None - Transform the matrix around a given point. Equivalent to left multiply the matrix by T*M*T_inv, where M is `matrix2`, T the translation generated by `vector` and T_inv the inverse translation. @@ -244,8 +223,6 @@ class Matrix(PyObjectBase): @constmethod def col(self, index: int, /) -> Vector: """ - col(index) -> Base.Vector - Return the vector of a column, that is, the vector generated by the three first elements of the specified column. @@ -256,8 +233,6 @@ class Matrix(PyObjectBase): def setCol(self, index: int, vector: Vector, /) -> None: """ - setCol(index, vector) -> None - Set the vector of a column, that is, the three first elements of the specified column by index. @@ -270,8 +245,6 @@ class Matrix(PyObjectBase): @constmethod def row(self, index: int, /) -> Vector: """ - row(index) -> Base.Vector - Return the vector of a row, that is, the vector generated by the three first elements of the specified row. @@ -282,8 +255,6 @@ class Matrix(PyObjectBase): def setRow(self, index: int, vector: Vector, /) -> None: """ - setRow(index, vector) -> None - Set the vector of a row, that is, the three first elements of the specified row by index. @@ -297,16 +268,12 @@ class Matrix(PyObjectBase): @constmethod def diagonal(self) -> Vector: """ - diagonal() -> Base.Vector - Return the diagonal of the 3x3 leading principal submatrix as vector. """ ... def setDiagonal(self, vector: Vector, /) -> None: """ - setDiagonal(vector) -> None - Set the diagonal of the 3x3 leading principal submatrix. vector : Base.Vector @@ -315,8 +282,6 @@ class Matrix(PyObjectBase): def rotateX(self, angle: float, /) -> None: """ - rotateX(angle) -> None - Rotate around X axis. angle : float @@ -326,8 +291,6 @@ class Matrix(PyObjectBase): def rotateY(self, angle: float, /) -> None: """ - rotateY(angle) -> None - Rotate around Y axis. angle : float @@ -337,8 +300,6 @@ class Matrix(PyObjectBase): def rotateZ(self, angle: float, /) -> None: """ - rotateZ(angle) -> None - Rotate around Z axis. angle : float @@ -357,9 +318,6 @@ class Matrix(PyObjectBase): @constmethod def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]: """ - multiply(matrix) -> Base.Matrix - multiply(vector) -> Base.Vector - Right multiply the matrix by the given object. If the argument is a vector, this is augmented to the 4D vector (`vector`, 1). @@ -371,8 +329,6 @@ class Matrix(PyObjectBase): @constmethod def multVec(self, vector: Vector, /) -> Vector: """ - multVec(vector) -> Base.Vector - Compute the transformed vector using the matrix. vector : Base.Vector @@ -382,8 +338,6 @@ class Matrix(PyObjectBase): @no_args def invert(self) -> None: """ - invert() -> None - Compute the inverse matrix in-place, if possible. """ ... @@ -392,8 +346,6 @@ class Matrix(PyObjectBase): @constmethod def inverse(self) -> "Matrix": """ - inverse() -> Base.Matrix - Compute the inverse matrix, if possible. """ ... @@ -401,8 +353,6 @@ class Matrix(PyObjectBase): @no_args def transpose(self) -> None: """ - transpose() -> None - Transpose the matrix in-place. """ ... @@ -411,8 +361,6 @@ class Matrix(PyObjectBase): @constmethod def transposed(self) -> "Matrix": """ - transposed() -> Base.Matrix - Returns a transposed copy of this matrix. """ ... @@ -421,8 +369,6 @@ class Matrix(PyObjectBase): @constmethod def determinant(self) -> float: """ - determinant() -> float - Compute the determinant of the matrix. """ ... @@ -430,8 +376,6 @@ class Matrix(PyObjectBase): @constmethod def isOrthogonal(self, tol: float = 1e-6, /) -> float: """ - isOrthogonal(tol=1e-6) -> float - Checks if the matrix is orthogonal, i.e. M * M^T = k*I and returns the multiple of the identity matrix. If it's not orthogonal 0 is returned. @@ -443,8 +387,6 @@ class Matrix(PyObjectBase): @constmethod def submatrix(self, dim: int, /) -> "Matrix": """ - submatrix(dim) -> Base.Matrix - Get the leading principal submatrix of the given dimension. The (4 - `dim`) remaining dimensions are completed with the corresponding identity matrix. @@ -458,8 +400,6 @@ class Matrix(PyObjectBase): @constmethod def analyze(self) -> str: """ - analyze() -> str - Analyzes the type of transformation. """ ... diff --git a/src/Base/Persistence.pyi b/src/Base/Persistence.pyi index 9f024acca7..83ef20f3a6 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -26,8 +26,6 @@ class Persistence(BaseClass): @constmethod def dumpContent(self, Compression: int = 3) -> bytearray: """ - dumpContent(Compression=3) -> bytearray - Dumps the content of the object, both the XML representation and the additional data files required, into a byte representation. @@ -39,8 +37,6 @@ class Persistence(BaseClass): def restoreContent(self, obj: object, /) -> None: # TODO: Starting with Python 3.12, collections.abc.Buffer can be used for type hinting """ - restoreContent(obj) -> None - Restore the content of the object from a byte representation as stored by `dumpContent`. It could be restored from any Python object implementing the buffer protocol. diff --git a/src/Base/Placement.pyi b/src/Base/Placement.pyi index 1bc3be8f7b..1344ee1439 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -89,16 +89,12 @@ class Placement(PyObjectBase): @constmethod def copy(self) -> "Placement": """ - copy() -> Base.Placement - Returns a copy of this placement. """ ... def move(self, vector: Vector, /) -> None: """ - move(vector) -> None - Move the placement along a vector. vector : Base.Vector @@ -108,8 +104,6 @@ class Placement(PyObjectBase): def translate(self, vector: Vector, /) -> None: """ - translate(vector) -> None - Alias to move(), to be compatible with TopoShape.translate(). vector : Base.Vector @@ -126,8 +120,6 @@ class Placement(PyObjectBase): @overload def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None: """ - rotate(center, axis, angle, comp) -> None - Rotate the current placement around center and axis with the given angle. This method is compatible with TopoShape.rotate() if the (optional) keyword argument comp is True (default=False). @@ -149,8 +141,6 @@ class Placement(PyObjectBase): @constmethod def multiply(self, placement: "Placement", /) -> "Placement": """ - multiply(placement) -> Base.Placement - Right multiply this placement with another placement. Also available as `*` operator. @@ -162,8 +152,6 @@ class Placement(PyObjectBase): @constmethod def multVec(self, vector: Vector, /) -> Vector: """ - multVec(vector) -> Base.Vector - Compute the transformed vector using the placement. vector : Base.Vector @@ -174,8 +162,6 @@ class Placement(PyObjectBase): @constmethod def toMatrix(self) -> MatrixPy: """ - toMatrix() -> Base.Matrix - Compute the matrix representation of the placement. """ ... @@ -183,8 +169,6 @@ class Placement(PyObjectBase): @constmethod def inverse(self) -> "Placement": """ - inverse() -> Base.Placement - Compute the inverse placement. """ ... @@ -192,8 +176,6 @@ class Placement(PyObjectBase): @constmethod def pow(self, t: float, shorten: bool = True, /) -> "Placement": """ - pow(t, shorten=True) -> Base.Placement - Raise this placement to real power using ScLERP interpolation. Also available as `**` operator. @@ -208,8 +190,6 @@ class Placement(PyObjectBase): @constmethod def sclerp(self, placement2: "Placement", t: float, shorten: bool = True, /) -> "Placement": """ - sclerp(placement2, t, shorten=True) -> Base.Placement - Screw Linear Interpolation (ScLERP) between this placement and `placement2`. Interpolation is a continuous motion along a helical path parametrized by `t` made of equal transforms if discretized. @@ -229,8 +209,6 @@ class Placement(PyObjectBase): @constmethod def slerp(self, placement2: "Placement", t: float, /) -> "Placement": """ - slerp(placement2, t) -> Base.Placement - Spherical Linear Interpolation (SLERP) between this placement and `placement2`. This function performs independent interpolation of rotation and movement. Result of such interpolation might be not what application expects, thus this tool @@ -246,8 +224,6 @@ class Placement(PyObjectBase): @constmethod def isIdentity(self, tol: float = 0.0, /) -> bool: """ - isIdentity([tol=0.0]) -> bool - Returns True if the placement has no displacement and no rotation. Matrix representation is the 4D identity matrix. tol : float @@ -259,8 +235,6 @@ class Placement(PyObjectBase): @constmethod def isSame(self, other: "Placement", tol: float = 0.0, /) -> bool: """ - isSame(Base.Placement, [tol=0.0]) -> bool - Checks whether this and the given placement are the same. The default tolerance is set to 0.0 """ diff --git a/src/Base/Quantity.pyi b/src/Base/Quantity.pyi index 2c4cadba7f..a6ba05707f 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -66,8 +66,6 @@ class Quantity(PyObjectBase): @constmethod def toStr(self, decimals: int = ..., /) -> str: """ - toStr([decimals]) - Returns a string representation rounded to number of decimals. If no decimals are specified then the internal precision is used """ diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index 78ddb46fb2..c9af2bd5f8 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -132,8 +132,6 @@ class Rotation(PyObjectBase): def invert(self) -> None: """ - invert() -> None - Sets the rotation to its inverse. """ ... @@ -141,16 +139,12 @@ class Rotation(PyObjectBase): @constmethod def inverted(self) -> "Rotation": """ - inverted() -> Base.Rotation - Returns the inverse of the rotation. """ ... def isSame(self, rotation: "Rotation", tol: float = 0, /) -> bool: """ - isSame(rotation, tol=0) -> bool - Checks if `rotation` perform the same transformation as this rotation. rotation : Base.Rotation @@ -163,8 +157,6 @@ class Rotation(PyObjectBase): @constmethod def multiply(self, rotation: "Rotation", /) -> "Rotation": """ - multiply(rotation) -> Base.Rotation - Right multiply this rotation with another rotation. rotation : Base.Rotation @@ -175,8 +167,6 @@ class Rotation(PyObjectBase): @constmethod def multVec(self, vector: Vector, /) -> Vector: """ - multVec(vector) -> Base.Vector - Compute the transformed vector using the rotation. vector : Base.Vector @@ -187,8 +177,6 @@ class Rotation(PyObjectBase): @constmethod def slerp(self, rotation2: "Rotation", t: float, /) -> "Rotation": """ - slerp(rotation2, t) -> Base.Rotation - Spherical Linear Interpolation (SLERP) of this rotation and `rotation2`. t : float @@ -198,8 +186,6 @@ class Rotation(PyObjectBase): def setYawPitchRoll(self, angle1: float, angle2: float, angle3: float, /) -> None: """ - setYawPitchRoll(angle1, angle2, angle3) -> None - Set the Euler angles of this rotation as yaw-pitch-roll in XY'Z'' convention. angle1 : float @@ -214,8 +200,6 @@ class Rotation(PyObjectBase): @constmethod def getYawPitchRoll(self) -> Tuple[float, float, float]: """ - getYawPitchRoll() -> tuple - Get the Euler angles of this rotation as yaw-pitch-roll in XY'Z'' convention. The angles are given in degrees. """ @@ -223,8 +207,6 @@ class Rotation(PyObjectBase): def setEulerAngles(self, seq: str, angle1: float, angle2: float, angle3: float, /) -> None: """ - setEulerAngles(seq, angle1, angle2, angle3) -> None - Set the Euler angles in a given sequence for this rotation. The angles must be given in degrees. @@ -239,8 +221,6 @@ class Rotation(PyObjectBase): @constmethod def toEulerAngles(self, seq: str = "", /) -> List[float]: """ - toEulerAngles(seq) -> list - Get the Euler angles in a given sequence for this rotation. seq : str @@ -252,8 +232,6 @@ class Rotation(PyObjectBase): @constmethod def toMatrix(self) -> Matrix: """ - toMatrix() -> Base.Matrix - Convert the rotation to a 4D matrix representation. """ ... @@ -261,8 +239,6 @@ class Rotation(PyObjectBase): @constmethod def isNull(self) -> bool: """ - isNull() -> bool - Returns True if all values in the quaternion representation are zero. """ ... @@ -270,8 +246,6 @@ class Rotation(PyObjectBase): @constmethod def isIdentity(self, tol: float = 0, /) -> bool: """ - isIdentity(tol=0) -> bool - Returns True if the rotation equals the 4D identity matrix. tol : float Tolerance used to check for identity. diff --git a/src/Base/Type.pyi b/src/Base/Type.pyi index 717dc6d858..f838830ef9 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -38,8 +38,6 @@ class Type(PyObjectBase): @staticmethod def fromName(name: str, /) -> "Type": """ - fromName(name) -> Base.BaseType - Returns a type object by name. name : str @@ -49,8 +47,6 @@ class Type(PyObjectBase): @staticmethod def fromKey(key: int, /) -> "Type": """ - fromKey(key) -> Base.BaseType - Returns a type id object by key. key : int @@ -60,8 +56,6 @@ class Type(PyObjectBase): @staticmethod def getNumTypes() -> int: """ - getNumTypes() -> int - Returns the number of type ids created so far. """ ... @@ -69,8 +63,6 @@ class Type(PyObjectBase): @staticmethod def getBadType() -> "Type": """ - getBadType() -> Base.BaseType - Returns an invalid type id. """ ... @@ -78,8 +70,6 @@ class Type(PyObjectBase): @staticmethod def getAllDerivedFrom(type: str, /) -> List[str]: """ - getAllDerivedFrom(type) -> list - Returns all descendants from the given type id. type : str, Base.BaseType @@ -89,8 +79,6 @@ class Type(PyObjectBase): @constmethod def getParent(self) -> "Type": """ - getParent() -> Base.BaseType - Returns the parent type id. """ ... @@ -98,8 +86,6 @@ class Type(PyObjectBase): @constmethod def isBad(self) -> bool: """ - isBad() -> bool - Checks if the type id is invalid. """ ... @@ -107,8 +93,6 @@ class Type(PyObjectBase): @constmethod def isDerivedFrom(self, type: str, /) -> bool: """ - isDerivedFrom(type) -> bool - Returns true if given type id is a father of this type id. type : str, Base.BaseType @@ -118,16 +102,12 @@ class Type(PyObjectBase): @constmethod def getAllDerived(self) -> List[object]: """ - getAllDerived() -> list - Returns all descendants from this type id. """ ... def createInstance(self) -> object: """ - createInstance() -> object - Creates an instance of this type id. """ ... @@ -135,8 +115,6 @@ class Type(PyObjectBase): @staticmethod def createInstanceByName(name: str, load: bool = False, /) -> object: """ - createInstanceByName(name, load=False) -> object - Creates an instance of the named type id. name : str diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index 25664d5a22..a68626367c 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -89,8 +89,6 @@ class Vector(PyObjectBase): @constmethod def __reduce__(self) -> tuple: """ - __reduce__() -> tuple - Serialization of Vector objects. """ ... @@ -98,8 +96,6 @@ class Vector(PyObjectBase): @constmethod def add(self, vector2: "Vector", /) -> "Vector": """ - add(vector2) -> Base.Vector - Returns the sum of this vector and `vector2`. vector2 : Base.Vector @@ -109,8 +105,6 @@ class Vector(PyObjectBase): @constmethod def sub(self, vector2: "Vector", /) -> "Vector": """ - sub(vector2) -> Base.Vector - Returns the difference of this vector and `vector2`. vector2 : Base.Vector @@ -120,16 +114,12 @@ class Vector(PyObjectBase): @constmethod def negative(self) -> "Vector": """ - negative() -> Base.Vector - Returns the negative (opposite) of this vector. """ ... def scale(self, x: float, y: float, z: float, /) -> "Vector": """ - scale(x, y, z) -> Base.Vector - Scales in-place this vector by the given factor in each component. x : float @@ -143,8 +133,6 @@ class Vector(PyObjectBase): def multiply(self, factor: float, /) -> "Vector": """ - multiply(factor) -> Base.Vector - Multiplies in-place each component of this vector by a single factor. Equivalent to scale(factor, factor, factor). @@ -155,8 +143,6 @@ class Vector(PyObjectBase): @constmethod def dot(self, vector2: "Vector", /) -> float: """ - dot(vector2) -> float - Returns the scalar product (dot product) between this vector and `vector2`. vector2 : Base.Vector @@ -166,8 +152,6 @@ class Vector(PyObjectBase): @constmethod def cross(self, vector2: "Vector", /) -> "Vector": """ - cross(vector2) -> Base.Vector - Returns the vector product (cross product) between this vector and `vector2`. vector2 : Base.Vector @@ -177,8 +161,6 @@ class Vector(PyObjectBase): @constmethod def isOnLineSegment(self, vector1: "Vector", vector2: "Vector", /) -> bool: """ - isOnLineSegment(vector1, vector2) -> bool - Checks if this vector is on the line segment generated by `vector1` and `vector2`. vector1 : Base.Vector @@ -189,8 +171,6 @@ class Vector(PyObjectBase): @constmethod def getAngle(self, vector2: "Vector", /) -> float: """ - getAngle(vector2) -> float - Returns the angle in radians between this vector and `vector2`. vector2 : Base.Vector @@ -199,8 +179,6 @@ class Vector(PyObjectBase): def normalize(self) -> "Vector": """ - normalize() -> Base.Vector - Normalizes in-place this vector to the length of 1.0. """ ... @@ -208,8 +186,6 @@ class Vector(PyObjectBase): @constmethod def isEqual(self, vector2: "Vector", tol: float = 0, /) -> bool: """ - isEqual(vector2, tol=0) -> bool - Checks if the distance between the points represented by this vector and `vector2` is less or equal to the given tolerance. @@ -221,8 +197,6 @@ class Vector(PyObjectBase): @constmethod def isParallel(self, vector2: "Vector", tol: float = 0, /) -> bool: """ - isParallel(vector2, tol=0) -> bool - Checks if this vector and `vector2` are parallel less or equal to the given tolerance. @@ -234,8 +208,6 @@ class Vector(PyObjectBase): @constmethod def isNormal(self, vector2: "Vector", tol: float = 0, /) -> bool: """ - isNormal(vector2, tol=0) -> bool - Checks if this vector and `vector2` are normal less or equal to the given tolerance. @@ -246,8 +218,6 @@ class Vector(PyObjectBase): def projectToLine(self, point: "Vector", dir: "Vector", /) -> "Vector": """ - projectToLine(point, dir) -> Base.Vector - Projects `point` on a line that goes through the origin with the direction `dir`. The result is the vector from `point` to the projected point. The operation is equivalent to dir_n.cross(dir_n.cross(point)), where `dir_n` is @@ -262,8 +232,6 @@ class Vector(PyObjectBase): def projectToPlane(self, base: "Vector", normal: "Vector", /) -> "Vector": """ - projectToPlane(base, normal) -> Base.Vector - Projects in-place this vector on a plane defined by a base point represented by `base` and a normal defined by `normal`. @@ -275,8 +243,6 @@ class Vector(PyObjectBase): @constmethod def distanceToPoint(self, point2: "Vector", /) -> float: """ - distanceToPoint(point2) -> float - Returns the distance to another point represented by `point2`. . point : Base.Vector @@ -286,8 +252,6 @@ class Vector(PyObjectBase): @constmethod def distanceToLine(self, base: "Vector", dir: "Vector", /) -> float: """ - distanceToLine(base, dir) -> float - Returns the distance between the point represented by this vector and a line defined by a base point represented by `base` and a direction `dir`. @@ -300,8 +264,6 @@ class Vector(PyObjectBase): @constmethod def distanceToLineSegment(self, point1: "Vector", point2: "Vector", /) -> "Vector": """ - distanceToLineSegment(point1, point2) -> Base.Vector - Returns the vector between the point represented by this vector and the point on the line segment with the shortest distance. The line segment is defined by `point1` and `point2`. @@ -314,8 +276,6 @@ class Vector(PyObjectBase): @constmethod def distanceToPlane(self, base: "Vector", normal: "Vector", /) -> float: """ - distanceToPlane(base, normal) -> float - Returns the distance between this vector and a plane defined by a base point represented by `base` and a normal defined by `normal`. diff --git a/src/Gui/AxisOrigin.pyi b/src/Gui/AxisOrigin.pyi index 947b4f009e..d3bf6bd874 100644 --- a/src/Gui/AxisOrigin.pyi +++ b/src/Gui/AxisOrigin.pyi @@ -24,8 +24,6 @@ class AxisOrigin(BaseClass): @constmethod def getElementPicked(self, pickedPoint: Any, /) -> str: """ - getElementPicked(pickedPoint) -> str - Returns the picked element name. pickedPoint : coin.SoPickedPoint @@ -35,8 +33,6 @@ class AxisOrigin(BaseClass): @constmethod def getDetailPath(self, subname: str, path: Any, /) -> Any: """ - getDetailPath(subname, path) -> coin.SoDetail or None - Returns Coin detail of a subelement. Note: Not fully implemented. Currently only returns None. diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index ed9740d4e5..144bdcab9f 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -18,8 +18,6 @@ class Command(PyObjectBase): @staticmethod def get(name: str, /) -> Optional["Command"]: """ - get(name) -> Gui.Command or None - Get a given command by name or None if it doesn't exist. name : str @@ -30,8 +28,6 @@ class Command(PyObjectBase): @staticmethod def update() -> None: """ - update() -> None - Update active status of all commands. """ ... @@ -39,8 +35,6 @@ class Command(PyObjectBase): @staticmethod def listAll() -> List[str]: """ - listAll() -> list of str - Returns the name of all commands. """ ... @@ -48,8 +42,6 @@ class Command(PyObjectBase): @staticmethod def listByShortcut(string: str, useRegExp: bool = False, /) -> List[str]: """ - listByShortcut(string, useRegExp=False) -> list of str - Returns a list of all commands, filtered by shortcut. Shortcuts are converted to uppercase and spaces removed prior to comparison. @@ -63,8 +55,6 @@ class Command(PyObjectBase): def run(self, item: int = 0, /) -> None: """ - run(item=0) -> None - Runs the given command. item : int @@ -75,24 +65,18 @@ class Command(PyObjectBase): @constmethod def isActive(self) -> bool: """ - isActive() -> bool - Returns True if the command is active, False otherwise. """ ... def getShortcut(self) -> str: """ - getShortcut() -> str - Returns string representing shortcut key accelerator for command. """ ... def setShortcut(self, string: str, /) -> bool: """ - setShortcut(string) -> bool - Sets shortcut for given command, returns True for success. string : str @@ -102,24 +86,18 @@ class Command(PyObjectBase): def resetShortcut(self) -> bool: """ - resetShortcut() -> bool - Resets shortcut for given command back to the default, returns True for success. """ ... def getInfo(self) -> Dict[Any, Any]: """ - getInfo() -> dict - Return information about this command. """ ... def getAction(self) -> List[Any]: """ - getAction() -> list of QAction - Return the associated QAction object. """ ... @@ -136,8 +114,6 @@ class Command(PyObjectBase): shortcut: str, ) -> str: """ - createCustomCommand(macroFile, menuText, toolTip, whatsThis, statusTip, pixmap, shortcut) -> str - Create a custom command for a macro. Returns name of the created command. macroFile : str @@ -160,8 +136,6 @@ class Command(PyObjectBase): @staticmethod def removeCustomCommand(name: str, /) -> bool: """ - removeCustomCommand(name) -> bool - Remove the custom command if it exists. Given the name of a custom command, this removes that command. It is not an error to remove a non-existent command, the function @@ -176,8 +150,6 @@ class Command(PyObjectBase): @staticmethod def findCustomCommand(name: str, /) -> Optional[str]: """ - findCustomCommand(name) -> str or None - Given the name of a macro, return the name of the custom command for that macro or None if there is no command matching that macro script name. diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index ec3985242c..0f0561fcc5 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -18,8 +18,6 @@ class Document(Persistence): def show(self, objName: str, /) -> None: """ - show(objName) -> None - Show an object. objName : str @@ -29,8 +27,6 @@ class Document(Persistence): def hide(self, objName: str, /) -> None: """ - hide(objName) -> None - Hide an object. objName : str @@ -40,8 +36,6 @@ class Document(Persistence): def setPos(self, objName: str, matrix: Matrix, /) -> None: """ - setPos(objName, matrix) -> None - Set the position of an object. objName : str @@ -54,8 +48,6 @@ class Document(Persistence): def setEdit(self, obj: Any, mod: int = 0, subName: Optional[str] = None, /) -> bool: """ - setEdit(obj, mod=0, subName) -> bool - Set an object in edit mode. obj : str, App.DocumentObject, Gui.ViewPrivider @@ -69,24 +61,18 @@ class Document(Persistence): def getInEdit(self) -> Optional[Any]: """ - getInEdit() -> Gui.ViewProviderDocumentObject or None - Returns the current object in edit mode or None if there is no such object. """ ... def resetEdit(self) -> None: """ - resetEdit() -> None - End the current editing. """ ... def addAnnotation(self, annoName: str, fileName: str, modName: str, /) -> None: """ - addAnnotation(annoName, fileName, modName) -> None - Add an Inventor object from a file. annoName : str @@ -100,16 +86,12 @@ class Document(Persistence): def update(self) -> None: """ - update() -> None - Update the view representations of all objects. """ ... def getObject(self, objName: str, /) -> Optional[Any]: """ - getObject(objName) -> object or None - Return the object with the given name. If no one exists, return None. ObjName : str @@ -119,24 +101,18 @@ class Document(Persistence): def activeObject(self) -> Optional[Any]: """ - activeObject() -> object or None - The active object of the document. Deprecated, use ActiveObject. """ ... def activeView(self) -> Optional[Any]: """ - activeView() -> object or None - The active view of the document. Deprecated, use ActiveView. """ ... def createView(self, type: str, /) -> Optional[Any]: """ - createView(type) -> object or None - Return a newly created view of a given type. type : str @@ -147,8 +123,6 @@ class Document(Persistence): @constmethod def mdiViewsOfType(self, type: str, /) -> List[Any]: """ - mdiViewsOfType(type) -> list of MDIView - Return a list of mdi views of a given type. type : str @@ -158,24 +132,18 @@ class Document(Persistence): def save(self) -> bool: """ - save() -> bool - Attempts to save the document """ ... def saveAs(self) -> bool: """ - saveAs() -> bool - Attempts to save the document under a new name """ ... def sendMsgToViews(self, msg: str, /) -> None: """ - sendMsgToViews(msg) -> None - Send a message to all views of the document. msg : str @@ -184,8 +152,6 @@ class Document(Persistence): def mergeProject(self, fileName: str, /) -> None: """ - mergeProject(fileName) -> None - Merges this document with another project file. fileName : str @@ -195,8 +161,6 @@ class Document(Persistence): def toggleTreeItem(self, obj: Any, mod: int = 0, subName: Optional[str] = None, /) -> None: """ - toggleTreeItem(obj, mod=0, subName) -> None - Change TreeItem of a document object. obj : App.DocumentObject @@ -210,8 +174,6 @@ class Document(Persistence): def scrollToTreeItem(self, obj: Any, /) -> None: """ - scrollToTreeItem(obj) -> None - Scroll the tree view to the item of a view object. obj : Gui.ViewProviderDocumentObject @@ -220,8 +182,6 @@ class Document(Persistence): def toggleInSceneGraph(self, obj: Any, /) -> None: """ - toggleInSceneGraph(obj) -> None - Add or remove view object from scene graph of all views depending on its canAddToSceneGraph(). diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index cc74d8649c..9f6feeffbf 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -68,7 +68,7 @@ class LinkView(BaseClass): def setType(self, type: int, sublink: bool = True, /) -> None: """ - setType(type, sublink=True): set the link type. + set the link type. type=0: override transformation and visibility type=1: override visibility @@ -95,19 +95,18 @@ class LinkView(BaseClass): def setTransform(self, matrix: Any, /) -> None: """ - setTransform(matrix): set transformation of the linked object + set transformation of the linked object - setTransform([matrix,...]): set transformation for the elements of the link + set transformation for the elements of the link array/group - setTransform({index:matrix,...}): set transformation for elements of the link + set transformation for elements of the link array/group by index """ ... def setChildren(self, children: List[Any], vis: List[Any] = [], type: int = 0, /) -> None: """ - setChildren([obj...],vis=[],type=0) Group a list of children objects. Note, this mode of operation is incompatible with link array. Calling this function will deactivate link array. And calling setSize() will reset all linked children. @@ -135,11 +134,11 @@ class LinkView(BaseClass): def setLink(self, obj: Any, subname: Any = None, /) -> None: """ - setLink(object): Set the link + Set the link - setLink(object, subname): Set the link with a sub-object reference + Set the link with a sub-object reference - setLink(object, [subname,...]): Set the link with a list of sub object references + Set the link with a list of sub object references object: The linked document object or its view object @@ -152,7 +151,7 @@ class LinkView(BaseClass): def getDetailPath(self, element: Any, /) -> Tuple[Any, Any]: """ - getDetailPath(element): get the 3d path an detail of an element. + get the 3d path an detail of an element. Return a tuple(path,detail) for the coin3D SoPath and SoDetail of the element """ @@ -160,13 +159,13 @@ class LinkView(BaseClass): def getElementPicked(self, pickPoint: Any, /) -> Any: """ - getElementPicked(pickPoint): get the element under a 3d pick point. + get the element under a 3d pick point. """ ... def getBoundBox(self, vobj: Any = None, /) -> Any: """ - getBoundBox(vobj=None): get the bounding box. + get the bounding box. """ ... diff --git a/src/Gui/Selection/SelectionObject.pyi b/src/Gui/Selection/SelectionObject.pyi index 9baca931f8..1dc6574e0e 100644 --- a/src/Gui/Selection/SelectionObject.pyi +++ b/src/Gui/Selection/SelectionObject.pyi @@ -20,7 +20,7 @@ class SelectionObject(BaseClass): def remove(self) -> None: """ Remove this selection item from the selection. - remove() -> None + -- This object becomes invalid. """ @@ -29,7 +29,6 @@ class SelectionObject(BaseClass): def isObjectTypeOf(self, type: Any, /) -> bool: """ Test for a certain father class. - isObjectTypeOf(type) -> Bool """ ... diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 50221e26db..9d192f7a21 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -33,8 +33,6 @@ class ViewProvider(ExtensionContainer): locked: bool = False, ) -> "ViewProvider": """ - addProperty(type, name, group, doc, attr=0, read_only=False, hidden=False, locked=False) -> ViewProvider - Add a generic property. type : str @@ -56,8 +54,6 @@ class ViewProvider(ExtensionContainer): def removeProperty(self, name: str, /) -> bool: """ - removeProperty(name) -> bool - Remove a generic property. Only user-defined properties can be removed, not built-in ones. @@ -68,40 +64,30 @@ class ViewProvider(ExtensionContainer): def supportedProperties(self) -> list: """ - supportedProperties() -> list - A list of supported property types. """ ... def show(self) -> None: """ - show() -> None - Show the object. """ ... def hide(self) -> None: """ - hide() -> None - Hide the object. """ ... def isVisible(self) -> bool: """ - isVisible() -> bool - Check if the object is visible. """ ... def canDragObject(self, obj: Any = None, /) -> bool: """ - canDragObject(obj=None) -> bool - Check whether the child object can be removed by dragging. If 'obj' is not given, check without filter by any particular object. @@ -112,8 +98,6 @@ class ViewProvider(ExtensionContainer): def dragObject(self, obj: Any, /) -> None: """ - dragObject(obj) -> None - Remove a child object by dropping. obj : App.DocumentObject @@ -125,8 +109,6 @@ class ViewProvider(ExtensionContainer): self, obj: Any = None, *, owner: Any = None, subname: str, elem: Optional[List[str]] = None ) -> bool: """ - canDropObject(obj=None, owner=None, subname, elem=None) -> bool - Check whether the child object can be added by dropping. If 'obj' is not given, check without filter by any particular object. @@ -146,8 +128,6 @@ class ViewProvider(ExtensionContainer): self, obj: Any, *, owner: Any = None, subname: str, elem: Optional[List[str]] = None ) -> str: """ - dropObject(obj, owner=None, subname, elem=None) -> str - Add a child object by dropping. obj : App.DocumentObject @@ -164,8 +144,6 @@ class ViewProvider(ExtensionContainer): def canDragAndDropObject(self, obj: Any, /) -> bool: """ - canDragAndDropObject(obj) -> bool - Check whether the child object can be removed from other parent and added here by drag and drop. @@ -176,8 +154,6 @@ class ViewProvider(ExtensionContainer): def replaceObject(self, oldObj: Any, newObj: Any, /) -> int: """ - replaceObject(oldObj, newObj) -> int - Replace a child object. Returns 1 if succeeded, 0 if not found, -1 if not supported. @@ -190,16 +166,12 @@ class ViewProvider(ExtensionContainer): def doubleClicked(self) -> bool: """ - doubleClicked() -> bool - Trigger double clicking the corresponding tree item of this view object. """ ... def addDisplayMode(self, obj: Any, mode: str, /) -> None: """ - addDisplayMode(obj, mode) -> None - Add a new display mode to the view provider. obj : coin.SoNode @@ -211,24 +183,18 @@ class ViewProvider(ExtensionContainer): def listDisplayModes(self) -> list: """ - listDisplayModes() -> list - Show a list of all display modes. """ ... def toString(self) -> str: """ - toString() -> str - Return a string representation of the Inventor node. """ ... def setTransformation(self, trans: Any, /) -> None: """ - setTransformation(trans) -> None - Set a transformation on the Inventor node. trans : Base.Placement, Base.Matrix @@ -238,8 +204,6 @@ class ViewProvider(ExtensionContainer): @constmethod def claimChildren(self) -> list: """ - claimChildren() -> list - Returns list of objects that are to be grouped in tree under this object. """ ... @@ -247,16 +211,12 @@ class ViewProvider(ExtensionContainer): @constmethod def claimChildrenRecursive(self) -> list: """ - claimChildrenRecursive() -> list - Returns list of objects that are to be grouped in tree under this object recursively. """ ... def partialRender(self, sub: Any = None, clear: bool = False, /) -> int: """ - partialRender(sub=None, clear=False) -> int - Render only part of the object. sub: None, str, sequence of str @@ -268,8 +228,6 @@ class ViewProvider(ExtensionContainer): def getElementColors(self, elementName: Optional[str] = None, /) -> dict: """ - getElementColors(elementName) -> dict - Get a dictionary of the form {elementName : (r,g,b,a)}. If no element name is given a dictionary with all the elements is returned. @@ -280,8 +238,6 @@ class ViewProvider(ExtensionContainer): def setElementColors(self, colors: dict, /) -> None: """ - setElementColors(colors) -> None - Set element colors. colors: dict @@ -292,8 +248,6 @@ class ViewProvider(ExtensionContainer): @constmethod def getElementPicked(self, pickPoint: Any, /) -> str: """ - getElementPicked(pickPoint) -> str - Return the picked subelement. pickPoint : coin.SoPickedPoint @@ -303,8 +257,6 @@ class ViewProvider(ExtensionContainer): @constmethod def getDetailPath(self, subelement: str, path: Any, append: bool = True, /) -> Any: """ - getDetailPath(subelement, path, append=True) -> coin.SoDetail or None - Return Coin detail and path of an subelement. subname: str @@ -320,8 +272,6 @@ class ViewProvider(ExtensionContainer): @constmethod def signalChangeIcon(self) -> None: """ - signalChangeIcon() -> None - Trigger icon changed signal. """ ... @@ -330,8 +280,6 @@ class ViewProvider(ExtensionContainer): self, subName: Optional[str] = None, transform: bool = True, view: Any = None, / ) -> BoundBox: """ - getBoundingBox(subName, transform=True, view) -> Base.BoundBox - Obtain the bounding box of this view object. subName : str diff --git a/src/Gui/ViewProviderGeometryObject.pyi b/src/Gui/ViewProviderGeometryObject.pyi index 3073d44ee5..dfc5dd7c2f 100644 --- a/src/Gui/ViewProviderGeometryObject.pyi +++ b/src/Gui/ViewProviderGeometryObject.pyi @@ -18,8 +18,6 @@ class ViewProviderGeometryObject(ViewProviderDocumentObject): @no_args def getUserDefinedMaterial() -> object: """ - getUserDefinedMaterial() -> object - Get a material object with the user-defined colors. """ ... diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index b33c5d3ce0..3d71ffcc57 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -7,6 +7,7 @@ from typing import Any, Final from Base.Metadata import constmethod, export from App.Part import Part +from App.DocumentObject import DocumentObject @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") @@ -19,10 +20,9 @@ class AssemblyObject(Part): """ @constmethod - def solve(self) -> Any: - """Solve the assembly and update part placements. - - solve(enableRedo=False) -> int + def solve(self, enableUndo: bool = False, /) -> int: + """ + Solve the assembly and update part placements. Args: enableRedo: Whether the solve save the initial position of parts @@ -38,14 +38,14 @@ class AssemblyObject(Part): -3 if conflicting constraints, -5 if malformed constraints -1 if solver error, - -2 if redundant constraints.""" + -2 if redundant constraints. + """ ... @constmethod - def generateSimulation(self) -> Any: - """Generate the simulation. - - solve(simulationObject) -> int + def generateSimulation(self, simulationObject: DocumentObject, /) -> int: + """ + Generate the simulation. Args: simulationObject: The simulation Object. @@ -58,111 +58,101 @@ class AssemblyObject(Part): -3 if conflicting constraints, -5 if malformed constraints -1 if solver error, - -2 if redundant constraints.""" + -2 if redundant constraints. + """ ... @constmethod - def updateForFrame(self) -> Any: - """Update entire assembly to frame number specified. + def updateForFrame(self, index: int, /) -> None: + """ + Update entire assembly to frame number specified. - updateForFrame(index) + Args: + index: index of frame. - Args: index of frame. - - Returns: None""" + Returns: None + """ ... @constmethod - def numberOfFrames(self) -> Any: - """numberOfFrames() - - Args: None - - Returns: Number of frames""" + def numberOfFrames(self) -> int: + """Return Number of frames""" ... @constmethod - def undoSolve(self) -> Any: - """Undo the last solve of the assembly and return part placements to their initial position. - - undoSolve() - - Returns: None""" + def undoSolve(self) -> None: + """ + Undo the last solve of the assembly and return part placements to their initial position. + """ ... @constmethod - def ensureIdentityPlacements(self) -> Any: - """Makes sure that LinkGroups or sub-assemblies have identity placements. - - ensureIdentityPlacements() - - Returns: None""" + def ensureIdentityPlacements(self) -> None: + """ + Makes sure that LinkGroups or sub-assemblies have identity placements. + """ ... @constmethod - def clearUndo(self) -> Any: - """Clear the registered undo positions. - - clearUndo() - - Returns: None""" + def clearUndo(self) -> None: + """ + Clear the registered undo positions. + """ ... @constmethod - def isPartConnected(self) -> Any: - """Check if a part is connected to the ground through joints. - - isPartConnected(obj) -> bool - - Args: document object to check. - - Returns: True if part is connected to ground""" + def isPartConnected(self, obj: DocumentObject, /) -> bool: + """ + Check if a part is connected to the ground through joints. + Returns: True if part is connected to ground. + """ ... @constmethod - def isJointConnectingPartToGround(self) -> Any: - """Check if a joint is connecting a part to the ground. - - isJointConnectingPartToGround(joint, propName) -> bool + def isJointConnectingPartToGround(self, joint: DocumentObject, prop_name: str, /) -> Any: + """ + Check if a joint is connecting a part to the ground. Args: - joint: document object of the joint to check. - - propName: string 'Part1' or 'Part2' of the joint. + - prop_name: string 'Part1' or 'Part2' of the joint. - Returns: True if part is connected to ground""" + Returns: True if part is connected to ground. + """ ... @constmethod - def isPartGrounded(self) -> Any: - """Check if a part has a grounded joint. - - isPartGrounded(obj) -> bool + def isPartGrounded(self, obj: DocumentObject, /) -> Any: + """ + Check if a part has a grounded joint. Args: - obj: document object of the part to check. - Returns: True if part has grounded joint""" + Returns: True if part has grounded joint. + """ ... @constmethod - def exportAsASMT(self) -> Any: - """Export the assembly in a text format called ASMT. - - exportAsASMT(fileName:str) + def exportAsASMT(self, file_name: str, /) -> None: + """ + Export the assembly in a text format called ASMT. Args: - fileName: The name of the file where the ASMT will be exported.""" + - 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", - /) -> list["App.DocumentObject"]: + def getDownstreamParts( + self, + start_part: DocumentObject, + joint_to_ignore: DocumentObject, + /) -> list[DocumentObject]: """ Finds all parts connected to a start_part that are not connected to ground when a specific joint is ignored. - getDownstreamParts(start_part, joint_to_ignore) -> list - This is used to find the entire rigid group of unconstrained components that should be moved together during a pre-solve operation or a drag. diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index f3e983de56..47eeecea52 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -2,12 +2,13 @@ from __future__ import annotations -from typing import Any, List, Tuple +from typing import Any, List, Tuple, TypeAlias from Base.Metadata import export from App.DocumentObject import DocumentObject from Gui.ViewProvider import ViewProvider +SoTransformDragger: TypeAlias = Any @export(Include="Mod/Assembly/Gui/ViewProviderAssembly.h", Namespace="AssemblyGui") class ViewProviderAssembly(ViewProvider): @@ -21,17 +22,11 @@ class ViewProviderAssembly(ViewProvider): def isInEditMode(self) -> Any: """ Return true if the assembly object is currently in edit mode. - - isInEditMode() -> bool""" + """ ... - def getDragger(self) -> Any: - """ - Return the assembly dragger coin object. - - getDragger() -> SoTransformDragger - - Returns: dragger coin object of the assembly""" + def getDragger(self) -> SoTransformDragger: + """Return the assembly dragger coin object.""" ... def isolateComponents( diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index 206363a8e8..1f5163ee1c 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -29,24 +29,25 @@ class Area(BaseClass): """""" ... - def setPlane(self) -> Any: - """setPlane(shape): Set the working plane. + def setPlane(self) -> None: + """ + Set the working plane. The supplied shape does not need to be planar. Area will try to find planar sub-shape (face, wire or edge). If more than one planar sub-shape is found, it will prefer the top plane parallel to XY0 plane. If no working plane are set, Area will try to find a working plane from the added children shape using the - same algorithm""" + same algorithm + """ ... def getShape(self, **kwargs) -> Any: - """getShape(index=-1,rebuild=False): Return the resulting shape - + """ + Return the resulting shape * index (-1): the index of the section. -1 means all sections. No effect on planar shape. - - - * rebuild: clean the internal cache and rebuild""" + * rebuild: clean the internal cache and rebuild + """ ... def makeOffset(self, **kwargs) -> Any: diff --git a/src/Mod/CAM/App/Command.pyi b/src/Mod/CAM/App/Command.pyi index 91827d2b9a..62766ce427 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -22,15 +22,15 @@ class Command(Persistence): @constmethod def toGCode(self) -> str: - """toGCode(): returns a GCode representation of the command""" + """returns a GCode representation of the command""" ... def setFromGCode(self, gcode: str, /) -> None: - """setFromGCode(): sets the path from the contents of the given GCode string""" + """sets the path from the contents of the given GCode string""" ... def transform(self, placement: Placement, /) -> Command: - """transform(Placement): returns a copy of this command transformed by the given placement""" + """returns a copy of this command transformed by the given placement""" ... Name: str diff --git a/src/Mod/CAM/App/FeatureArea.pyi b/src/Mod/CAM/App/FeatureArea.pyi index dcc49facaa..3540c8a60c 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -24,7 +24,10 @@ class FeatureArea(DocumentObject): ... def setParams(self, **kwargs) -> Any: - """setParams(key=value...): Convenient function to configure this feature. + """ + Convenient function to configure this feature. + + Call with keywords: setParams(key=value, ...) Same usage as Path.Area.setParams(). This function stores the parameters in the properties. """ diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index 05dbfce859..a092d84f3b 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -1,10 +1,12 @@ # SPDX-License-Identifier: LGPL-2.1-or-later -from typing import Any, Final +from __future__ import annotations +from typing import Any, Final, overload, Union from Base.Metadata import constmethod, export from Base.Persistence import Persistence +from .Command import Command @export( Include="Mod/CAM/App/Path.h", @@ -23,36 +25,44 @@ class Path(Persistence): License: LGPL-2.1-or-later """ - def addCommands(self) -> Any: + @overload + def addCommands(self, command: Command, /) -> Path: ... + + @overload + def addCommands(self, commands: list[Command], /) -> Path: ... + + def addCommands(self, arg: Union[Command, list[Command]], /) -> Path: """adds a command or a list of commands at the end of the path""" ... - def insertCommand(self) -> Any: - """insertCommand(Command,[int]): - adds a command at the given position or at the end of the path""" + def insertCommand(self, command: Command, pos: int = -1, /) -> Path: + """ + adds a command at the given position or at the end of the path + """ ... - def deleteCommand(self) -> Any: - """deleteCommand([int]): - deletes the command found at the given position or from the end of the path""" + def deleteCommand(self, pos: int = -1, /) -> Path: + """ + deletes the command found at the given position or from the end of the path + """ ... - def setFromGCode(self) -> Any: + def setFromGCode(self, gcode: str, /) -> None: """sets the contents of the path from a gcode string""" ... @constmethod - def toGCode(self) -> Any: + def toGCode(self) -> str: """returns a gcode string representing the path""" ... @constmethod - def copy(self) -> Any: + def copy(self) -> Path: """returns a copy of this path""" ... @constmethod - def getCycleTime(self) -> Any: + def getCycleTime(self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, /) -> float: """return the cycle time estimation for this path in s""" ... diff --git a/src/Mod/CAM/App/Voronoi.pyi b/src/Mod/CAM/App/Voronoi.pyi index 013f8fcead..c4b34642f7 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -5,6 +5,7 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export +from Base.Vector import Vector @export( Include="Mod/CAM/App/Voronoi.h", @@ -35,12 +36,12 @@ class Voronoi(BaseClass): """Return number of vertices""" ... - def addPoint(self) -> Any: - """addPoint(vector|vector2d) add given point to input collection""" + def addPoint(self, point: Vector, /) -> None: + """add given point to input collection""" ... - def addSegment(self) -> Any: - """addSegment(vector|vector2d, vector|vector2d) add given segment to input collection""" + def addSegment(self, point1: Vector, point2: Vector, /) -> Any: + """add given segment to input collection""" ... def construct(self) -> Any: diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 4f67ff2788..68851af71f 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -7,6 +7,10 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import export +from Part.App.TopoShape import TopoShape +from Mesh.App.Mesh import Mesh +from Base.Placement import Placement +from CAM.App.Command import Command @export( FatherInclude="Base/BaseClassPy.h", @@ -27,30 +31,28 @@ class PathSim(BaseClass): License: LGPL-2.1-or-later """ - def BeginSimulation(self, **kwargs) -> Any: - """BeginSimulation(stock, resolution): - - Start a simulation process on a box shape stock with given resolution""" - ... - - def SetToolShape(self) -> Any: - """SetToolShape(shape): - - Set the shape of the tool to be used for simulation""" - ... - - def GetResultMesh(self) -> Any: + def BeginSimulation(self, stock: TopoShape, resolution: float) -> None: + """ + Start a simulation process on a box shape stock with given resolution """ - GetResultMesh(): - - Return the current mesh result of the simulation.""" ... - def ApplyCommand(self, **kwargs) -> Any: + def SetToolShape(self, tool: TopoShape, resolution: float, /) -> None: """ - ApplyCommand(placement, command): + Set the shape of the tool to be used for simulation + """ + ... - Apply a single path command on the stock starting from placement.""" + def GetResultMesh(self) -> tuple[Mesh, Mesh]: + """ + Return the current mesh result of the simulation. + """ + ... + + def ApplyCommand(self, placement: Placement, command: Command) -> Placement: + """ + Apply a single path command on the stock starting from placement. + """ ... Tool: Final[Any] diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index 4f54097f03..dd2d55e7e8 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -5,8 +5,10 @@ from __future__ import annotations from typing import Any from Base.BaseClass import BaseClass -from Base.Metadata import export -from Metadata import no_args +from Base.Metadata import export, no_args + +from Part.App.TopoShape import TopoShape +from CAM.App.Command import Command @export( @@ -28,38 +30,33 @@ class CAMSim(BaseClass): License: LGPL-2.1-or-later """ - def BeginSimulation(self, **kwargs) -> Any: + def BeginSimulation(self, stock: TopoShape, resolution: float) -> None: + """ + Start a simulation process on a box shape stock with given resolution """ - BeginSimulation(stock, resolution): - - Start a simulation process on a box shape stock with given resolution""" ... @no_args - def ResetSimulation(self) -> Any: + def ResetSimulation(self) -> None: + """ + Clear the simulation and all gcode commands """ - ResetSimulation(): - - Clear the simulation and all gcode commands""" ... - def AddTool(self, **kwargs) -> Any: + def AddTool(self, shape: TopoShape, toolnumber: int, diameter: float, resolution: float) -> Any: + """ + Set the shape of the tool to be used for simulation """ - AddTool(shape, toolnumber, diameter, resolution): - - Set the shape of the tool to be used for simulation""" ... - def SetBaseShape(self, **kwargs) -> Any: + def SetBaseShape(self, shape: TopoShape, resolution: float) -> None: + """ + Set the shape of the base object of the job """ - SetBaseShape(shape, resolution): - - Set the shape of the base object of the job""" ... - def AddCommand(self) -> Any: + def AddCommand(self, command: Command, /) -> Any: + """ + Add a path command to the simulation. """ - AddCommand(command): - - Add a path command to the simulation.""" ... From d05088357b3a1d4390973545fbad6bad37ae3dff Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Fri, 10 Oct 2025 14:39:50 -0500 Subject: [PATCH 17/20] [bindings] remove redundant signatures. batch2 --- src/Mod/CAM/PathSimulator/App/PathSim.pyi | 3 +- src/Mod/Import/App/StepShape.pyi | 5 ++- src/Mod/PartDesign/App/Body.pyi | 1 - src/Mod/PartDesign/Gui/ViewProvider.pyi | 4 +- src/Mod/Sketcher/App/Sketch.pyi | 2 +- src/Mod/Spreadsheet/App/Sheet.pyi | 44 +++++++++---------- .../Gui/ViewProviderSpreadsheet.pyi | 20 ++------- 7 files changed, 33 insertions(+), 46 deletions(-) diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 68851af71f..79c7b27627 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -6,10 +6,9 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import export - +from Base.Placement import Placement from Part.App.TopoShape import TopoShape from Mesh.App.Mesh import Mesh -from Base.Placement import Placement from CAM.App.Command import Command @export( diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 1fdee6f85b..2e584a28b3 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -24,6 +24,7 @@ class StepShape(PyObjectBase): """ def read(self) -> Any: - """method read() - Read a STEP file into memory and make it accessible""" + """ + Read a STEP file into memory and make it accessible + """ ... diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index fa044d35e4..d9bb8e4070 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -24,7 +24,6 @@ class Body(BodyBase): def insertObject(self, feature: object, target: object, after: bool = False, /) -> None: """ - insertObject(feature, target, after=False) Insert the feature into the body after the given feature. @param feature The feature to insert into the body diff --git a/src/Mod/PartDesign/Gui/ViewProvider.pyi b/src/Mod/PartDesign/Gui/ViewProvider.pyi index cfb237b472..d5292c3383 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -22,7 +22,7 @@ class ViewProvider(ViewProviderPartExt): def setBodyMode(self, mode: bool, /) -> None: """ - setBodyMode(bool): body mode means that the object is part of a body + body mode means that the object is part of a body and that the body is used to set the visual properties, not the features. Hence setting body mode to true will hide most viewprovider properties. """ @@ -30,7 +30,7 @@ class ViewProvider(ViewProviderPartExt): def makeTemporaryVisible(self, visible: bool, /) -> None: """ - makeTemporaryVisible(bool): makes this viewprovider visible in the + makes this viewprovider visible in the scene graph without changing any properties, not the visibility one and also not the display mode. This can be used to show the shape of this viewprovider from other viewproviders without doing anything to the document and properties. diff --git a/src/Mod/Sketcher/App/Sketch.pyi b/src/Mod/Sketcher/App/Sketch.pyi index 70a25fbfba..31ef21fd1a 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -64,7 +64,7 @@ class Sketch(Persistence): self, GeoIndex: int, PointPos: Vector, Vector: Vector, relative: bool = False, / ) -> None: """ - moveGeometry(GeoIndex,PointPos,Vector,[relative]) - move a given point (or curve) + Move a given point (or curve). to another location. It moves the specified point (or curve) to the given location by adding some temporary weak constraints and solve the sketch. diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index e3d1e0047e..82dd460022 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -142,44 +142,44 @@ class Sheet(DocumentObject): """Get given spreadsheet row height""" ... - def touchCells(self) -> Any: - """touchCells(from, to=None): touch cells in the given range""" + def touchCells(self, address: str, address_to: str | None = None, /) -> None: + """touch cells in the given range""" ... - def recomputeCells(self) -> Any: - """recomputeCells(from, to=None) - + def recomputeCells(self, address: str, address_to: str | None = None, /) -> Any: + """ Manually recompute cells in the given range with the given order without - following dependency order.""" + following dependency order. + """ ... - def getUsedCells(self) -> Any: - """getUsedCells() - + def getUsedCells(self) -> list[str]: + """ Get a list of the names of all cells that are marked as used. These cells may - or may not have a non-empty string content.""" + or may not have a non-empty string content. + """ ... - def getNonEmptyCells(self) -> Any: - """getNonEmptyCells() - - Get a list of the names of all cells with data in them.""" + def getNonEmptyCells(self) -> list[str]: + """ + Get a list of the names of all cells with data in them. + """ ... - def getUsedRange(self) -> Any: - """getUsedRange() - + def getUsedRange(self) -> tuple[str, str]: + """ Get a the total range of the used cells in a sheet, as a pair of strings representing the lowest row and column that are used, and the highest row and column that are used (inclusive). Note that the actual first and last cell - of the block are not necessarily used.""" + of the block are not necessarily used. + """ ... - def getNonEmptyRange(self) -> Any: - """getNonEmptyRange() - + def getNonEmptyRange(self) -> tuple[str, str]: + """ Get a the total range of the used cells in a sheet, as a pair of cell addresses representing the lowest row and column that contain data, and the highest row and column that contain data (inclusive). Note that the actual first and last cell - of the block do not necessarily contain anything.""" + of the block do not necessarily contain anything. + """ ... diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index d3e4e5e958..e8085bc056 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -27,22 +27,10 @@ class ViewProviderSpreadsheet(ViewProviderDocumentObject): """Get access to the sheet view""" ... - def showSheetMdi(self) -> Any: - """ - Create (if necessary) and switch to the Spreadsheet MDI. - - showSheetMdi() - - Returns: None - """ + def showSheetMdi(self) -> None: + """Create (if necessary) and switch to the Spreadsheet MDI.""" ... - def exportAsFile(self) -> Any: - """ - Export the sheet as a file. - - exportAsFile() - - Returns: None - """ + def exportAsFile(self) -> None: + """Export the sheet as a file.""" ... From a9016c1c03275719538b1b3a9af2bbd81f385b87 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Fri, 10 Oct 2025 19:11:19 -0500 Subject: [PATCH 18/20] [bindings] remove redundant signatures. batch3 --- src/Mod/Fem/App/FemMesh.pyi | 212 ++++++++++-------- src/Mod/Fem/App/FemPostFilter.pyi | 27 ++- src/Mod/Fem/App/FemPostObject.pyi | 31 ++- src/Mod/Fem/App/FemPostPipeline.pyi | 75 +++++-- src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 10 +- 5 files changed, 216 insertions(+), 139 deletions(-) diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index 14e5c0c6a4..d43b06bdab 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -2,12 +2,17 @@ from __future__ import annotations -from typing import Any, Final +from typing import Any, Final, overload from Base.Metadata import constmethod, export - +from Base.Vector import Vector +from Base.Placement import Placement from App.ComplexGeoData import ComplexGeoData - +from Part.App.TopoShape import TopoShape +from Part.App.TopoShapeFace import TopoShapeFace +from Part.App.TopoShapeEdge import TopoShapeEdge +from Part.App.TopoShapeSolid import TopoShapeSolid +from Part.App.TopoShapeVertex import TopoShapeVertex @export( Include="Mod/Fem/App/FemMesh.h", @@ -24,219 +29,248 @@ class FemMesh(ComplexGeoData): License: LGPL-2.1-or-later """ - def setShape(self) -> Any: + def setShape(self, shape: TopoShape, /) -> None: """Set the Part shape to mesh""" ... - def compute(self) -> Any: + def compute(self) -> None: """Update the internal mesh structure""" ... - def addHypothesis(self) -> Any: + def addHypothesis(self, hypothesis: object, shape: TopoShape, /) -> None: """Add hypothesis""" ... - def setStandardHypotheses(self) -> Any: + def setStandardHypotheses(self) -> None: """Set some standard hypotheses for the whole shape""" ... - def addNode(self) -> Any: + def addNode(self, x: float, y: float, z: float, elem_id: int | None = None, /) -> int: """Add a node by setting (x,y,z).""" ... - def addEdge(self) -> Any: + @overload + def addEdge(self, n1: int, n2: int, /) -> int: ... + + @overload + def addEdge(self, nodes: list[int], elem_id: int | None = None, /) -> int: ... + + def addEdge(self, *args) -> int: """Add an edge by setting two node indices.""" ... - def addEdgeList(self) -> Any: + def addEdgeList(self, nodes: list[int], np: list[int], /) -> list[int]: """Add list of edges by list of node indices and list of nodes per edge.""" ... + @overload + def addFace(self, n1: int, n2: int, n3: int, /) -> int: ... + + @overload + def addFace(self, nodes: list[int], elem_id: int | None = None, /) -> int: ... + def addFace(self) -> Any: """Add a face by setting three node indices.""" ... - def addFaceList(self) -> Any: + def addFaceList(self, nodes: list[int], np: list[int], /) -> list[int]: """Add list of faces by list of node indices and list of nodes per face.""" ... - def addQuad(self) -> Any: + def addQuad(self, n1: int, n2: int, n3: int, n4: int, /) -> int: """Add a quad by setting four node indices.""" ... - def addVolume(self) -> Any: + @overload + def addVolume(self, n1: int, n2: int, n3: int, n4: int, /) -> int: ... + + @overload + def addVolume(self, nodes: list[int], elem_id: int | None = None, /) -> int: ... + + def addVolume(self, *args) -> int: """Add a volume by setting an arbitrary number of node indices.""" ... - def addVolumeList(self) -> Any: + def addVolumeList(self, nodes: list[int], np: list[int], /) -> list[int]: """Add list of volumes by list of node indices and list of nodes per volume.""" ... - def read(self) -> Any: + def read(self, file_name: str, /) -> None: """ Read in a various FEM mesh file formats. - read(file.endingToExportTo) - supported formats: DAT, INP, MED, STL, UNV, VTK, Z88""" + + + Supported formats: DAT, INP, MED, STL, UNV, VTK, Z88 + """ ... @constmethod - def write(self) -> Any: + def write(self, file_name: str, /) -> None: """ Write out various FEM mesh file formats. - write(file.endingToExportTo) - supported formats: BDF, DAT, INP, MED, STL, UNV, VTK, Z88""" + + Supported formats: BDF, DAT, INP, MED, STL, UNV, VTK, Z88 + """ ... @constmethod - def writeABAQUS(self, **kwargs) -> Any: + def writeABAQUS( + self, + fileName: str, + elemParam: int, + groupParam: bool, + volVariant: str = "standard", + faceVariant: str = "shell", + edgeVariant: str = "beam") -> None: """ - Write out as ABAQUS inp - writeABAQUS(file, int elemParam, bool groupParam, str volVariant, str faceVariant, str edgeVariant) + Write out as ABAQUS inp. - elemParam: - 0: All elements - 1: Highest elements only - 2: FEM elements only (only edges not belonging to faces and faces not belonging to volumes) + elemParam: + 0: All elements + 1: Highest elements only + 2: FEM elements only (only edges not belonging to faces and faces not belonging to volumes) - groupParam: - True: Write group data - False: Do not write group data + groupParam: + True: Write group data + False: Do not write group data - volVariant: Volume elements - "standard": Tetra4 -> C3D4, Penta6 -> C3D6, Hexa8 -> C3D8, Tetra10 -> C3D10, Penta15 -> C3D15, Hexa20 -> C3D20 - "reduced": Hexa8 -> C3D8R, Hexa20 -> C3D20R - "incompatible": Hexa8 -> C3D8I - "modified": Tetra10 -> C3D10T - "fluid": Tetra4 -> F3D4, Penta6 -> F3D6, Hexa8 -> F3D8 + volVariant: Volume elements + "standard": Tetra4 -> C3D4, Penta6 -> C3D6, Hexa8 -> C3D8, Tetra10 -> C3D10, Penta15 -> C3D15, Hexa20 -> C3D20 + "reduced": Hexa8 -> C3D8R, Hexa20 -> C3D20R + "incompatible": Hexa8 -> C3D8I + "modified": Tetra10 -> C3D10T + "fluid": Tetra4 -> F3D4, Penta6 -> F3D6, Hexa8 -> F3D8 - faceVariant: Face elements - "shell": Tria3 -> S3, Quad4 -> S4, Tria6 -> S6, Quad8 -> S8 - "shell reduced": Tria3 -> S3, Quad4 -> S4R, Tria6 -> S6, Quad8 -> S8R - "membrane": Tria3 -> M3D3, Quad4 -> M3D4, Tria6 -> M3D6, Quad8 -> M3D8 - "membrane reduced": Tria3 -> M3D3, Quad4 -> M3D4R, Tria6 -> M3D6, Quad8 -> M3D8R - "stress": Tria3 -> CPS3, Quad4 -> CPS4, Tria6 -> CPS6, Quad8 -> CPS8 - "stress reduced": Tria3 -> CPS3, Quad4 -> CPS4R, Tria6 -> CPS6, Quad8 -> CPS8R - "strain": Tria3 -> CPE3, Quad4 -> CPE4, Tria6 -> CPE6, Quad8 -> CPE8 - "strain reduced": Tria3 -> CPE3, Quad4 -> CPE4R, Tria6 -> CPE6, Quad8 -> CPE8R - "axisymmetric": Tria3 -> CAX3, Quad4 -> CAX4, Tria6 -> CAX6, Quad8 -> CAX8 - "axisymmetric reduced": Tria3 -> CAX3, Quad4 -> CAX4R, Tria6 -> CAX6, Quad8 -> CAX8R + faceVariant: Face elements + "shell": Tria3 -> S3, Quad4 -> S4, Tria6 -> S6, Quad8 -> S8 + "shell reduced": Tria3 -> S3, Quad4 -> S4R, Tria6 -> S6, Quad8 -> S8R + "membrane": Tria3 -> M3D3, Quad4 -> M3D4, Tria6 -> M3D6, Quad8 -> M3D8 + "membrane reduced": Tria3 -> M3D3, Quad4 -> M3D4R, Tria6 -> M3D6, Quad8 -> M3D8R + "stress": Tria3 -> CPS3, Quad4 -> CPS4, Tria6 -> CPS6, Quad8 -> CPS8 + "stress reduced": Tria3 -> CPS3, Quad4 -> CPS4R, Tria6 -> CPS6, Quad8 -> CPS8R + "strain": Tria3 -> CPE3, Quad4 -> CPE4, Tria6 -> CPE6, Quad8 -> CPE8 + "strain reduced": Tria3 -> CPE3, Quad4 -> CPE4R, Tria6 -> CPE6, Quad8 -> CPE8R + "axisymmetric": Tria3 -> CAX3, Quad4 -> CAX4, Tria6 -> CAX6, Quad8 -> CAX8 + "axisymmetric reduced": Tria3 -> CAX3, Quad4 -> CAX4R, Tria6 -> CAX6, Quad8 -> CAX8R - edgeVariant: Edge elements - "beam": Seg2 -> B31, Seg3 -> B32 - "beam reduced": Seg2 -> B31R, Seg3 -> B32R - "truss": Seg2 -> T3D2, eg3 -> T3D3 - "network": Seg3 -> D + edgeVariant: Edge elements + "beam": Seg2 -> B31, Seg3 -> B32 + "beam reduced": Seg2 -> B31R, Seg3 -> B32R + "truss": Seg2 -> T3D2, eg3 -> T3D3 + "network": Seg3 -> D - Elements are selected according to CalculiX availability. - For example if volume variant "modified" is selected, Tetra10 mesh - elements are assigned to C3D10T and remain elements uses "standard". - Axisymmetric, plane strain and plane stress elements expect nodes in the plane z=0. + Elements are selected according to CalculiX availability. + For example if volume variant "modified" is selected, Tetra10 mesh + elements are assigned to C3D10T and remain elements uses "standard". + Axisymmetric, plane strain and plane stress elements expect nodes in the plane z=0. """ ... - def setTransform(self) -> Any: + def setTransform(self, placement: Placement, /) -> None: """Use a Placement object to perform a translation or rotation""" ... @constmethod - def copy(self) -> Any: + def copy(self) -> FemMesh: """Make a copy of this FEM mesh.""" ... @constmethod - def getFacesByFace(self) -> Any: + def getFacesByFace(self, face: TopoShapeFace, /) -> list[int]: """Return a list of face IDs which belong to a TopoFace""" ... @constmethod - def getEdgesByEdge(self) -> Any: + def getEdgesByEdge(self, edge: TopoShapeEdge, /) -> list[int]: """Return a list of edge IDs which belong to a TopoEdge""" ... @constmethod - def getVolumesByFace(self) -> Any: - """Return a dict of volume IDs and face IDs which belong to a TopoFace""" + def getVolumesByFace(self, face: TopoShapeFace, /) -> list[tuple[int, int]]: + """Return a list of tuples of volume IDs and face IDs which belong to a TopoFace""" ... @constmethod - def getccxVolumesByFace(self) -> Any: - """Return a dict of volume IDs and ccx face numbers which belong to a TopoFace""" + def getccxVolumesByFace(self, face: TopoShapeFace, /) -> list[tuple[int, int]]: + """Return a list of tuples of volume IDs and ccx face numbers which belong to a TopoFace""" ... @constmethod - def getNodeById(self) -> Any: + def getNodeById(self, node_id: int, /) -> Vector: """Get the node position vector by a Node-ID""" ... @constmethod - def getNodesBySolid(self) -> Any: + def getNodesBySolid(self, shape: TopoShapeSolid, /) -> list[int]: """Return a list of node IDs which belong to a TopoSolid""" ... @constmethod - def getNodesByFace(self) -> Any: + def getNodesByFace(self, face: TopoShapeFace, /) -> list[int]: """Return a list of node IDs which belong to a TopoFace""" ... @constmethod - def getNodesByEdge(self) -> Any: + def getNodesByEdge(self, edge: TopoShapeEdge, /) -> list[int]: """Return a list of node IDs which belong to a TopoEdge""" ... @constmethod - def getNodesByVertex(self) -> Any: + def getNodesByVertex(self, vertex: TopoShapeVertex, /) -> list[int]: """Return a list of node IDs which belong to a TopoVertex""" ... @constmethod - def getElementNodes(self) -> Any: + def getElementNodes(self, elem_id: int, /) -> tuple[int, ...]: """Return a tuple of node IDs to a given element ID""" ... @constmethod - def getNodeElements(self) -> Any: + def getNodeElements(self, elem_id: int, elem_type: str = "All", /) -> tuple[int, ...]: """Return a tuple of specific element IDs associated to a given node ID""" ... @constmethod - def getGroupName(self) -> Any: + def getGroupName(self, elem_id: int, /) -> str: """Return a string of group name to a given group ID""" ... @constmethod - def getGroupElementType(self) -> Any: + def getGroupElementType(self, elem_id: int, /) -> str: """Return a string of group element type to a given group ID""" ... @constmethod - def getGroupElements(self) -> Any: + def getGroupElements(self, elem_id: int, /) -> tuple[int, ...]: """Return a tuple of ElementIDs to a given group ID""" ... @constmethod - def addGroup(self) -> Any: + def addGroup(self, name: str, group_type: str, group_id: int = -1, /) -> None: """ Add a group to mesh with specific name and type - addGroup(name, typestring, [id]) - name: string - typestring: "All", "Node", "Edge", "Face", "Volume", "0DElement", "Ball" - id: int - Optional id is used to force specific id for group, but does - not work, yet.""" + + name: string + group_type: "All", "Node", "Edge", "Face", "Volume", "0DElement", "Ball" + group_id: int + Optional group_id is used to force specific id for group, but does + not work, yet. + """ ... @constmethod - def addGroupElements(self) -> Any: + def addGroupElements(self, group_id: int, elements: list[int], /) -> None: """ Add a tuple of ElementIDs to a given group ID - addGroupElements(groupid, list_of_elements) - groupid: int - list_of_elements: list of int - Notice that the elements have to be in the mesh.""" + + group_id: int + elements: list of int + Notice that the elements have to be in the mesh. + """ ... @constmethod - def removeGroup(self) -> Any: + def removeGroup(self, group_id: int, /) -> bool: """ Remove a group with a given group ID removeGroup(groupid) @@ -253,12 +287,12 @@ class FemMesh(ComplexGeoData): ... @constmethod - def getElementType(self) -> Any: + def getElementType(self, elem_id: int, /) -> str: """Return the element type of a given ID""" ... @constmethod - def getIdByElementType(self) -> Any: + def getIdByElementType(self, elem_type: str, /) -> tuple[int, ...]: """Return a tuple of IDs to a given element type""" ... diff --git a/src/Mod/Fem/App/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index bc756ce819..e4e606d9d5 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -2,12 +2,12 @@ from __future__ import annotations -from typing import Any +from typing import Any, TypeAlias from Base.Metadata import export - from Fem.FemPostObject import FemPostObject +vtkAlgorithm: TypeAlias = object @export( Include="Mod/Fem/App/FemPostFilter.h", @@ -23,36 +23,39 @@ class FemPostFilter(FemPostObject): License: LGPL-2.1-or-later """ - def addFilterPipeline(self) -> Any: + def addFilterPipeline(self, name: str, source: vtkAlgorithm, target: vtkAlgorithm, /) -> None: """Registers a new vtk filter pipeline for data processing. Arguments are (name, source algorithm, target algorithm).""" ... - def setActiveFilterPipeline(self) -> Any: + def setActiveFilterPipeline(self, name: str, /) -> None: """Sets the filter pipeline that shall be used for data processing. Argument is the name of the filter pipeline to activate.""" ... - def getParentPostGroup(self) -> Any: + def getParentPostGroup(self) -> object: """Returns the postprocessing group the filter is in (e.g. a pipeline or branch object). None is returned if not in any.""" ... - def getInputData(self) -> Any: - """Returns the dataset available at the filter's input. + def getInputData(self) -> object: + """ + Returns the dataset available at the filter's input. Note: Can lead to a full recompute of the whole pipeline, hence best to call this only in "execute", where the user expects long calculation cycles. """ ... - def getInputVectorFields(self) -> Any: - """Returns the names of all vector fields available on this filter's input. + def getInputVectorFields(self) -> list[str]: + """ + Returns the names of all vector fields available on this filter's input. Note: Can lead to a full recompute of the whole pipeline, hence best to call this only in "execute", where the user expects long calculation cycles. """ ... - def getInputScalarFields(self) -> Any: - """Returns the names of all scalar fields available on this filter's input. + def getInputScalarFields(self) -> list[str]: + """ + Returns the names of all scalar fields available on this filter's input. Note: Can lead to a full recompute of the whole pipeline, hence best to call this only in "execute", where the user expects long calculation cycles. """ ... - def getOutputAlgorithm(self) -> Any: + def getOutputAlgorithm(self) -> vtkAlgorithm: """Returns the filters vtk algorithm currently used as output (the one generating the Data field). Note that the output algorithm may change depending on filter settings.""" ... diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index e3c0e95ff6..22eb53f624 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -2,12 +2,12 @@ from __future__ import annotations -from typing import Any +from typing import TypeAlias from Base.Metadata import export - from App.GeoFeature import GeoFeature +vtkDataSet: TypeAlias = object @export( Include="Mod/Fem/App/FemPostObject.h", @@ -23,18 +23,25 @@ class FemPostObject(GeoFeature): License: LGPL-2.1-or-later """ - def writeVTK(self) -> Any: - """writeVTK(filename) -> None - + def writeVTK(self, file_name: str, /) -> None: + """ Write data object to VTK file. filename: str - File extension is automatically detected from data type.""" - ... - - def getDataSet(self) -> Any: - """getDataset() -> vtkDataSet - - Returns the current output dataset. For normal filters this is equal to the objects Data property output. However, a pipelines Data property could store multiple frames, and hence Data can be of type vtkCompositeData, which is not a vtkDataset. To simplify implementations this function always returns a vtkDataSet, and for a pipeline it will be the dataset of the currently selected frame. Note that the returned value could be None, if no data is set at all. + File extension is automatically detected from data type. + """ + ... + + def getDataSet(self) -> vtkDataSet: + """ + Returns the current output dataset. + For normal filters this is equal to the objects Data property output. + However, a pipelines Data property could store multiple frames, and hence + Data can be of type vtkCompositeData, which is not a vtkDataset. + + To simplify implementations this function always returns a vtkDataSet, + and for a pipeline it will be the dataset of the currently selected frame. + + Note that the returned value could be None, if no data is set at all. """ ... diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index aba0bf7a97..073d50a2a2 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -2,12 +2,14 @@ from __future__ import annotations -from typing import Any +from typing import Any, overload, TypeAlias from Base.Metadata import export - +from Base.Unit import Unit from Fem.FemPostObject import FemPostObject +from App.DocumentObject import DocumentObject +vtkAlgorithm: TypeAlias = object @export( Include="Mod/Fem/App/FemPostPipeline.h", @@ -23,52 +25,83 @@ class FemPostPipeline(FemPostObject): License: LGPL-2.1-or-later """ - def read(self) -> Any: - """read(filepath) - read([filepaths], [values], unit, frame_type) + @overload + def read(self, file_name: str, /) -> None: ... - Reads in a single vtk file or creates a multiframe result by reading in multiple result files. If multiframe is wanted, 4 argumenhts are needed: + @overload + def read( + self, + files: list[str] | tuple[str], + values: list[int] | tuple[int], + unit: Unit, + frame_type: str, + /, + ) -> None: ... + + def read(self, *args) -> None: + """ + Reads in a single vtk file or creates a multiframe result by reading in multiple result files. + + If multiframe is wanted, 4 argumenhts are needed: 1. List of result files each being one frame, 2. List of values valid for each frame (e.g. [s] if time data), 3. the unit of the value as FreeCAD.Units.Unit, - 4. the Description of the frame type""" + 4. the Description of the frame type + """ ... - def scale(self) -> Any: + def scale(self, scale: float, /) -> None: """scale the points of a loaded vtk file""" ... - def load(self) -> Any: - """load(result_object) - load([result_objects], [values], unit, frame_type) + @overload + def load(self, obj: DocumentObject, /) -> None: ... - Load a single result object or create a multiframe result by loading multiple result frames. If multiframe is wanted, 4 argumenhts are needed: - 1. List of result files each being one frame, + @overload + def load( + self, + result: list[DocumentObject] | tuple[DocumentObject], + values: list[float] | tuple[float], + unit: Unit, + frame_type: str, + /, + ) -> None: ... + + def load(self, *args) -> Any: + """ + Load a single result object or create a multiframe result by loading multiple result frames. + + If multiframe is wanted, 4 argumenhts are needed: + 1. List of result objects each being one frame, 2. List of values valid for each frame (e.g. [s] if time data), 3. the unit of the value as FreeCAD.Units.Unit, - 4. the Description of the frame type""" + 4. the Description of the frame type + """ ... - def getFilter(self) -> Any: + def getFilter(self) -> list[object]: """Returns all filters, that this pipeline uses (non recursive, result does not contain branch child filters)""" ... - def recomputeChildren(self) -> Any: + def recomputeChildren(self) -> None: """Recomputes all children of the pipeline""" ... - def getLastPostObject(self) -> Any: + def getLastPostObject(self) -> DocumentObject | None: """Get the last post-processing object""" ... - def holdsPostObject(self) -> Any: + def holdsPostObject(self, obj: DocumentObject, /) -> bool: """Check if this pipeline holds a given post-processing object""" ... - def renameArrays(self) -> Any: + def renameArrays(self, names: dict[str, str], /) -> None: """Change name of data arrays""" ... - def getOutputAlgorithm(self) -> Any: - """Returns the pipeline vtk algorithm, which generates the data passed to the pipelines filters. Note that the output algorithm may change depending on pipeline settings.""" + def getOutputAlgorithm(self) -> vtkAlgorithm: + """Returns the pipeline vtk algorithm, which generates the data passed to the pipelines filters. + + Note that the output algorithm may change depending on pipeline settings. + """ ... diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index f4fc527a68..013a272619 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -21,17 +21,17 @@ class ViewProviderFemConstraint(ViewProviderGeometryObject): License: LGPL-2.1-or-later """ - def loadSymbol(self) -> Any: - """loadSymbol(filename) -> None - + def loadSymbol(self, file_name: str, /) -> Any: + """ Load constraint symbol from Open Inventor file. The file structure should be as follows: A separator containing a separator with the symbol used in multiple copies at points on the surface and an optional separator with a symbol excluded from multiple copies. - filename : str - Open Inventor file.""" + file_name : str + Open Inventor file. + """ ... SymbolNode: Final[Any] From 5e343b0b99038f15527eb05bf46c5bf96b7b8bb1 Mon Sep 17 00:00:00 2001 From: Frank Martinez Date: Sat, 18 Oct 2025 09:37:05 -0500 Subject: [PATCH 19/20] [License] Fix pyi license headers. --- src/App/ApplicationDirectories.pyi | 2 +- src/App/ComplexGeoData.pyi | 2 +- src/App/Document.pyi | 2 +- src/App/DocumentObject.pyi | 2 +- src/App/DocumentObjectExtension.pyi | 2 +- src/App/DocumentObjectGroup.pyi | 2 +- src/App/Extension.pyi | 2 +- src/App/ExtensionContainer.pyi | 2 +- src/App/GeoFeature.pyi | 2 +- src/App/GeoFeatureGroupExtension.pyi | 2 +- src/App/GroupExtension.pyi | 2 +- src/App/LinkBaseExtension.pyi | 2 +- src/App/Material.pyi | 2 +- src/App/MeasureManager.pyi | 2 +- src/App/Metadata.pyi | 2 +- src/App/OriginGroupExtension.pyi | 2 +- src/App/Part.pyi | 2 +- src/App/PropertyContainer.pyi | 2 +- src/App/StringHasher.pyi | 2 +- src/App/StringID.pyi | 2 +- src/App/SuppressibleExtension.pyi | 2 +- src/Base/Axis.pyi | 2 +- src/Base/BaseClass.pyi | 2 +- src/Base/BoundBox.pyi | 2 +- src/Base/CoordinateSystem.pyi | 2 +- src/Base/Matrix.pyi | 2 +- src/Base/Metadata.pyi | 2 +- src/Base/Persistence.pyi | 2 +- src/Base/Placement.pyi | 2 +- src/Base/Precision.pyi | 2 +- src/Base/PyObjectBase.pyi | 2 +- src/Base/Quantity.pyi | 2 +- src/Base/Rotation.pyi | 2 +- src/Base/Type.pyi | 2 +- src/Base/Unit.pyi | 2 +- src/Base/Vector.pyi | 2 +- src/Gui/AxisOrigin.pyi | 2 +- src/Gui/Command.pyi | 2 +- src/Gui/Document.pyi | 2 +- src/Gui/LinkView.pyi | 2 +- src/Gui/PythonWorkbench.pyi | 2 +- src/Gui/ViewProvider.pyi | 2 +- src/Gui/ViewProviderDocumentObject.pyi | 2 +- src/Gui/ViewProviderExtension.pyi | 2 +- src/Gui/ViewProviderGeometryObject.pyi | 2 +- src/Gui/ViewProviderLink.pyi | 2 +- src/Gui/Workbench.pyi | 2 +- src/Mod/Assembly/App/AssemblyLink.pyi | 2 +- src/Mod/Assembly/App/AssemblyObject.pyi | 2 +- src/Mod/Assembly/App/BomGroup.pyi | 2 +- src/Mod/Assembly/App/BomObject.pyi | 2 +- src/Mod/Assembly/App/JointGroup.pyi | 2 +- src/Mod/Assembly/App/SimulationGroup.pyi | 2 +- src/Mod/Assembly/App/ViewGroup.pyi | 2 +- src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 2 +- src/Mod/CAM/PathSimulator/App/PathSim.pyi | 2 +- src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 2 +- src/Mod/Fem/App/FemMesh.pyi | 2 +- src/Mod/Fem/App/FemPostBranchFilter.pyi | 2 +- src/Mod/Fem/App/FemPostFilter.pyi | 2 +- src/Mod/Fem/App/FemPostObject.pyi | 2 +- src/Mod/Fem/App/FemPostPipeline.pyi | 2 +- src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 2 +- src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 2 +- src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 2 +- src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi | 2 +- src/Mod/Import/App/StepShape.pyi | 2 +- src/Mod/Material/App/Array2D.pyi | 2 +- src/Mod/Material/App/Array3D.pyi | 2 +- src/Mod/Material/App/Material.pyi | 2 +- src/Mod/Material/App/MaterialFilter.pyi | 2 +- src/Mod/Material/App/MaterialFilterOptions.pyi | 2 +- src/Mod/Material/App/MaterialLibrary.pyi | 2 +- src/Mod/Material/App/MaterialManager.pyi | 2 +- src/Mod/Material/App/MaterialProperty.pyi | 2 +- src/Mod/Material/App/Model.pyi | 2 +- src/Mod/Material/App/ModelManager.pyi | 2 +- src/Mod/Material/App/ModelProperty.pyi | 2 +- src/Mod/Material/App/UUIDs.pyi | 2 +- src/Mod/Material/Gui/MaterialTreeWidget.pyi | 2 +- src/Mod/Measure/App/MeasureBase.pyi | 2 +- src/Mod/Measure/App/Measurement.pyi | 2 +- src/Mod/Measure/Gui/QuickMeasure.pyi | 2 +- 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 | 2 +- src/Mod/Mesh/App/MeshPoint.pyi | 2 +- src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 2 +- src/Mod/Part/App/Arc.pyi | 2 +- src/Mod/Part/App/ArcOfCircle.pyi | 2 +- src/Mod/Part/App/ArcOfConic.pyi | 2 +- src/Mod/Part/App/ArcOfEllipse.pyi | 2 +- src/Mod/Part/App/ArcOfHyperbola.pyi | 2 +- src/Mod/Part/App/ArcOfParabola.pyi | 2 +- src/Mod/Part/App/AttachEngine.pyi | 2 +- src/Mod/Part/App/AttachExtension.pyi | 2 +- src/Mod/Part/App/BRepFeat/MakePrism.pyi | 2 +- src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi | 2 +- src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi | 2 +- src/Mod/Part/App/BSplineCurve.pyi | 2 +- src/Mod/Part/App/BSplineSurface.pyi | 2 +- src/Mod/Part/App/BezierCurve.pyi | 2 +- src/Mod/Part/App/BezierSurface.pyi | 2 +- src/Mod/Part/App/BodyBase.pyi | 2 +- src/Mod/Part/App/BoundedCurve.pyi | 2 +- src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 2 +- src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 2 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 2 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi | 2 +- src/Mod/Part/App/Circle.pyi | 2 +- src/Mod/Part/App/Cone.pyi | 2 +- src/Mod/Part/App/Conic.pyi | 2 +- src/Mod/Part/App/Cylinder.pyi | 2 +- src/Mod/Part/App/Ellipse.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 2 +- src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 2 +- src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi | 2 +- src/Mod/Part/App/Geom2d/BezierCurve2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Circle2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Conic2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Curve2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Geometry2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Hyperbola2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Line2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 2 +- src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi | 2 +- src/Mod/Part/App/Geom2d/Parabola2d.pyi | 2 +- src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi | 2 +- src/Mod/Part/App/GeomPlate/CurveConstraint.pyi | 2 +- src/Mod/Part/App/GeomPlate/PointConstraint.pyi | 2 +- src/Mod/Part/App/Geometry.pyi | 2 +- src/Mod/Part/App/GeometryBoolExtension.pyi | 2 +- src/Mod/Part/App/GeometryCurve.pyi | 2 +- src/Mod/Part/App/GeometryDoubleExtension.pyi | 2 +- src/Mod/Part/App/GeometryExtension.pyi | 2 +- src/Mod/Part/App/GeometryIntExtension.pyi | 2 +- src/Mod/Part/App/GeometryStringExtension.pyi | 2 +- src/Mod/Part/App/GeometrySurface.pyi | 2 +- src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 2 +- src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 2 +- src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 2 +- src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 2 +- src/Mod/Part/App/Hyperbola.pyi | 2 +- src/Mod/Part/App/Line.pyi | 2 +- src/Mod/Part/App/LineSegment.pyi | 2 +- src/Mod/Part/App/OffsetCurve.pyi | 2 +- src/Mod/Part/App/OffsetSurface.pyi | 2 +- src/Mod/Part/App/Parabola.pyi | 2 +- src/Mod/Part/App/Part2DObject.pyi | 2 +- src/Mod/Part/App/PartFeature.pyi | 2 +- src/Mod/Part/App/Plane.pyi | 2 +- src/Mod/Part/App/PlateSurface.pyi | 2 +- src/Mod/Part/App/Point.pyi | 2 +- src/Mod/Part/App/RectangularTrimmedSurface.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 2 +- src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 2 +- src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi | 2 +- src/Mod/Part/App/Sphere.pyi | 2 +- src/Mod/Part/App/SurfaceOfExtrusion.pyi | 2 +- src/Mod/Part/App/SurfaceOfRevolution.pyi | 2 +- src/Mod/Part/App/TopoShape.pyi | 2 +- src/Mod/Part/App/TopoShapeCompSolid.pyi | 2 +- src/Mod/Part/App/TopoShapeCompound.pyi | 2 +- src/Mod/Part/App/TopoShapeEdge.pyi | 2 +- src/Mod/Part/App/TopoShapeFace.pyi | 2 +- src/Mod/Part/App/TopoShapeShell.pyi | 2 +- src/Mod/Part/App/TopoShapeSolid.pyi | 2 +- src/Mod/Part/App/TopoShapeVertex.pyi | 2 +- src/Mod/Part/App/TopoShapeWire.pyi | 2 +- src/Mod/Part/App/Toroid.pyi | 2 +- src/Mod/Part/App/TrimmedCurve.pyi | 2 +- src/Mod/Part/Gui/ViewProviderPartExt.pyi | 2 +- src/Mod/PartDesign/App/Body.pyi | 2 +- src/Mod/PartDesign/App/Feature.pyi | 2 +- src/Mod/PartDesign/Gui/ViewProvider.pyi | 2 +- src/Mod/Points/App/Points.pyi | 2 +- src/Mod/Robot/App/Robot6Axis.pyi | 2 +- src/Mod/Robot/App/RobotObject.pyi | 2 +- src/Mod/Robot/App/Trajectory.pyi | 2 +- src/Mod/Robot/App/Waypoint.pyi | 2 +- src/Mod/Sketcher/App/Constraint.pyi | 2 +- src/Mod/Sketcher/App/ExternalGeometryExtension.pyi | 2 +- src/Mod/Sketcher/App/ExternalGeometryFacade.pyi | 2 +- src/Mod/Sketcher/App/GeometryFacade.pyi | 2 +- src/Mod/Sketcher/App/Sketch.pyi | 2 +- src/Mod/Sketcher/App/SketchGeometryExtension.pyi | 2 +- src/Mod/Sketcher/App/SketchObject.pyi | 2 +- src/Mod/Sketcher/App/SketchObjectSF.pyi | 2 +- src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi | 2 +- src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi | 2 +- src/Mod/Spreadsheet/App/PropertyRowHeights.pyi | 2 +- src/Mod/Spreadsheet/App/PropertySheet.pyi | 2 +- src/Mod/Spreadsheet/App/Sheet.pyi | 2 +- src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi | 2 +- src/Mod/Surface/App/Blending/BlendCurve.pyi | 2 +- src/Mod/Surface/App/Blending/BlendPoint.pyi | 2 +- src/Mod/TechDraw/App/CenterLine.pyi | 2 +- src/Mod/TechDraw/App/CosmeticEdge.pyi | 2 +- src/Mod/TechDraw/App/CosmeticExtension.pyi | 2 +- src/Mod/TechDraw/App/CosmeticVertex.pyi | 2 +- src/Mod/TechDraw/App/DrawBrokenView.pyi | 2 +- src/Mod/TechDraw/App/DrawGeomHatch.pyi | 2 +- src/Mod/TechDraw/App/DrawHatch.pyi | 2 +- src/Mod/TechDraw/App/DrawLeaderLine.pyi | 2 +- src/Mod/TechDraw/App/DrawPage.pyi | 2 +- src/Mod/TechDraw/App/DrawParametricTemplate.pyi | 2 +- src/Mod/TechDraw/App/DrawProjGroup.pyi | 2 +- src/Mod/TechDraw/App/DrawProjGroupItem.pyi | 2 +- src/Mod/TechDraw/App/DrawRichAnno.pyi | 2 +- src/Mod/TechDraw/App/DrawSVGTemplate.pyi | 2 +- src/Mod/TechDraw/App/DrawTemplate.pyi | 2 +- src/Mod/TechDraw/App/DrawTile.pyi | 2 +- src/Mod/TechDraw/App/DrawTileWeld.pyi | 2 +- src/Mod/TechDraw/App/DrawView.pyi | 2 +- src/Mod/TechDraw/App/DrawViewAnnotation.pyi | 2 +- src/Mod/TechDraw/App/DrawViewClip.pyi | 2 +- src/Mod/TechDraw/App/DrawViewCollection.pyi | 2 +- src/Mod/TechDraw/App/DrawViewDimExtent.pyi | 2 +- src/Mod/TechDraw/App/DrawViewDimension.pyi | 2 +- src/Mod/TechDraw/App/DrawViewPart.pyi | 2 +- src/Mod/TechDraw/App/DrawViewSymbol.pyi | 2 +- src/Mod/TechDraw/App/DrawWeldSymbol.pyi | 2 +- src/Mod/TechDraw/App/GeomFormat.pyi | 2 +- 243 files changed, 243 insertions(+), 243 deletions(-) diff --git a/src/App/ApplicationDirectories.pyi b/src/App/ApplicationDirectories.pyi index 6d44fdf069..757e37f50e 100644 --- a/src/App/ApplicationDirectories.pyi +++ b/src/App/ApplicationDirectories.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/ComplexGeoData.pyi b/src/App/ComplexGeoData.pyi index faa8286b4e..13bf419ea0 100644 --- a/src/App/ComplexGeoData.pyi +++ b/src/App/ComplexGeoData.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/Document.pyi b/src/App/Document.pyi index eb56f4fd69..177f81fcfb 100644 --- a/src/App/Document.pyi +++ b/src/App/Document.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/DocumentObject.pyi b/src/App/DocumentObject.pyi index 6d8710f44e..e2d55d92b3 100644 --- a/src/App/DocumentObject.pyi +++ b/src/App/DocumentObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/DocumentObjectExtension.pyi b/src/App/DocumentObjectExtension.pyi index 118e91cce3..bbe654e16c 100644 --- a/src/App/DocumentObjectExtension.pyi +++ b/src/App/DocumentObjectExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/DocumentObjectGroup.pyi b/src/App/DocumentObjectGroup.pyi index 69f11e278e..26e42ceb69 100644 --- a/src/App/DocumentObjectGroup.pyi +++ b/src/App/DocumentObjectGroup.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/Extension.pyi b/src/App/Extension.pyi index 282d53acca..34f92ce416 100644 --- a/src/App/Extension.pyi +++ b/src/App/Extension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/ExtensionContainer.pyi b/src/App/ExtensionContainer.pyi index ecf688249f..ec6d4453e2 100644 --- a/src/App/ExtensionContainer.pyi +++ b/src/App/ExtensionContainer.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/GeoFeature.pyi b/src/App/GeoFeature.pyi index 8a3f03a1c8..b0bd9fe99b 100644 --- a/src/App/GeoFeature.pyi +++ b/src/App/GeoFeature.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/GeoFeatureGroupExtension.pyi b/src/App/GeoFeatureGroupExtension.pyi index bff25d1e7f..eae2c1e9b0 100644 --- a/src/App/GeoFeatureGroupExtension.pyi +++ b/src/App/GeoFeatureGroupExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/GroupExtension.pyi b/src/App/GroupExtension.pyi index 3b075862ed..79cbbd08fb 100644 --- a/src/App/GroupExtension.pyi +++ b/src/App/GroupExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/LinkBaseExtension.pyi b/src/App/LinkBaseExtension.pyi index ded2268b6e..8bd15166ec 100644 --- a/src/App/LinkBaseExtension.pyi +++ b/src/App/LinkBaseExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/Material.pyi b/src/App/Material.pyi index 457a44cfdb..afd20a95d8 100644 --- a/src/App/Material.pyi +++ b/src/App/Material.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/MeasureManager.pyi b/src/App/MeasureManager.pyi index a0267f0bfb..3b0a2136b5 100644 --- a/src/App/MeasureManager.pyi +++ b/src/App/MeasureManager.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/Metadata.pyi b/src/App/Metadata.pyi index 14ab91b62f..6c0c62771b 100644 --- a/src/App/Metadata.pyi +++ b/src/App/Metadata.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/OriginGroupExtension.pyi b/src/App/OriginGroupExtension.pyi index 22c4679428..dafd346ca7 100644 --- a/src/App/OriginGroupExtension.pyi +++ b/src/App/OriginGroupExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/Part.pyi b/src/App/Part.pyi index 0076cdc971..1d5af0a378 100644 --- a/src/App/Part.pyi +++ b/src/App/Part.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/PropertyContainer.pyi b/src/App/PropertyContainer.pyi index a3e4ad8f5f..693d2843c1 100644 --- a/src/App/PropertyContainer.pyi +++ b/src/App/PropertyContainer.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/StringHasher.pyi b/src/App/StringHasher.pyi index fb8e38a1ad..14cddba95e 100644 --- a/src/App/StringHasher.pyi +++ b/src/App/StringHasher.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/StringID.pyi b/src/App/StringID.pyi index dd4681f210..f072a318a8 100644 --- a/src/App/StringID.pyi +++ b/src/App/StringID.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/App/SuppressibleExtension.pyi b/src/App/SuppressibleExtension.pyi index 4719edf857..9b278cac74 100644 --- a/src/App/SuppressibleExtension.pyi +++ b/src/App/SuppressibleExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index 183a671d45..a8670a66cc 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/BaseClass.pyi b/src/Base/BaseClass.pyi index 94ca026794..4bc22d4d58 100644 --- a/src/Base/BaseClass.pyi +++ b/src/Base/BaseClass.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/BoundBox.pyi b/src/Base/BoundBox.pyi index 8a50042bf9..d23514bc2b 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/CoordinateSystem.pyi b/src/Base/CoordinateSystem.pyi index a7a8a1eeac..f549cbdc0a 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Matrix.pyi b/src/Base/Matrix.pyi index 6e9fce63ff..063cf913ba 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Metadata.pyi b/src/Base/Metadata.pyi index 4873852cb5..99d5bd9829 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations """ diff --git a/src/Base/Persistence.pyi b/src/Base/Persistence.pyi index 83ef20f3a6..8d9c14ce08 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Placement.pyi b/src/Base/Placement.pyi index 1344ee1439..510183f3fb 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Precision.pyi b/src/Base/Precision.pyi index b5502b1d16..51f186d450 100644 --- a/src/Base/Precision.pyi +++ b/src/Base/Precision.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/PyObjectBase.pyi b/src/Base/PyObjectBase.pyi index fb9d63780d..0cd5591db3 100644 --- a/src/Base/PyObjectBase.pyi +++ b/src/Base/PyObjectBase.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Quantity.pyi b/src/Base/Quantity.pyi index a6ba05707f..b0bbabe8fa 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index c9af2bd5f8..f8ef1e5d75 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Type.pyi b/src/Base/Type.pyi index f838830ef9..512e777262 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Unit.pyi b/src/Base/Unit.pyi index c6d18244d7..817d426fda 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index a68626367c..ee19e80fde 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/AxisOrigin.pyi b/src/Gui/AxisOrigin.pyi index d3bf6bd874..50e9e71043 100644 --- a/src/Gui/AxisOrigin.pyi +++ b/src/Gui/AxisOrigin.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index 144bdcab9f..7b1da9657e 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index 0f0561fcc5..60088e6831 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index 9f6feeffbf..cac3c867b7 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/PythonWorkbench.pyi b/src/Gui/PythonWorkbench.pyi index e4e80ccd1d..a0c274b3b3 100644 --- a/src/Gui/PythonWorkbench.pyi +++ b/src/Gui/PythonWorkbench.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 9d192f7a21..3a210e4b77 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/ViewProviderDocumentObject.pyi b/src/Gui/ViewProviderDocumentObject.pyi index 721caa2059..5b1402debf 100644 --- a/src/Gui/ViewProviderDocumentObject.pyi +++ b/src/Gui/ViewProviderDocumentObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/ViewProviderExtension.pyi b/src/Gui/ViewProviderExtension.pyi index 35a4f55ba3..513162549f 100644 --- a/src/Gui/ViewProviderExtension.pyi +++ b/src/Gui/ViewProviderExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/ViewProviderGeometryObject.pyi b/src/Gui/ViewProviderGeometryObject.pyi index dfc5dd7c2f..6cf35a63ad 100644 --- a/src/Gui/ViewProviderGeometryObject.pyi +++ b/src/Gui/ViewProviderGeometryObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/ViewProviderLink.pyi b/src/Gui/ViewProviderLink.pyi index 16322fdc94..ac182f50d8 100644 --- a/src/Gui/ViewProviderLink.pyi +++ b/src/Gui/ViewProviderLink.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Gui/Workbench.pyi b/src/Gui/Workbench.pyi index 9d261318c6..bce115662c 100644 --- a/src/Gui/Workbench.pyi +++ b/src/Gui/Workbench.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index a9f4290283..e5e9266421 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index 3d71ffcc57..fbcae0fcd8 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index 220d3e76a6..b54941a3d6 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index 2f5709f251..12a1ca69b9 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index 1604d4afa0..5a0389586b 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index b33e08cb9e..15f288147d 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index 63c3e990f8..310ca1da1a 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 47eeecea52..97f08b7aa5 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 79c7b27627..3f4c25dfc0 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index dd2d55e7e8..236e4fc6cf 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index d43b06bdab..d375ada75d 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index a756469e5a..599319c49f 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/App/FemPostFilter.pyi b/src/Mod/Fem/App/FemPostFilter.pyi index e4e606d9d5..459f9520f6 100644 --- a/src/Mod/Fem/App/FemPostFilter.pyi +++ b/src/Mod/Fem/App/FemPostFilter.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/App/FemPostObject.pyi b/src/Mod/Fem/App/FemPostObject.pyi index 22eb53f624..1ebf4f0ef0 100644 --- a/src/Mod/Fem/App/FemPostObject.pyi +++ b/src/Mod/Fem/App/FemPostObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 073d50a2a2..0c5065dd37 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index 013a272619..cdd5f15d41 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index 522c140e6a..dec1c29aa2 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index e35842681b..d8c3f8707d 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index 79216e15bf..b0b59b867a 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 2e584a28b3..283ae67778 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/Array2D.pyi b/src/Mod/Material/App/Array2D.pyi index 461df2338d..ba55362b41 100644 --- a/src/Mod/Material/App/Array2D.pyi +++ b/src/Mod/Material/App/Array2D.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/Array3D.pyi b/src/Mod/Material/App/Array3D.pyi index b830905889..dd7cbe5b3b 100644 --- a/src/Mod/Material/App/Array3D.pyi +++ b/src/Mod/Material/App/Array3D.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/Material.pyi b/src/Mod/Material/App/Material.pyi index 7711b01e93..53a0f6b721 100644 --- a/src/Mod/Material/App/Material.pyi +++ b/src/Mod/Material/App/Material.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/MaterialFilter.pyi b/src/Mod/Material/App/MaterialFilter.pyi index c4d017e86c..4a5538cd91 100644 --- a/src/Mod/Material/App/MaterialFilter.pyi +++ b/src/Mod/Material/App/MaterialFilter.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/MaterialFilterOptions.pyi b/src/Mod/Material/App/MaterialFilterOptions.pyi index e8ba80a1b4..273525dc3c 100644 --- a/src/Mod/Material/App/MaterialFilterOptions.pyi +++ b/src/Mod/Material/App/MaterialFilterOptions.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/MaterialLibrary.pyi b/src/Mod/Material/App/MaterialLibrary.pyi index dd93389763..853688ec8d 100644 --- a/src/Mod/Material/App/MaterialLibrary.pyi +++ b/src/Mod/Material/App/MaterialLibrary.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/MaterialManager.pyi b/src/Mod/Material/App/MaterialManager.pyi index ac1dc030be..ade770ed55 100644 --- a/src/Mod/Material/App/MaterialManager.pyi +++ b/src/Mod/Material/App/MaterialManager.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/MaterialProperty.pyi b/src/Mod/Material/App/MaterialProperty.pyi index ce2261fe70..66cb56c496 100644 --- a/src/Mod/Material/App/MaterialProperty.pyi +++ b/src/Mod/Material/App/MaterialProperty.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/Model.pyi b/src/Mod/Material/App/Model.pyi index 314cdff512..496ea2d4f5 100644 --- a/src/Mod/Material/App/Model.pyi +++ b/src/Mod/Material/App/Model.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/ModelManager.pyi b/src/Mod/Material/App/ModelManager.pyi index d22b234432..505c542274 100644 --- a/src/Mod/Material/App/ModelManager.pyi +++ b/src/Mod/Material/App/ModelManager.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/ModelProperty.pyi b/src/Mod/Material/App/ModelProperty.pyi index 186f027f43..f61f7a6204 100644 --- a/src/Mod/Material/App/ModelProperty.pyi +++ b/src/Mod/Material/App/ModelProperty.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/App/UUIDs.pyi b/src/Mod/Material/App/UUIDs.pyi index 277ee356e9..62d0e548e2 100644 --- a/src/Mod/Material/App/UUIDs.pyi +++ b/src/Mod/Material/App/UUIDs.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Material/Gui/MaterialTreeWidget.pyi b/src/Mod/Material/Gui/MaterialTreeWidget.pyi index 0ea163f69e..2bc85e4e12 100644 --- a/src/Mod/Material/Gui/MaterialTreeWidget.pyi +++ b/src/Mod/Material/Gui/MaterialTreeWidget.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index 577e537a81..af43cd33d0 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index fc67232999..341da5c1ee 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index 067c5dc151..e1d594db17 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 28f05a20e9..68d3271e76 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 99bb48aad5..6738fee35b 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index 810c6496c5..72a7129ce8 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 31f610220f..6c30eff115 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index 318938fa34..a1faca5804 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index 2bbba6ea8e..18442503e1 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Arc.pyi b/src/Mod/Part/App/Arc.pyi index c3abf24753..2c72b051c1 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ArcOfCircle.pyi b/src/Mod/Part/App/ArcOfCircle.pyi index cc6d4a7e6e..360d0f54d2 100644 --- a/src/Mod/Part/App/ArcOfCircle.pyi +++ b/src/Mod/Part/App/ArcOfCircle.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ArcOfConic.pyi b/src/Mod/Part/App/ArcOfConic.pyi index 469d53dda8..0d1ecf9841 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ArcOfEllipse.pyi b/src/Mod/Part/App/ArcOfEllipse.pyi index fc18f69d3a..5eb58edbbc 100644 --- a/src/Mod/Part/App/ArcOfEllipse.pyi +++ b/src/Mod/Part/App/ArcOfEllipse.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ArcOfHyperbola.pyi b/src/Mod/Part/App/ArcOfHyperbola.pyi index 021e3f6418..b70cabd42a 100644 --- a/src/Mod/Part/App/ArcOfHyperbola.pyi +++ b/src/Mod/Part/App/ArcOfHyperbola.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ArcOfParabola.pyi b/src/Mod/Part/App/ArcOfParabola.pyi index da918281cf..839a4995c5 100644 --- a/src/Mod/Part/App/ArcOfParabola.pyi +++ b/src/Mod/Part/App/ArcOfParabola.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/AttachEngine.pyi b/src/Mod/Part/App/AttachEngine.pyi index f565b92c97..6c58704527 100644 --- a/src/Mod/Part/App/AttachEngine.pyi +++ b/src/Mod/Part/App/AttachEngine.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/AttachExtension.pyi b/src/Mod/Part/App/AttachExtension.pyi index aa3807811e..0dd9984655 100644 --- a/src/Mod/Part/App/AttachExtension.pyi +++ b/src/Mod/Part/App/AttachExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BRepFeat/MakePrism.pyi b/src/Mod/Part/App/BRepFeat/MakePrism.pyi index 01f4fa97f1..5138c167b9 100644 --- a/src/Mod/Part/App/BRepFeat/MakePrism.pyi +++ b/src/Mod/Part/App/BRepFeat/MakePrism.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi index 5a9194eef3..a41e6ca4be 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi index 020dcc84d2..503711a302 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index af36aa95f5..d7caab5356 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BSplineSurface.pyi b/src/Mod/Part/App/BSplineSurface.pyi index bb6b0bdbdc..df216fb7c0 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BezierCurve.pyi b/src/Mod/Part/App/BezierCurve.pyi index 1d55114f7d..804cf5c6fc 100644 --- a/src/Mod/Part/App/BezierCurve.pyi +++ b/src/Mod/Part/App/BezierCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index 32e7aee21f..39019cf1fd 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BodyBase.pyi b/src/Mod/Part/App/BodyBase.pyi index 52cacd1671..7d86d80d03 100644 --- a/src/Mod/Part/App/BodyBase.pyi +++ b/src/Mod/Part/App/BodyBase.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/BoundedCurve.pyi b/src/Mod/Part/App/BoundedCurve.pyi index 3da21fc5f2..c3c0965e5e 100644 --- a/src/Mod/Part/App/BoundedCurve.pyi +++ b/src/Mod/Part/App/BoundedCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index c5078b2510..b0bbe7fc8d 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi index 3dc5847662..3572f1e5c2 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi index d08d9b549e..91ba03133c 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi index 8e92debb7e..482c7e11db 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Circle.pyi b/src/Mod/Part/App/Circle.pyi index 85baff9780..7c0768f562 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Cone.pyi b/src/Mod/Part/App/Cone.pyi index 478c187222..1b099f2bac 100644 --- a/src/Mod/Part/App/Cone.pyi +++ b/src/Mod/Part/App/Cone.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Conic.pyi b/src/Mod/Part/App/Conic.pyi index 5a54ce3cd9..3cbcfe274c 100644 --- a/src/Mod/Part/App/Conic.pyi +++ b/src/Mod/Part/App/Conic.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Cylinder.pyi b/src/Mod/Part/App/Cylinder.pyi index 52086d4b7a..75f6a73086 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Ellipse.pyi b/src/Mod/Part/App/Ellipse.pyi index 6fe65dcc56..6a14ae39ee 100644 --- a/src/Mod/Part/App/Ellipse.pyi +++ b/src/Mod/Part/App/Ellipse.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index c4b517af95..495698a5d3 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi index 04b1b21f2c..eaa16a4fce 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi index 98ac4c48fe..31fe585ca7 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index 2d48b2aa43..50559406e3 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index cc3d549fdd..ddaa706489 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi index 881c510b16..59f7cdfbce 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi index 0f4b748893..732caeede3 100644 --- a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Circle2d.pyi b/src/Mod/Part/App/Geom2d/Circle2d.pyi index 8a40a76e94..88625eaa07 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Conic2d.pyi b/src/Mod/Part/App/Geom2d/Conic2d.pyi index a6c377cfe1..10cb602dfd 100644 --- a/src/Mod/Part/App/Geom2d/Conic2d.pyi +++ b/src/Mod/Part/App/Geom2d/Conic2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Curve2d.pyi b/src/Mod/Part/App/Geom2d/Curve2d.pyi index 3c907ffc2d..f389d2a4ae 100644 --- a/src/Mod/Part/App/Geom2d/Curve2d.pyi +++ b/src/Mod/Part/App/Geom2d/Curve2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi index 7651041360..eda35b092a 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index a7e97724da..2a423ed193 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi index 852c1a7ee4..549538bca1 100644 --- a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Line2d.pyi b/src/Mod/Part/App/Geom2d/Line2d.pyi index 7863122f53..f7515eb117 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index ef4c562e4c..a3b5c6205c 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi index 5e25992320..b1ec72b215 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geom2d/Parabola2d.pyi b/src/Mod/Part/App/Geom2d/Parabola2d.pyi index 12bf13c961..39e56ad12f 100644 --- a/src/Mod/Part/App/Geom2d/Parabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Parabola2d.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi index 580b749813..1c9a1379c9 100644 --- a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi +++ b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi index cfd3bb2bac..da64f6ce92 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index 5400f3f4f8..a30d69b969 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Geometry.pyi b/src/Mod/Part/App/Geometry.pyi index 74ea9c6410..72265b63ef 100644 --- a/src/Mod/Part/App/Geometry.pyi +++ b/src/Mod/Part/App/Geometry.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometryBoolExtension.pyi b/src/Mod/Part/App/GeometryBoolExtension.pyi index 32e5a77c67..b09d91dd96 100644 --- a/src/Mod/Part/App/GeometryBoolExtension.pyi +++ b/src/Mod/Part/App/GeometryBoolExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index 32a31bff25..553a872164 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometryDoubleExtension.pyi b/src/Mod/Part/App/GeometryDoubleExtension.pyi index 34440e7ee1..4031272538 100644 --- a/src/Mod/Part/App/GeometryDoubleExtension.pyi +++ b/src/Mod/Part/App/GeometryDoubleExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometryExtension.pyi b/src/Mod/Part/App/GeometryExtension.pyi index 28ea73dfe4..85d8d3a404 100644 --- a/src/Mod/Part/App/GeometryExtension.pyi +++ b/src/Mod/Part/App/GeometryExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometryIntExtension.pyi b/src/Mod/Part/App/GeometryIntExtension.pyi index 9bc8041d6f..8c3260de15 100644 --- a/src/Mod/Part/App/GeometryIntExtension.pyi +++ b/src/Mod/Part/App/GeometryIntExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometryStringExtension.pyi b/src/Mod/Part/App/GeometryStringExtension.pyi index 47ac650fd4..85188f483f 100644 --- a/src/Mod/Part/App/GeometryStringExtension.pyi +++ b/src/Mod/Part/App/GeometryStringExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index ec256ae79c..29c0153a49 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index b3e1fabf10..c804cd5d1d 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index 488e87e118..d2dc847187 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index 71892e1293..17fd5598c1 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi index cd108875ec..a53e687a58 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index e8bc9c37c7..495a1ab6a6 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Line.pyi b/src/Mod/Part/App/Line.pyi index b5b4af8b31..a8703db4da 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/LineSegment.pyi b/src/Mod/Part/App/LineSegment.pyi index b8458da698..3d8a54c1f8 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/OffsetCurve.pyi b/src/Mod/Part/App/OffsetCurve.pyi index b64dcf6c93..34811cf0d8 100644 --- a/src/Mod/Part/App/OffsetCurve.pyi +++ b/src/Mod/Part/App/OffsetCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/OffsetSurface.pyi b/src/Mod/Part/App/OffsetSurface.pyi index b857180d6f..aaf06005e0 100644 --- a/src/Mod/Part/App/OffsetSurface.pyi +++ b/src/Mod/Part/App/OffsetSurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Parabola.pyi b/src/Mod/Part/App/Parabola.pyi index 3f0d379572..94bc93c8cf 100644 --- a/src/Mod/Part/App/Parabola.pyi +++ b/src/Mod/Part/App/Parabola.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Part2DObject.pyi b/src/Mod/Part/App/Part2DObject.pyi index da3b4f8a2b..2a973f46d3 100644 --- a/src/Mod/Part/App/Part2DObject.pyi +++ b/src/Mod/Part/App/Part2DObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/PartFeature.pyi b/src/Mod/Part/App/PartFeature.pyi index 1504b2e638..70579119f6 100644 --- a/src/Mod/Part/App/PartFeature.pyi +++ b/src/Mod/Part/App/PartFeature.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Plane.pyi b/src/Mod/Part/App/Plane.pyi index 0916bb3135..f21f10aadb 100644 --- a/src/Mod/Part/App/Plane.pyi +++ b/src/Mod/Part/App/Plane.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/PlateSurface.pyi b/src/Mod/Part/App/PlateSurface.pyi index a6b24a93e9..946413f9fa 100644 --- a/src/Mod/Part/App/PlateSurface.pyi +++ b/src/Mod/Part/App/PlateSurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Point.pyi b/src/Mod/Part/App/Point.pyi index 1769b265da..94da16a100 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/RectangularTrimmedSurface.pyi b/src/Mod/Part/App/RectangularTrimmedSurface.pyi index d0a0ced08b..cbd3417ced 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurface.pyi +++ b/src/Mod/Part/App/RectangularTrimmedSurface.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index a60a84cc89..0c676c4942 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi index 63a7a8ec5f..be8753a296 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi index 9ba4b5eca9..c19740fcfa 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi index 997313723c..0cee8752f5 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index ae2dd62257..11ba58beb6 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi index 78bfed768c..91aed38680 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi index 2382bfeb48..9742f2bbe0 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi index f84c92f12e..4937fe62c5 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi index 1e2827279c..89a857a9a7 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index 33479fc743..a36d4c5b7d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi index 42d3e7f5b9..37e492ebb6 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi index 4bc465d77b..f27a985a76 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi index a794a8e8e4..7c1ecf0f73 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi index a1d38628ba..497fd855d6 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 401f275411..53f2cdffce 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index 05a448a666..bcea75aca2 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi index 5fd469994e..7234f6d6e0 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index 7019e0f64b..48d780975f 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Sphere.pyi b/src/Mod/Part/App/Sphere.pyi index 6be8d3b9de..f54858d951 100644 --- a/src/Mod/Part/App/Sphere.pyi +++ b/src/Mod/Part/App/Sphere.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/SurfaceOfExtrusion.pyi b/src/Mod/Part/App/SurfaceOfExtrusion.pyi index ae65168ebf..93784c52e3 100644 --- a/src/Mod/Part/App/SurfaceOfExtrusion.pyi +++ b/src/Mod/Part/App/SurfaceOfExtrusion.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/SurfaceOfRevolution.pyi b/src/Mod/Part/App/SurfaceOfRevolution.pyi index c2a32b51e7..e58f12938f 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShape.pyi b/src/Mod/Part/App/TopoShape.pyi index 937abc3ac7..9fcfb60199 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeCompSolid.pyi b/src/Mod/Part/App/TopoShapeCompSolid.pyi index b573903fb2..c0861bd8c9 100644 --- a/src/Mod/Part/App/TopoShapeCompSolid.pyi +++ b/src/Mod/Part/App/TopoShapeCompSolid.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeCompound.pyi b/src/Mod/Part/App/TopoShapeCompound.pyi index d48ef7dda4..3047584775 100644 --- a/src/Mod/Part/App/TopoShapeCompound.pyi +++ b/src/Mod/Part/App/TopoShapeCompound.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeEdge.pyi b/src/Mod/Part/App/TopoShapeEdge.pyi index afd929b94f..bf27bd80d5 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 63ccc93f34..1a819d740e 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeShell.pyi b/src/Mod/Part/App/TopoShapeShell.pyi index 5eab7d210a..ce30f1b1de 100644 --- a/src/Mod/Part/App/TopoShapeShell.pyi +++ b/src/Mod/Part/App/TopoShapeShell.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index cb9f5d3d86..81a8722924 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeVertex.pyi b/src/Mod/Part/App/TopoShapeVertex.pyi index 7d298102ea..9c0461d6e7 100644 --- a/src/Mod/Part/App/TopoShapeVertex.pyi +++ b/src/Mod/Part/App/TopoShapeVertex.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index 849957dd49..49eea8f24b 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/Toroid.pyi b/src/Mod/Part/App/Toroid.pyi index 12b7c6bb63..68d97590aa 100644 --- a/src/Mod/Part/App/Toroid.pyi +++ b/src/Mod/Part/App/Toroid.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/App/TrimmedCurve.pyi b/src/Mod/Part/App/TrimmedCurve.pyi index 1ce252e9a5..e26e0b199d 100644 --- a/src/Mod/Part/App/TrimmedCurve.pyi +++ b/src/Mod/Part/App/TrimmedCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Part/Gui/ViewProviderPartExt.pyi b/src/Mod/Part/Gui/ViewProviderPartExt.pyi index 5c8b3b0716..92997a3298 100644 --- a/src/Mod/Part/Gui/ViewProviderPartExt.pyi +++ b/src/Mod/Part/Gui/ViewProviderPartExt.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index d9bb8e4070..c360704232 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/PartDesign/App/Feature.pyi b/src/Mod/PartDesign/App/Feature.pyi index 22308d0ffe..b503667040 100644 --- a/src/Mod/PartDesign/App/Feature.pyi +++ b/src/Mod/PartDesign/App/Feature.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/PartDesign/Gui/ViewProvider.pyi b/src/Mod/PartDesign/Gui/ViewProvider.pyi index d5292c3383..20a6669510 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 5b05d62fe8..072d8cb11b 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index f4f7db2665..19818fee00 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index 05602a99e1..007b24941c 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index b528494c65..54ac07cb63 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index b655da7d48..2cc35d2b0a 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/Constraint.pyi b/src/Mod/Sketcher/App/Constraint.pyi index fb17f65cf0..7c1fc572af 100644 --- a/src/Mod/Sketcher/App/Constraint.pyi +++ b/src/Mod/Sketcher/App/Constraint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi index 07ecb36a67..e8c7db262b 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi index 0e2104ea16..4e5cfef41b 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/GeometryFacade.pyi b/src/Mod/Sketcher/App/GeometryFacade.pyi index 4249aa5848..648fb5493d 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.pyi +++ b/src/Mod/Sketcher/App/GeometryFacade.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/Sketch.pyi b/src/Mod/Sketcher/App/Sketch.pyi index 31ef21fd1a..a7bfadaadb 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi index 8b766d5796..9e4079a2c5 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/SketchObject.pyi b/src/Mod/Sketcher/App/SketchObject.pyi index f7e573d090..858fb0cbf1 100644 --- a/src/Mod/Sketcher/App/SketchObject.pyi +++ b/src/Mod/Sketcher/App/SketchObject.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/App/SketchObjectSF.pyi b/src/Mod/Sketcher/App/SketchObjectSF.pyi index 6c360b3265..c7f24bf633 100644 --- a/src/Mod/Sketcher/App/SketchObjectSF.pyi +++ b/src/Mod/Sketcher/App/SketchObjectSF.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi index f0c8740f0b..d22c357da5 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index 8689a97272..6b244d55bf 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index c1bf6f3a16..7d50b61052 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index 7207e71bcc..de468f3d75 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index 82dd460022..e7b396aa15 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index e8085bc056..3c9fb6cef2 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index e394ae9ed8..c851fc7efb 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index 6f8d48b3c2..dd240c6bfc 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/CenterLine.pyi b/src/Mod/TechDraw/App/CenterLine.pyi index 515fe93084..177020767d 100644 --- a/src/Mod/TechDraw/App/CenterLine.pyi +++ b/src/Mod/TechDraw/App/CenterLine.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/CosmeticEdge.pyi b/src/Mod/TechDraw/App/CosmeticEdge.pyi index 753a59cac9..e6dcf04c2c 100644 --- a/src/Mod/TechDraw/App/CosmeticEdge.pyi +++ b/src/Mod/TechDraw/App/CosmeticEdge.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/CosmeticExtension.pyi b/src/Mod/TechDraw/App/CosmeticExtension.pyi index c16660ea68..cd713a0a77 100644 --- a/src/Mod/TechDraw/App/CosmeticExtension.pyi +++ b/src/Mod/TechDraw/App/CosmeticExtension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/CosmeticVertex.pyi b/src/Mod/TechDraw/App/CosmeticVertex.pyi index 35747eda04..f5b26a4c4f 100644 --- a/src/Mod/TechDraw/App/CosmeticVertex.pyi +++ b/src/Mod/TechDraw/App/CosmeticVertex.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawBrokenView.pyi b/src/Mod/TechDraw/App/DrawBrokenView.pyi index d73fb6534c..08ec3a064a 100644 --- a/src/Mod/TechDraw/App/DrawBrokenView.pyi +++ b/src/Mod/TechDraw/App/DrawBrokenView.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawGeomHatch.pyi b/src/Mod/TechDraw/App/DrawGeomHatch.pyi index d035fee397..c5cf8f4a0b 100644 --- a/src/Mod/TechDraw/App/DrawGeomHatch.pyi +++ b/src/Mod/TechDraw/App/DrawGeomHatch.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawHatch.pyi b/src/Mod/TechDraw/App/DrawHatch.pyi index 20bfbdb2e8..c0d6955ccc 100644 --- a/src/Mod/TechDraw/App/DrawHatch.pyi +++ b/src/Mod/TechDraw/App/DrawHatch.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawLeaderLine.pyi b/src/Mod/TechDraw/App/DrawLeaderLine.pyi index 5ce984716c..760455f91c 100644 --- a/src/Mod/TechDraw/App/DrawLeaderLine.pyi +++ b/src/Mod/TechDraw/App/DrawLeaderLine.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawPage.pyi b/src/Mod/TechDraw/App/DrawPage.pyi index 40fcd79379..ba0667774a 100644 --- a/src/Mod/TechDraw/App/DrawPage.pyi +++ b/src/Mod/TechDraw/App/DrawPage.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi index cda154e03c..b4afc2103d 100644 --- a/src/Mod/TechDraw/App/DrawParametricTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawParametricTemplate.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawProjGroup.pyi b/src/Mod/TechDraw/App/DrawProjGroup.pyi index d2aa509ce5..948e4b1563 100644 --- a/src/Mod/TechDraw/App/DrawProjGroup.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroup.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi index 7d291d1d97..3a147263e1 100644 --- a/src/Mod/TechDraw/App/DrawProjGroupItem.pyi +++ b/src/Mod/TechDraw/App/DrawProjGroupItem.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawRichAnno.pyi b/src/Mod/TechDraw/App/DrawRichAnno.pyi index 7480d90486..438382592d 100644 --- a/src/Mod/TechDraw/App/DrawRichAnno.pyi +++ b/src/Mod/TechDraw/App/DrawRichAnno.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi index debcd7a511..095e27c73c 100644 --- a/src/Mod/TechDraw/App/DrawSVGTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawSVGTemplate.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawTemplate.pyi b/src/Mod/TechDraw/App/DrawTemplate.pyi index d3762913c5..01ebfcc497 100644 --- a/src/Mod/TechDraw/App/DrawTemplate.pyi +++ b/src/Mod/TechDraw/App/DrawTemplate.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawTile.pyi b/src/Mod/TechDraw/App/DrawTile.pyi index 01ca20aa2a..08ebfcf377 100644 --- a/src/Mod/TechDraw/App/DrawTile.pyi +++ b/src/Mod/TechDraw/App/DrawTile.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawTileWeld.pyi b/src/Mod/TechDraw/App/DrawTileWeld.pyi index 686dc2c0a2..aea72b50b5 100644 --- a/src/Mod/TechDraw/App/DrawTileWeld.pyi +++ b/src/Mod/TechDraw/App/DrawTileWeld.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawView.pyi b/src/Mod/TechDraw/App/DrawView.pyi index 43ce7cf8b4..d255f7d5d4 100644 --- a/src/Mod/TechDraw/App/DrawView.pyi +++ b/src/Mod/TechDraw/App/DrawView.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi index d88b4b38f9..b8cdc51ad1 100644 --- a/src/Mod/TechDraw/App/DrawViewAnnotation.pyi +++ b/src/Mod/TechDraw/App/DrawViewAnnotation.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewClip.pyi b/src/Mod/TechDraw/App/DrawViewClip.pyi index 9818cdb638..17a26c4bbb 100644 --- a/src/Mod/TechDraw/App/DrawViewClip.pyi +++ b/src/Mod/TechDraw/App/DrawViewClip.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewCollection.pyi b/src/Mod/TechDraw/App/DrawViewCollection.pyi index 35442c74ea..643dcc35aa 100644 --- a/src/Mod/TechDraw/App/DrawViewCollection.pyi +++ b/src/Mod/TechDraw/App/DrawViewCollection.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi index c54f48e49d..381dc0db1c 100644 --- a/src/Mod/TechDraw/App/DrawViewDimExtent.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimExtent.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewDimension.pyi b/src/Mod/TechDraw/App/DrawViewDimension.pyi index 910e156a7d..80db3445f3 100644 --- a/src/Mod/TechDraw/App/DrawViewDimension.pyi +++ b/src/Mod/TechDraw/App/DrawViewDimension.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewPart.pyi b/src/Mod/TechDraw/App/DrawViewPart.pyi index b80e4d9a75..5a7126a079 100644 --- a/src/Mod/TechDraw/App/DrawViewPart.pyi +++ b/src/Mod/TechDraw/App/DrawViewPart.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawViewSymbol.pyi b/src/Mod/TechDraw/App/DrawViewSymbol.pyi index 1bddc286d2..3c7efd1eb0 100644 --- a/src/Mod/TechDraw/App/DrawViewSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawViewSymbol.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi index 3bb3fcddd9..9749f70e6d 100644 --- a/src/Mod/TechDraw/App/DrawWeldSymbol.pyi +++ b/src/Mod/TechDraw/App/DrawWeldSymbol.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations diff --git a/src/Mod/TechDraw/App/GeomFormat.pyi b/src/Mod/TechDraw/App/GeomFormat.pyi index 5eb35e4c69..5ba5b4ea39 100644 --- a/src/Mod/TechDraw/App/GeomFormat.pyi +++ b/src/Mod/TechDraw/App/GeomFormat.pyi @@ -1,4 +1,4 @@ -# SPDX-License: LGPL-2.1-or-later +# SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations From 0e5491ca6751d37faaf4803e20e44bf0059bc78c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Tue, 11 Nov 2025 19:34:15 +0000 Subject: [PATCH 20/20] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- src/Base/Axis.pyi | 1 - src/Base/BaseClass.pyi | 1 - src/Base/BoundBox.pyi | 65 +++++-------------- src/Base/CoordinateSystem.pyi | 1 - src/Base/Matrix.pyi | 30 ++------- src/Base/Metadata.pyi | 15 +---- src/Base/Persistence.pyi | 1 - src/Base/Placement.pyi | 9 +-- src/Base/Precision.pyi | 1 - src/Base/PyObjectBase.pyi | 1 - src/Base/Quantity.pyi | 33 +++------- src/Base/Rotation.pyi | 1 - src/Base/Type.pyi | 7 +- src/Base/Unit.pyi | 20 ++---- src/Base/Vector.pyi | 1 - src/Gui/AxisOrigin.pyi | 2 - src/Gui/Command.pyi | 1 - src/Gui/Document.pyi | 2 - src/Gui/LinkView.pyi | 50 ++++---------- src/Gui/Navigation/NavigationStyle.pyi | 5 +- src/Gui/PythonWorkbench.pyi | 1 - src/Gui/Selection/SelectionObject.pyi | 4 +- src/Gui/ViewProvider.pyi | 2 - src/Gui/ViewProviderDocumentObject.pyi | 2 - src/Gui/ViewProviderExtension.pyi | 1 - src/Gui/ViewProviderGeometryObject.pyi | 1 - src/Gui/ViewProviderLink.pyi | 1 - src/Gui/Workbench.pyi | 5 +- src/Mod/Assembly/App/AssemblyLink.pyi | 1 - src/Mod/Assembly/App/AssemblyObject.pyi | 8 +-- src/Mod/Assembly/App/BomGroup.pyi | 1 - src/Mod/Assembly/App/BomObject.pyi | 1 - src/Mod/Assembly/App/JointGroup.pyi | 1 - src/Mod/Assembly/App/SimulationGroup.pyi | 1 - src/Mod/Assembly/App/ViewGroup.pyi | 1 - src/Mod/Assembly/Gui/ViewProviderAssembly.pyi | 1 - src/Mod/CAM/App/Area.pyi | 2 - src/Mod/CAM/App/Command.pyi | 2 - src/Mod/CAM/App/FeatureArea.pyi | 2 - src/Mod/CAM/App/FeaturePathCompound.pyi | 1 - src/Mod/CAM/App/Path.pyi | 7 +- src/Mod/CAM/App/Voronoi.pyi | 1 - src/Mod/CAM/App/VoronoiCell.pyi | 2 - src/Mod/CAM/App/VoronoiEdge.pyi | 2 - src/Mod/CAM/App/VoronoiVertex.pyi | 2 - src/Mod/CAM/PathSimulator/App/PathSim.pyi | 1 - src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi | 1 - src/Mod/Fem/App/FemMesh.pyi | 10 +-- src/Mod/Fem/App/FemPostBranchFilter.pyi | 1 - src/Mod/Fem/App/FemPostPipeline.pyi | 8 +-- src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi | 2 - src/Mod/Fem/Gui/ViewProviderFemMesh.pyi | 2 - src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi | 1 - .../Fem/Gui/ViewProviderFemPostPipeline.pyi | 1 - src/Mod/Import/App/StepShape.pyi | 1 - src/Mod/Measure/App/MeasureBase.pyi | 1 - src/Mod/Measure/App/Measurement.pyi | 1 - src/Mod/Measure/Gui/QuickMeasure.pyi | 1 - src/Mod/Mesh/App/Edge.pyi | 2 - src/Mod/Mesh/App/Facet.pyi | 2 - src/Mod/Mesh/App/Mesh.pyi | 2 - src/Mod/Mesh/App/MeshFeature.pyi | 1 - src/Mod/Mesh/App/MeshPoint.pyi | 2 - src/Mod/Mesh/Gui/ViewProviderMesh.pyi | 1 - src/Mod/Part/App/Arc.pyi | 8 +-- src/Mod/Part/App/ArcOfCircle.pyi | 1 - src/Mod/Part/App/ArcOfConic.pyi | 4 +- src/Mod/Part/App/ArcOfEllipse.pyi | 1 - src/Mod/Part/App/ArcOfHyperbola.pyi | 1 - src/Mod/Part/App/ArcOfParabola.pyi | 1 - src/Mod/Part/App/AttachEngine.pyi | 1 - src/Mod/Part/App/AttachExtension.pyi | 1 - src/Mod/Part/App/BRepFeat/MakePrism.pyi | 1 - .../Part/App/BRepOffsetAPI_MakeFilling.pyi | 47 ++++---------- .../Part/App/BRepOffsetAPI_MakePipeShell.pyi | 15 ++--- src/Mod/Part/App/BSplineCurve.pyi | 25 ++----- src/Mod/Part/App/BSplineSurface.pyi | 1 - src/Mod/Part/App/BezierCurve.pyi | 1 - src/Mod/Part/App/BezierSurface.pyi | 1 - src/Mod/Part/App/BodyBase.pyi | 1 - src/Mod/Part/App/BoundedCurve.pyi | 1 - .../Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi | 1 - src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi | 1 - src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi | 6 +- src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi | 1 - src/Mod/Part/App/Circle.pyi | 20 ++---- src/Mod/Part/App/Cone.pyi | 1 - src/Mod/Part/App/Conic.pyi | 1 - src/Mod/Part/App/Cylinder.pyi | 20 ++---- src/Mod/Part/App/Ellipse.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi | 1 - src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi | 4 +- src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi | 4 +- src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi | 17 ++--- src/Mod/Part/App/Geom2d/BezierCurve2d.pyi | 1 - src/Mod/Part/App/Geom2d/Circle2d.pyi | 21 ++---- src/Mod/Part/App/Geom2d/Conic2d.pyi | 1 - src/Mod/Part/App/Geom2d/Curve2d.pyi | 57 ++++------------ src/Mod/Part/App/Geom2d/Ellipse2d.pyi | 20 ++---- src/Mod/Part/App/Geom2d/Geometry2d.pyi | 1 - src/Mod/Part/App/Geom2d/Hyperbola2d.pyi | 16 ++--- src/Mod/Part/App/Geom2d/Line2d.pyi | 1 - src/Mod/Part/App/Geom2d/Line2dSegment.pyi | 13 +--- src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi | 1 - src/Mod/Part/App/Geom2d/Parabola2d.pyi | 1 - .../Part/App/GeomPlate/BuildPlateSurface.pyi | 1 - .../Part/App/GeomPlate/CurveConstraint.pyi | 1 - .../Part/App/GeomPlate/PointConstraint.pyi | 1 - src/Mod/Part/App/Geometry.pyi | 1 - src/Mod/Part/App/GeometryBoolExtension.pyi | 1 - src/Mod/Part/App/GeometryCurve.pyi | 36 ++++------ src/Mod/Part/App/GeometryDoubleExtension.pyi | 1 - src/Mod/Part/App/GeometryExtension.pyi | 1 - src/Mod/Part/App/GeometryIntExtension.pyi | 1 - src/Mod/Part/App/GeometryStringExtension.pyi | 1 - src/Mod/Part/App/GeometrySurface.pyi | 35 ++++------ src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi | 1 - src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi | 2 - src/Mod/Part/App/HLRBRep/HLRToShape.pyi | 1 - src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi | 1 - src/Mod/Part/App/Hyperbola.pyi | 16 ++--- src/Mod/Part/App/Line.pyi | 12 +--- src/Mod/Part/App/LineSegment.pyi | 13 +--- src/Mod/Part/App/OffsetCurve.pyi | 1 - src/Mod/Part/App/OffsetSurface.pyi | 1 - src/Mod/Part/App/Parabola.pyi | 1 - src/Mod/Part/App/Part2DObject.pyi | 1 - src/Mod/Part/App/PartFeature.pyi | 1 - src/Mod/Part/App/Plane.pyi | 1 - src/Mod/Part/App/PlateSurface.pyi | 1 - src/Mod/Part/App/Point.pyi | 14 +--- .../Part/App/RectangularTrimmedSurface.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi | 1 - .../App/ShapeFix/ShapeFix_EdgeConnect.pyi | 9 +-- src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi | 1 - .../App/ShapeFix/ShapeFix_FaceConnect.pyi | 1 - .../App/ShapeFix/ShapeFix_FixSmallFace.pyi | 1 - .../App/ShapeFix/ShapeFix_FixSmallSolid.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_FreeBounds.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi | 1 - .../App/ShapeFix/ShapeFix_ShapeTolerance.pyi | 21 +++--- src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi | 1 - .../ShapeFix/ShapeFix_SplitCommonVertex.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_SplitTool.pyi | 1 - src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi | 2 - .../Part/App/ShapeFix/ShapeFix_WireVertex.pyi | 1 - .../Part/App/ShapeFix/ShapeFix_Wireframe.pyi | 4 +- .../Part/App/ShapeUpgrade/UnifySameDomain.pyi | 1 - src/Mod/Part/App/Sphere.pyi | 1 - src/Mod/Part/App/SurfaceOfExtrusion.pyi | 1 - src/Mod/Part/App/SurfaceOfRevolution.pyi | 6 +- src/Mod/Part/App/TopoShape.pyi | 61 +++++++++-------- src/Mod/Part/App/TopoShapeCompSolid.pyi | 1 - src/Mod/Part/App/TopoShapeCompound.pyi | 5 +- src/Mod/Part/App/TopoShapeEdge.pyi | 33 ++++------ src/Mod/Part/App/TopoShapeFace.pyi | 1 - src/Mod/Part/App/TopoShapeShell.pyi | 1 - src/Mod/Part/App/TopoShapeSolid.pyi | 9 +-- src/Mod/Part/App/TopoShapeVertex.pyi | 1 - src/Mod/Part/App/TopoShapeWire.pyi | 1 - src/Mod/Part/App/Toroid.pyi | 1 - src/Mod/Part/App/TrimmedCurve.pyi | 1 - src/Mod/Part/Gui/ViewProviderPartExt.pyi | 1 - src/Mod/PartDesign/App/Body.pyi | 1 - src/Mod/PartDesign/App/Feature.pyi | 1 - src/Mod/PartDesign/Gui/ViewProvider.pyi | 1 - src/Mod/Points/App/Points.pyi | 2 - src/Mod/Robot/App/Robot6Axis.pyi | 2 - src/Mod/Robot/App/RobotObject.pyi | 1 - src/Mod/Robot/App/Trajectory.pyi | 2 - src/Mod/Robot/App/Waypoint.pyi | 1 - src/Mod/Sketcher/App/Constraint.pyi | 1 - .../App/ExternalGeometryExtension.pyi | 2 - .../Sketcher/App/ExternalGeometryFacade.pyi | 1 - src/Mod/Sketcher/App/GeometryFacade.pyi | 1 - src/Mod/Sketcher/App/Sketch.pyi | 1 - .../Sketcher/App/SketchGeometryExtension.pyi | 1 - src/Mod/Sketcher/App/SketchObject.pyi | 51 +++++++-------- src/Mod/Sketcher/App/SketchObjectSF.pyi | 1 - .../ViewProviderSketchGeometryExtension.pyi | 1 - .../Spreadsheet/App/PropertyColumnWidths.pyi | 1 - .../Spreadsheet/App/PropertyRowHeights.pyi | 1 - src/Mod/Spreadsheet/App/PropertySheet.pyi | 5 +- src/Mod/Spreadsheet/App/Sheet.pyi | 1 - .../Gui/ViewProviderSpreadsheet.pyi | 1 - src/Mod/Surface/App/Blending/BlendCurve.pyi | 1 - src/Mod/Surface/App/Blending/BlendPoint.pyi | 2 - .../bindings/model/generateModel_Python.py | 5 +- 192 files changed, 284 insertions(+), 797 deletions(-) diff --git a/src/Base/Axis.pyi b/src/Base/Axis.pyi index a8670a66cc..b9c2aece02 100644 --- a/src/Base/Axis.pyi +++ b/src/Base/Axis.pyi @@ -8,7 +8,6 @@ from Vector import Vector from Placement import Placement from typing import overload - @export( Constructor=True, Delete=True, diff --git a/src/Base/BaseClass.pyi b/src/Base/BaseClass.pyi index 4bc22d4d58..a9d21b0ffb 100644 --- a/src/Base/BaseClass.pyi +++ b/src/Base/BaseClass.pyi @@ -6,7 +6,6 @@ from Metadata import constmethod from PyObjectBase import PyObjectBase from typing import List, Final - class BaseClass(PyObjectBase): """ This is the base class diff --git a/src/Base/BoundBox.pyi b/src/Base/BoundBox.pyi index d23514bc2b..01ba954323 100644 --- a/src/Base/BoundBox.pyi +++ b/src/Base/BoundBox.pyi @@ -8,7 +8,6 @@ from Vector import Vector from Matrix import Matrix from typing import overload, Any, Final, Tuple, Union - @export( TwinPointer="BoundBox3d", Constructor=True, @@ -133,17 +132,11 @@ class BoundBox(PyObjectBase): ... @overload - def add(self, minMax: Vector, /) -> None: - ... - + def add(self, minMax: Vector, /) -> None: ... @overload - def add(self, minMax: Tuple[float, float, float], /) -> None: - ... - + def add(self, minMax: Tuple[float, float, float], /) -> None: ... @overload - def add(self, x: float, y: float, z: float, /) -> None: - ... - + def add(self, x: float, y: float, z: float, /) -> None: ... def add(self, *args: Any, **kwargs: Any) -> None: """ Increase the maximum values or decrease the minimum values of this BoundBox by @@ -182,13 +175,9 @@ class BoundBox(PyObjectBase): ... @overload - def closestPoint(self, point: Vector, /) -> Vector: - ... - + def closestPoint(self, point: Vector, /) -> Vector: ... @overload - def closestPoint(self, x: float, y: float, z: float, /) -> Vector: - ... - + def closestPoint(self, x: float, y: float, z: float, /) -> Vector: ... @constmethod def closestPoint(self, *args: Any, **kwargs: Any) -> Vector: """ @@ -206,18 +195,14 @@ class BoundBox(PyObjectBase): ... @overload - def intersect(self, boundBox2: "BoundBox", /) -> bool: - ... - + def intersect(self, boundBox2: "BoundBox", /) -> bool: ... @overload def intersect( self, base: Union[Vector, Tuple[float, float, float]], dir: Union[Vector, Tuple[float, float, float]], /, - ) -> bool: - ... - + ) -> bool: ... def intersect(self, *args: Any) -> bool: """ Checks if the given object intersects with this bounding box. That can be @@ -269,17 +254,11 @@ class BoundBox(PyObjectBase): ... @overload - def move(self, displacement: Vector, /) -> None: - ... - + def move(self, displacement: Vector, /) -> None: ... @overload - def move(self, displacement: Tuple[float, float, float], /) -> None: - ... - + def move(self, displacement: Tuple[float, float, float], /) -> None: ... @overload - def move(self, x: float, y: float, z: float, /) -> None: - ... - + def move(self, x: float, y: float, z: float, /) -> None: ... def move(self, *args: Any, **kwargs: Any) -> None: """ Move the bounding box by the given values. @@ -296,17 +275,11 @@ class BoundBox(PyObjectBase): ... @overload - def scale(self, factor: Vector, /) -> None: - ... - + def scale(self, factor: Vector, /) -> None: ... @overload - def scale(self, factor: Tuple[float, float, float], /) -> None: - ... - + def scale(self, factor: Tuple[float, float, float], /) -> None: ... @overload - def scale(self, x: float, y: float, z: float, /) -> None: - ... - + def scale(self, x: float, y: float, z: float, /) -> None: ... def scale(self, *args: Any, **kwargs: Any) -> None: """ Scale the bounding box by the given values. @@ -343,17 +316,11 @@ class BoundBox(PyObjectBase): ... @overload - def isInside(self, object: Vector, /) -> bool: - ... - + def isInside(self, object: Vector, /) -> bool: ... @overload - def isInside(self, object: "BoundBox", /) -> bool: - ... - + def isInside(self, object: "BoundBox", /) -> bool: ... @overload - def isInside(self, x: float, y: float, z: float, /) -> bool: - ... - + def isInside(self, x: float, y: float, z: float, /) -> bool: ... def isInside(self, *args: Any) -> bool: """ Check if a point or a bounding box is inside this bounding box. diff --git a/src/Base/CoordinateSystem.pyi b/src/Base/CoordinateSystem.pyi index f549cbdc0a..332cce87bc 100644 --- a/src/Base/CoordinateSystem.pyi +++ b/src/Base/CoordinateSystem.pyi @@ -10,7 +10,6 @@ from Placement import Placement from Rotation import Rotation from typing import Union - @export( Constructor=True, Delete=True, diff --git a/src/Base/Matrix.pyi b/src/Base/Matrix.pyi index 063cf913ba..c31e80aa8c 100644 --- a/src/Base/Matrix.pyi +++ b/src/Base/Matrix.pyi @@ -8,7 +8,6 @@ from PyObjectBase import PyObjectBase from enum import IntEnum from typing import overload, Union, Tuple, Sequence - class ScaleType(IntEnum): Other = -1 NoScaling = 0 @@ -16,7 +15,6 @@ class ScaleType(IntEnum): NonUniformLeft = 2 Uniform = 3 - @export( TwinPointer="Matrix4D", Constructor=True, @@ -109,13 +107,9 @@ class Matrix(PyObjectBase): """The matrix elements.""" @overload - def move(self, vector: Vector, /) -> None: - ... - + def move(self, vector: Vector, /) -> None: ... @overload - def move(self, x: float, y: float, z: float, /) -> None: - ... - + def move(self, x: float, y: float, z: float, /) -> None: ... def move(self, *args) -> None: """ Move the matrix along a vector, equivalent to left multiply the matrix @@ -132,17 +126,11 @@ class Matrix(PyObjectBase): ... @overload - def scale(self, vector: Vector, /) -> None: - ... - + def scale(self, vector: Vector, /) -> None: ... @overload - def scale(self, x: float, y: float, z: float, /) -> None: - ... - + def scale(self, x: float, y: float, z: float, /) -> None: ... @overload - def scale(self, factor: float, /) -> None: - ... - + def scale(self, factor: float, /) -> None: ... def scale(self, *args) -> None: """ Scale the first three rows of the matrix. @@ -308,13 +296,9 @@ class Matrix(PyObjectBase): ... @overload - def multiply(self, matrix: "Matrix", /) -> "Matrix": - ... - + def multiply(self, matrix: "Matrix", /) -> "Matrix": ... @overload - def multiply(self, vector: Vector, /) -> Vector: - ... - + def multiply(self, vector: Vector, /) -> Vector: ... @constmethod def multiply(self, obj: Union["Matrix", Vector], /) -> Union["Matrix", Vector]: """ diff --git a/src/Base/Metadata.pyi b/src/Base/Metadata.pyi index 99d5bd9829..b3ffdd645d 100644 --- a/src/Base/Metadata.pyi +++ b/src/Base/Metadata.pyi @@ -1,40 +1,31 @@ # SPDX-License-Identifier: LGPL-2.1-or-later from __future__ import annotations + """ This file keeps auxiliary metadata to be used by the Python API stubs. """ - def export(**kwargs): """ A decorator to attach metadata to a class. """ ... - -def constmethod(method): - ... - - -def no_args(method): - ... - - +def constmethod(method): ... +def no_args(method): ... def forward_declarations(source_code): """ A decorator to attach forward declarations to a class. """ ... - def class_declarations(source_code): """ A decorator to attach forward declarations to a class. """ ... - def sequence_protocol(**kwargs): """ A decorator to attach sequence protocol metadata to a class. diff --git a/src/Base/Persistence.pyi b/src/Base/Persistence.pyi index 8d9c14ce08..1c744f1d88 100644 --- a/src/Base/Persistence.pyi +++ b/src/Base/Persistence.pyi @@ -6,7 +6,6 @@ from Metadata import constmethod from BaseClass import BaseClass from typing import Final - class Persistence(BaseClass): """ Base.Persistence class. diff --git a/src/Base/Placement.pyi b/src/Base/Placement.pyi index 510183f3fb..83e5900b01 100644 --- a/src/Base/Placement.pyi +++ b/src/Base/Placement.pyi @@ -9,7 +9,6 @@ from Rotation import Rotation as RotationPy from Vector import Vector from typing import Sequence, overload - @export( Constructor=True, Delete=True, @@ -114,9 +113,7 @@ class Placement(PyObjectBase): @overload def rotate( self, center: Sequence[float], axis: Sequence[float], angle: float, *, comp: bool = False - ) -> None: - ... - + ) -> None: ... @overload def rotate(self, center: Vector, axis: Vector, angle: float, *, comp: bool = False) -> None: """ @@ -135,9 +132,7 @@ class Placement(PyObjectBase): behave like TopoShape.rotate() (i.e. the resulting placements are interchangeable). """ - def rotate(self, *args, **kwargs) -> None: - ... - + def rotate(self, *args, **kwargs) -> None: ... @constmethod def multiply(self, placement: "Placement", /) -> "Placement": """ diff --git a/src/Base/Precision.pyi b/src/Base/Precision.pyi index 51f186d450..eb79d6f20a 100644 --- a/src/Base/Precision.pyi +++ b/src/Base/Precision.pyi @@ -4,7 +4,6 @@ from __future__ import annotations from PyObjectBase import PyObjectBase - class Precision(PyObjectBase): """ This is the Precision class diff --git a/src/Base/PyObjectBase.pyi b/src/Base/PyObjectBase.pyi index 0cd5591db3..d1f8efd47c 100644 --- a/src/Base/PyObjectBase.pyi +++ b/src/Base/PyObjectBase.pyi @@ -2,7 +2,6 @@ from __future__ import annotations - class PyObjectBase: """ The most base class for Python bindings. diff --git a/src/Base/Quantity.pyi b/src/Base/Quantity.pyi index b0bbabe8fa..b79ae5fc36 100644 --- a/src/Base/Quantity.pyi +++ b/src/Base/Quantity.pyi @@ -7,7 +7,6 @@ from PyObjectBase import PyObjectBase from typing import overload, Final, Tuple, Union from Unit import Unit as UnitPy - @export( NumberProtocol=True, RichCompare=True, @@ -56,13 +55,9 @@ class Quantity(PyObjectBase): # fmt: on @overload - def toStr(self, /) -> str: - ... - + def toStr(self, /) -> str: ... @overload - def toStr(self, decimals: int, /) -> str: - ... - + def toStr(self, decimals: int, /) -> str: ... @constmethod def toStr(self, decimals: int = ..., /) -> str: """ @@ -79,21 +74,13 @@ class Quantity(PyObjectBase): ... @overload - def getValueAs(self, unit: str, /) -> float: - ... - + def getValueAs(self, unit: str, /) -> float: ... @overload - def getValueAs(self, translation: float, unit_signature: int, /) -> float: - ... - + def getValueAs(self, translation: float, unit_signature: int, /) -> float: ... @overload - def getValueAs(self, unit: UnitPy, /) -> float: - ... - + def getValueAs(self, unit: UnitPy, /) -> float: ... @overload - def getValueAs(self, quantity: "Quantity", /) -> float: - ... - + def getValueAs(self, quantity: "Quantity", /) -> float: ... @constmethod def getValueAs(self, *args) -> float: """ @@ -109,13 +96,9 @@ class Quantity(PyObjectBase): ... @overload - def __round__(self, /) -> int: - ... - + def __round__(self, /) -> int: ... @overload - def __round__(self, ndigits: int, /) -> float: - ... - + def __round__(self, ndigits: int, /) -> float: ... @constmethod def __round__(self, ndigits: int = ..., /) -> Union[int, float]: """ diff --git a/src/Base/Rotation.pyi b/src/Base/Rotation.pyi index f8ef1e5d75..d5a9f5bcb8 100644 --- a/src/Base/Rotation.pyi +++ b/src/Base/Rotation.pyi @@ -8,7 +8,6 @@ from Vector import Vector from Matrix import Matrix from typing import overload, Tuple, List, Final - @export( Constructor=True, Delete=True, diff --git a/src/Base/Type.pyi b/src/Base/Type.pyi index 512e777262..fb3a0491f5 100644 --- a/src/Base/Type.pyi +++ b/src/Base/Type.pyi @@ -6,16 +6,17 @@ from Metadata import export, forward_declarations, constmethod from PyObjectBase import PyObjectBase from typing import List, Final - @export( Twin="BaseType", TwinPointer="BaseType", Delete=True, ) -@forward_declarations(""" +@forward_declarations( + """ namespace Base { using BaseType = Type; -}""") +}""" +) class Type(PyObjectBase): """ BaseTypePy class. diff --git a/src/Base/Unit.pyi b/src/Base/Unit.pyi index 817d426fda..69c53f3e3c 100644 --- a/src/Base/Unit.pyi +++ b/src/Base/Unit.pyi @@ -7,7 +7,6 @@ from PyObjectBase import PyObjectBase from Quantity import Quantity from typing import Final, Tuple, overload - @export( NumberProtocol=True, RichCompare=True, @@ -31,9 +30,7 @@ class Unit(PyObjectBase): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload def __init__( self, @@ -45,20 +42,13 @@ class Unit(PyObjectBase): i6: float, i7: float, i8: float, - ) -> None: - ... - + ) -> None: ... @overload - def __init__(self, quantity: Quantity) -> None: - ... - + def __init__(self, quantity: Quantity) -> None: ... @overload - def __init__(self, unit: Unit) -> None: - ... - + def __init__(self, unit: Unit) -> None: ... @overload - def __init__(self, string: str) -> None: - ... + def __init__(self, string: str) -> None: ... Type: Final[str] = ... """holds the unit type as a string, e.g. 'Area'.""" diff --git a/src/Base/Vector.pyi b/src/Base/Vector.pyi index ee19e80fde..830f16c028 100644 --- a/src/Base/Vector.pyi +++ b/src/Base/Vector.pyi @@ -6,7 +6,6 @@ from Metadata import export, constmethod, sequence_protocol, class_declarations from PyObjectBase import PyObjectBase from typing import overload, Sequence - @export( TwinPointer="Vector3d", Include="Base/Vector3D.h", diff --git a/src/Gui/AxisOrigin.pyi b/src/Gui/AxisOrigin.pyi index 50e9e71043..4ee26a883e 100644 --- a/src/Gui/AxisOrigin.pyi +++ b/src/Gui/AxisOrigin.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, Tuple, Dict - @export( Constructor=True, Delete=True, @@ -42,7 +41,6 @@ class AxisOrigin(BaseClass): Output Coin path leading to the returned element detail. """ ... - AxisLength: float = 0.0 """Get/set the axis length.""" diff --git a/src/Gui/Command.pyi b/src/Gui/Command.pyi index 7b1da9657e..96f7eeec99 100644 --- a/src/Gui/Command.pyi +++ b/src/Gui/Command.pyi @@ -6,7 +6,6 @@ from Base.Metadata import constmethod from Base.PyObjectBase import PyObjectBase from typing import Any, Dict, List, Optional - class Command(PyObjectBase): """ FreeCAD Python wrapper of Command functions diff --git a/src/Gui/Document.pyi b/src/Gui/Document.pyi index 60088e6831..31493815dd 100644 --- a/src/Gui/Document.pyi +++ b/src/Gui/Document.pyi @@ -7,7 +7,6 @@ from Base.Persistence import Persistence from Base.Matrix import Matrix from typing import Any, Final, List, Optional - class Document(Persistence): """ This is a Document class @@ -188,7 +187,6 @@ class Document(Persistence): obj : Gui.ViewProvider """ ... - ActiveObject: Any = ... """The active object of the document.""" diff --git a/src/Gui/LinkView.pyi b/src/Gui/LinkView.pyi index cac3c867b7..6a349cdddd 100644 --- a/src/Gui/LinkView.pyi +++ b/src/Gui/LinkView.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Any, Final, List, Dict, Tuple, overload - @export( Include="Gui/ViewProviderLink.h", Constructor=True, @@ -27,21 +26,13 @@ class LinkView(BaseClass): ... @overload - def setMaterial(self, material: None, /) -> None: - ... - + def setMaterial(self, material: None, /) -> None: ... @overload - def setMaterial(self, material: Any, /) -> None: - ... - + def setMaterial(self, material: Any, /) -> None: ... @overload - def setMaterial(self, material: List[Any], /) -> None: - ... - + def setMaterial(self, material: List[Any], /) -> None: ... @overload - def setMaterial(self, material: Dict[int, Any], /) -> None: - ... - + def setMaterial(self, material: Dict[int, Any], /) -> None: ... def setMaterial(self, material: Any, /) -> None: """ setMaterial(Material): set the override material of the entire linked object @@ -59,13 +50,9 @@ class LinkView(BaseClass): ... @overload - def setType(self, type: int, /) -> None: - ... - + def setType(self, type: int, /) -> None: ... @overload - def setType(self, type: int, sublink: bool, /) -> None: - ... - + def setType(self, type: int, sublink: bool, /) -> None: ... def setType(self, type: int, sublink: bool = True, /) -> None: """ set the link type. @@ -82,17 +69,11 @@ class LinkView(BaseClass): ... @overload - def setTransform(self, matrix: Any, /) -> None: - ... - + def setTransform(self, matrix: Any, /) -> None: ... @overload - def setTransform(self, matrix: List[Any], /) -> None: - ... - + def setTransform(self, matrix: List[Any], /) -> None: ... @overload - def setTransform(self, matrix: Dict[int, Any], /) -> None: - ... - + def setTransform(self, matrix: Dict[int, Any], /) -> None: ... def setTransform(self, matrix: Any, /) -> None: """ set transformation of the linked object @@ -121,17 +102,11 @@ class LinkView(BaseClass): ... @overload - def setLink(self, obj: Any, /) -> None: - ... - + def setLink(self, obj: Any, /) -> None: ... @overload - def setLink(self, obj: Any, subname: str, /) -> None: - ... - + def setLink(self, obj: Any, subname: str, /) -> None: ... @overload - def setLink(self, obj: Any, subname: List[str], /) -> None: - ... - + def setLink(self, obj: Any, subname: List[str], /) -> None: ... def setLink(self, obj: Any, subname: Any = None, /) -> None: """ Set the link @@ -175,7 +150,6 @@ class LinkView(BaseClass): Get children view objects """ ... - LinkedView: Final[Any] = ... """The linked view object""" diff --git a/src/Gui/Navigation/NavigationStyle.pyi b/src/Gui/Navigation/NavigationStyle.pyi index d6adf27d24..ddb0597c61 100644 --- a/src/Gui/Navigation/NavigationStyle.pyi +++ b/src/Gui/Navigation/NavigationStyle.pyi @@ -3,8 +3,9 @@ from Base.Metadata import export from Base.BaseClass import BaseClass - -@export(Include="Gui/Navigation/NavigationStyle.h", ) +@export( + Include="Gui/Navigation/NavigationStyle.h", +) class NavigationStyle(BaseClass): """ This is the base class for navigation styles diff --git a/src/Gui/PythonWorkbench.pyi b/src/Gui/PythonWorkbench.pyi index a0c274b3b3..ef4de9c421 100644 --- a/src/Gui/PythonWorkbench.pyi +++ b/src/Gui/PythonWorkbench.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Workbench import Workbench from warnings import deprecated - @export( Twin="PythonBaseWorkbench", TwinPointer="PythonBaseWorkbench", diff --git a/src/Gui/Selection/SelectionObject.pyi b/src/Gui/Selection/SelectionObject.pyi index 1dc6574e0e..684bdb713a 100644 --- a/src/Gui/Selection/SelectionObject.pyi +++ b/src/Gui/Selection/SelectionObject.pyi @@ -4,7 +4,6 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Any, Final, Tuple - @export( Include="Gui/Selection/SelectionObject.h", Delete=True, @@ -20,7 +19,7 @@ class SelectionObject(BaseClass): def remove(self) -> None: """ Remove this selection item from the selection. - + -- This object becomes invalid. """ @@ -31,7 +30,6 @@ class SelectionObject(BaseClass): Test for a certain father class. """ ... - ObjectName: Final[str] = "" """Name of the selected object""" diff --git a/src/Gui/ViewProvider.pyi b/src/Gui/ViewProvider.pyi index 3a210e4b77..af9c47cc1f 100644 --- a/src/Gui/ViewProvider.pyi +++ b/src/Gui/ViewProvider.pyi @@ -8,7 +8,6 @@ from App.ExtensionContainer import ExtensionContainer from typing import Any, Final, List, Optional import enum - class ViewProvider(ExtensionContainer): """ This is the ViewProvider base class @@ -290,7 +289,6 @@ class ViewProvider(ExtensionContainer): Default to active view. Optional. """ ... - Annotation: Any = ... """A pivy Separator to add a custom scenegraph to this ViewProvider.""" diff --git a/src/Gui/ViewProviderDocumentObject.pyi b/src/Gui/ViewProviderDocumentObject.pyi index 5b1402debf..98491e67f7 100644 --- a/src/Gui/ViewProviderDocumentObject.pyi +++ b/src/Gui/ViewProviderDocumentObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from ViewProvider import ViewProvider from typing import Any, Final - class ViewProviderDocumentObject(ViewProvider): """ This is the ViewProvider base class @@ -19,7 +18,6 @@ class ViewProviderDocumentObject(ViewProvider): Update the view representation of the object """ ... - Object: Any = ... """Set/Get the associated data object""" diff --git a/src/Gui/ViewProviderExtension.pyi b/src/Gui/ViewProviderExtension.pyi index 513162549f..9bd18e068d 100644 --- a/src/Gui/ViewProviderExtension.pyi +++ b/src/Gui/ViewProviderExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import constmethod from App.Extension import Extension - class ViewProviderExtension(Extension): """ Base class for all view provider extensions diff --git a/src/Gui/ViewProviderGeometryObject.pyi b/src/Gui/ViewProviderGeometryObject.pyi index 6cf35a63ad..04c1490c64 100644 --- a/src/Gui/ViewProviderGeometryObject.pyi +++ b/src/Gui/ViewProviderGeometryObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import no_args from ViewProviderDocumentObject import ViewProviderDocumentObject - class ViewProviderGeometryObject(ViewProviderDocumentObject): """ This is the ViewProvider geometry class diff --git a/src/Gui/ViewProviderLink.pyi b/src/Gui/ViewProviderLink.pyi index ac182f50d8..ac173e999c 100644 --- a/src/Gui/ViewProviderLink.pyi +++ b/src/Gui/ViewProviderLink.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from ViewProviderDocumentObject import ViewProviderDocumentObject from typing import Any, Final - class ViewProviderLink(ViewProviderDocumentObject): """ This is the ViewProviderLink class diff --git a/src/Gui/Workbench.pyi b/src/Gui/Workbench.pyi index bce115662c..b51272ffb7 100644 --- a/src/Gui/Workbench.pyi +++ b/src/Gui/Workbench.pyi @@ -6,8 +6,9 @@ from Base.Metadata import export from Base.BaseClass import BaseClass from typing import Any, List, Dict - -@export(Include="Gui/Workbench.h", ) +@export( + Include="Gui/Workbench.h", +) class Workbench(BaseClass): """ This is the base class for workbenches diff --git a/src/Mod/Assembly/App/AssemblyLink.pyi b/src/Mod/Assembly/App/AssemblyLink.pyi index e5e9266421..f92bee3d61 100644 --- a/src/Mod/Assembly/App/AssemblyLink.pyi +++ b/src/Mod/Assembly/App/AssemblyLink.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.Part import Part - @export( Include="Mod/Assembly/App/AssemblyLink.h", Namespace="Assembly", diff --git a/src/Mod/Assembly/App/AssemblyObject.pyi b/src/Mod/Assembly/App/AssemblyObject.pyi index fbcae0fcd8..22c4e888a7 100644 --- a/src/Mod/Assembly/App/AssemblyObject.pyi +++ b/src/Mod/Assembly/App/AssemblyObject.pyi @@ -9,7 +9,6 @@ from Base.Metadata import constmethod, export from App.Part import Part from App.DocumentObject import DocumentObject - @export(Include="Mod/Assembly/App/AssemblyObject.h", Namespace="Assembly") class AssemblyObject(Part): """ @@ -145,10 +144,8 @@ class AssemblyObject(Part): @constmethod def getDownstreamParts( - self, - start_part: DocumentObject, - joint_to_ignore: DocumentObject, - /) -> list[DocumentObject]: + self, start_part: DocumentObject, joint_to_ignore: DocumentObject, / + ) -> list[DocumentObject]: """ Finds all parts connected to a start_part that are not connected to ground when a specific joint is ignored. @@ -165,6 +162,5 @@ class AssemblyObject(Part): A list of App.DocumentObject instances representing the downstream parts. """ ... - Joints: Final[list] """A list of all joints this assembly has.""" diff --git a/src/Mod/Assembly/App/BomGroup.pyi b/src/Mod/Assembly/App/BomGroup.pyi index b54941a3d6..d6d4797fb7 100644 --- a/src/Mod/Assembly/App/BomGroup.pyi +++ b/src/Mod/Assembly/App/BomGroup.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup - @export(Include="Mod/Assembly/App/BomGroup.h", Namespace="Assembly") class BomGroup(DocumentObjectGroup): """ diff --git a/src/Mod/Assembly/App/BomObject.pyi b/src/Mod/Assembly/App/BomObject.pyi index 12a1ca69b9..1b4387a06e 100644 --- a/src/Mod/Assembly/App/BomObject.pyi +++ b/src/Mod/Assembly/App/BomObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Spreadsheet.Sheet import Sheet - @export( Include="Mod/Assembly/App/BomObject.h", FatherInclude="Mod/Spreadsheet/App/SheetPy.h", diff --git a/src/Mod/Assembly/App/JointGroup.pyi b/src/Mod/Assembly/App/JointGroup.pyi index 5a0389586b..dd2554c3bf 100644 --- a/src/Mod/Assembly/App/JointGroup.pyi +++ b/src/Mod/Assembly/App/JointGroup.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup - @export(Include="Mod/Assembly/App/JointGroup.h", Namespace="Assembly") class JointGroup(DocumentObjectGroup): """ diff --git a/src/Mod/Assembly/App/SimulationGroup.pyi b/src/Mod/Assembly/App/SimulationGroup.pyi index 15f288147d..d6f5bba688 100644 --- a/src/Mod/Assembly/App/SimulationGroup.pyi +++ b/src/Mod/Assembly/App/SimulationGroup.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup - @export(Include="Mod/Assembly/App/SimulationGroup.h", Namespace="Assembly") class SimulationGroup(DocumentObjectGroup): """ diff --git a/src/Mod/Assembly/App/ViewGroup.pyi b/src/Mod/Assembly/App/ViewGroup.pyi index 310ca1da1a..eb00242ace 100644 --- a/src/Mod/Assembly/App/ViewGroup.pyi +++ b/src/Mod/Assembly/App/ViewGroup.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectGroup import DocumentObjectGroup - @export(Include="Mod/Assembly/App/ViewGroup.h", Namespace="Assembly") class ViewGroup(DocumentObjectGroup): """ diff --git a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi index 97f08b7aa5..6d8d6ddb10 100644 --- a/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi +++ b/src/Mod/Assembly/Gui/ViewProviderAssembly.pyi @@ -51,7 +51,6 @@ class ViewProviderAssembly(ViewProvider): Restores the visual state of all components, clearing any active isolation. """ ... - EnableMovement: bool """Enable moving the parts by clicking and dragging.""" diff --git a/src/Mod/CAM/App/Area.pyi b/src/Mod/CAM/App/Area.pyi index 1f5163ee1c..f8684bbf74 100644 --- a/src/Mod/CAM/App/Area.pyi +++ b/src/Mod/CAM/App/Area.pyi @@ -5,7 +5,6 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import export - @export( Include="Mod/CAM/App/Area.h", Namespace="Path", @@ -97,7 +96,6 @@ class Area(BaseClass): def abort(self, **kwargs) -> Any: """Abort the current operation.""" ... - Sections: Final[list] """List of sections in this area.""" diff --git a/src/Mod/CAM/App/Command.pyi b/src/Mod/CAM/App/Command.pyi index 62766ce427..f4779d4c7f 100644 --- a/src/Mod/CAM/App/Command.pyi +++ b/src/Mod/CAM/App/Command.pyi @@ -4,7 +4,6 @@ from Base.Metadata import class_declarations, constmethod, export from Base.Persistence import Persistence from Base.Placement import Placement - @export( Include="Mod/CAM/App/Command.h", Namespace="Path", @@ -32,7 +31,6 @@ class Command(Persistence): def transform(self, placement: Placement, /) -> Command: """returns a copy of this command transformed by the given placement""" ... - Name: str """The name of the command""" diff --git a/src/Mod/CAM/App/FeatureArea.pyi b/src/Mod/CAM/App/FeatureArea.pyi index 3540c8a60c..95110418d9 100644 --- a/src/Mod/CAM/App/FeatureArea.pyi +++ b/src/Mod/CAM/App/FeatureArea.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/CAM/App/FeatureArea.h", Namespace="Path", @@ -32,6 +31,5 @@ class FeatureArea(DocumentObject): Same usage as Path.Area.setParams(). This function stores the parameters in the properties. """ ... - WorkPlane: Any """The current workplane. If no plane is set, it is derived from the added shapes.""" diff --git a/src/Mod/CAM/App/FeaturePathCompound.pyi b/src/Mod/CAM/App/FeaturePathCompound.pyi index 738a3e3d0d..4ae39aeaa6 100644 --- a/src/Mod/CAM/App/FeaturePathCompound.pyi +++ b/src/Mod/CAM/App/FeaturePathCompound.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/CAM/App/FeaturePathCompound.h", TwinPointer="FeatureCompound", diff --git a/src/Mod/CAM/App/Path.pyi b/src/Mod/CAM/App/Path.pyi index a092d84f3b..b088ad1f7c 100644 --- a/src/Mod/CAM/App/Path.pyi +++ b/src/Mod/CAM/App/Path.pyi @@ -27,10 +27,8 @@ class Path(Persistence): @overload def addCommands(self, command: Command, /) -> Path: ... - @overload def addCommands(self, commands: list[Command], /) -> Path: ... - def addCommands(self, arg: Union[Command, list[Command]], /) -> Path: """adds a command or a list of commands at the end of the path""" ... @@ -62,10 +60,11 @@ class Path(Persistence): ... @constmethod - def getCycleTime(self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, /) -> float: + def getCycleTime( + self, h_feed: float, v_feed: float, h_rapid: float, v_rapid: float, / + ) -> float: """return the cycle time estimation for this path in s""" ... - Length: Final[float] """the total length of this path in mm""" diff --git a/src/Mod/CAM/App/Voronoi.pyi b/src/Mod/CAM/App/Voronoi.pyi index c4b34642f7..5ae6f52a73 100644 --- a/src/Mod/CAM/App/Voronoi.pyi +++ b/src/Mod/CAM/App/Voronoi.pyi @@ -83,7 +83,6 @@ class Voronoi(BaseClass): def numSegments(self) -> Any: """Return number of input segments""" ... - Cells: Final[list] """List of all cells of the voronoi diagram""" diff --git a/src/Mod/CAM/App/VoronoiCell.pyi b/src/Mod/CAM/App/VoronoiCell.pyi index fb153ad0e3..62729e97b7 100644 --- a/src/Mod/CAM/App/VoronoiCell.pyi +++ b/src/Mod/CAM/App/VoronoiCell.pyi @@ -5,7 +5,6 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export - @export( Include="Mod/CAM/App/VoronoiCell.h", Namespace="Path", @@ -40,7 +39,6 @@ class VoronoiCell(BaseClass): def getSource(self) -> Any: """Returns the Source for the cell""" ... - Index: Final[int] """Internal id of the element.""" diff --git a/src/Mod/CAM/App/VoronoiEdge.pyi b/src/Mod/CAM/App/VoronoiEdge.pyi index 57f48d9813..de6ee617bb 100644 --- a/src/Mod/CAM/App/VoronoiEdge.pyi +++ b/src/Mod/CAM/App/VoronoiEdge.pyi @@ -5,7 +5,6 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export - @export( Include="Mod/CAM/App/VoronoiEdge.h", Namespace="Path", @@ -70,7 +69,6 @@ class VoronoiEdge(BaseClass): def getSegmentAngle(self) -> Any: """Returns the angle (in degree) of the segments if the edge was formed by two segments""" ... - Index: Final[int] """Internal id of the element.""" diff --git a/src/Mod/CAM/App/VoronoiVertex.pyi b/src/Mod/CAM/App/VoronoiVertex.pyi index e08c24706a..78e6ec1eb8 100644 --- a/src/Mod/CAM/App/VoronoiVertex.pyi +++ b/src/Mod/CAM/App/VoronoiVertex.pyi @@ -5,7 +5,6 @@ from typing import Any, Final from Base.BaseClass import BaseClass from Base.Metadata import constmethod, export - @export( Include="Mod/CAM/App/VoronoiVertex.h", Namespace="Path", @@ -25,7 +24,6 @@ class VoronoiVertex(BaseClass): def toPoint(self) -> Any: """Returns a Vector - or None if not possible""" ... - Index: Final[int] """Internal id of the element.""" diff --git a/src/Mod/CAM/PathSimulator/App/PathSim.pyi b/src/Mod/CAM/PathSimulator/App/PathSim.pyi index 3f4c25dfc0..d086884343 100644 --- a/src/Mod/CAM/PathSimulator/App/PathSim.pyi +++ b/src/Mod/CAM/PathSimulator/App/PathSim.pyi @@ -53,6 +53,5 @@ class PathSim(BaseClass): Apply a single path command on the stock starting from placement. """ ... - Tool: Final[Any] """Return current simulation tool.""" diff --git a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi index 236e4fc6cf..b5fc184fe1 100644 --- a/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi +++ b/src/Mod/CAM/PathSimulator/AppGL/CAMSim.pyi @@ -10,7 +10,6 @@ from Base.Metadata import export, no_args from Part.App.TopoShape import TopoShape from CAM.App.Command import Command - @export( Include="Mod/CAM/PathSimulator/AppGL/CAMSim.h", FatherInclude="Base/BaseClassPy.h", diff --git a/src/Mod/Fem/App/FemMesh.pyi b/src/Mod/Fem/App/FemMesh.pyi index d375ada75d..0873c5680f 100644 --- a/src/Mod/Fem/App/FemMesh.pyi +++ b/src/Mod/Fem/App/FemMesh.pyi @@ -51,10 +51,8 @@ class FemMesh(ComplexGeoData): @overload def addEdge(self, n1: int, n2: int, /) -> int: ... - @overload def addEdge(self, nodes: list[int], elem_id: int | None = None, /) -> int: ... - def addEdge(self, *args) -> int: """Add an edge by setting two node indices.""" ... @@ -65,10 +63,8 @@ class FemMesh(ComplexGeoData): @overload def addFace(self, n1: int, n2: int, n3: int, /) -> int: ... - @overload def addFace(self, nodes: list[int], elem_id: int | None = None, /) -> int: ... - def addFace(self) -> Any: """Add a face by setting three node indices.""" ... @@ -83,10 +79,8 @@ class FemMesh(ComplexGeoData): @overload def addVolume(self, n1: int, n2: int, n3: int, n4: int, /) -> int: ... - @overload def addVolume(self, nodes: list[int], elem_id: int | None = None, /) -> int: ... - def addVolume(self, *args) -> int: """Add a volume by setting an arbitrary number of node indices.""" ... @@ -121,7 +115,8 @@ class FemMesh(ComplexGeoData): groupParam: bool, volVariant: str = "standard", faceVariant: str = "shell", - edgeVariant: str = "beam") -> None: + edgeVariant: str = "beam", + ) -> None: """ Write out as ABAQUS inp. @@ -295,7 +290,6 @@ class FemMesh(ComplexGeoData): def getIdByElementType(self, elem_type: str, /) -> tuple[int, ...]: """Return a tuple of IDs to a given element type""" ... - Nodes: Final[dict] """Dictionary of Nodes by ID (int ID:Vector())""" diff --git a/src/Mod/Fem/App/FemPostBranchFilter.pyi b/src/Mod/Fem/App/FemPostBranchFilter.pyi index 599319c49f..231b705294 100644 --- a/src/Mod/Fem/App/FemPostBranchFilter.pyi +++ b/src/Mod/Fem/App/FemPostBranchFilter.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Fem.FemPostFilter import FemPostFilter - @export( Include="Mod/Fem/App/FemPostBranchFilter.h", Namespace="Fem", diff --git a/src/Mod/Fem/App/FemPostPipeline.pyi b/src/Mod/Fem/App/FemPostPipeline.pyi index 0c5065dd37..7f3b223914 100644 --- a/src/Mod/Fem/App/FemPostPipeline.pyi +++ b/src/Mod/Fem/App/FemPostPipeline.pyi @@ -27,7 +27,6 @@ class FemPostPipeline(FemPostObject): @overload def read(self, file_name: str, /) -> None: ... - @overload def read( self, @@ -36,8 +35,7 @@ class FemPostPipeline(FemPostObject): unit: Unit, frame_type: str, /, - ) -> None: ... - + ) -> None: ... def read(self, *args) -> None: """ Reads in a single vtk file or creates a multiframe result by reading in multiple result files. @@ -56,7 +54,6 @@ class FemPostPipeline(FemPostObject): @overload def load(self, obj: DocumentObject, /) -> None: ... - @overload def load( self, @@ -65,8 +62,7 @@ class FemPostPipeline(FemPostObject): unit: Unit, frame_type: str, /, - ) -> None: ... - + ) -> None: ... def load(self, *args) -> Any: """ Load a single result object or create a multiframe result by loading multiple result frames. diff --git a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi index cdd5f15d41..aadfbc28b4 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemConstraint.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject - @export( Include="Mod/Fem/Gui/ViewProviderFemConstraint.h", Namespace="FemGui", @@ -33,7 +32,6 @@ class ViewProviderFemConstraint(ViewProviderGeometryObject): Open Inventor file. """ ... - SymbolNode: Final[Any] """A pivy SoSeparator with the nodes of the constraint symbols""" diff --git a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi index dec1c29aa2..5ad02ede9b 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemMesh.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject - @export( Include="Mod/Fem/Gui/ViewProviderFemMesh.h", Namespace="FemGui", @@ -44,7 +43,6 @@ class ViewProviderFemMesh(ViewProviderGeometryObject): def setNodeDisplacementByVectors(self) -> Any: """""" ... - NodeColor: dict """Postprocessing color of the nodes. The faces between the nodes get interpolated.""" diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi index d8c3f8707d..4cc9424653 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostFilter.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject - @export( Twin="ViewProviderFemPostObject", TwinPointer="ViewProviderFemPostObject", diff --git a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi index b0b59b867a..52c94c0207 100644 --- a/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi +++ b/src/Mod/Fem/Gui/ViewProviderFemPostPipeline.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject - @export( Include="Mod/Fem/Gui/ViewProviderFemPostPipeline.h", Namespace="FemGui", diff --git a/src/Mod/Import/App/StepShape.pyi b/src/Mod/Import/App/StepShape.pyi index 283ae67778..0749dfb8d6 100644 --- a/src/Mod/Import/App/StepShape.pyi +++ b/src/Mod/Import/App/StepShape.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( Include="Mod/Import/App/StepShape.h", Namespace="Import", diff --git a/src/Mod/Measure/App/MeasureBase.pyi b/src/Mod/Measure/App/MeasureBase.pyi index af43cd33d0..67c34e25e9 100644 --- a/src/Mod/Measure/App/MeasureBase.pyi +++ b/src/Mod/Measure/App/MeasureBase.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/Measure/App/MeasureBase.h", Namespace="Measure", diff --git a/src/Mod/Measure/App/Measurement.pyi b/src/Mod/Measure/App/Measurement.pyi index 341da5c1ee..501009b2a2 100644 --- a/src/Mod/Measure/App/Measurement.pyi +++ b/src/Mod/Measure/App/Measurement.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.BaseClass import BaseClass from Base.Metadata import export - @export( Include="Mod/Measure/App/Measurement.h", Namespace="Measure", diff --git a/src/Mod/Measure/Gui/QuickMeasure.pyi b/src/Mod/Measure/Gui/QuickMeasure.pyi index e1d594db17..e7c52e916e 100644 --- a/src/Mod/Measure/Gui/QuickMeasure.pyi +++ b/src/Mod/Measure/Gui/QuickMeasure.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( Include="Mod/Measure/Gui/QuickMeasure.h", Namespace="MeasureGui", diff --git a/src/Mod/Mesh/App/Edge.pyi b/src/Mod/Mesh/App/Edge.pyi index 68d3271e76..f70778ff19 100644 --- a/src/Mod/Mesh/App/Edge.pyi +++ b/src/Mod/Mesh/App/Edge.pyi @@ -7,7 +7,6 @@ from typing import Final, Any from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( Include="Mod/Mesh/App/Edge.h", Namespace="Mesh", @@ -46,7 +45,6 @@ class Edge(PyObjectBase): After calling unbound() no topological operation will work!""" ... - Index: Final[int] """The index of this edge of the facet""" diff --git a/src/Mod/Mesh/App/Facet.pyi b/src/Mod/Mesh/App/Facet.pyi index 6738fee35b..6778b913e7 100644 --- a/src/Mod/Mesh/App/Facet.pyi +++ b/src/Mod/Mesh/App/Facet.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( Include="Mod/Mesh/App/Facet.h", Namespace="Mesh", @@ -57,7 +56,6 @@ class Facet(PyObjectBase): """getEdge(int) -> Edge Returns the edge of the facet.""" ... - Index: Final[int] """The index of this facet in the MeshObject""" diff --git a/src/Mod/Mesh/App/Mesh.pyi b/src/Mod/Mesh/App/Mesh.pyi index 72a7129ce8..ae2018ea54 100644 --- a/src/Mod/Mesh/App/Mesh.pyi +++ b/src/Mod/Mesh/App/Mesh.pyi @@ -8,7 +8,6 @@ from Base.Metadata import constmethod, export, class_declarations from App.ComplexGeoData import ComplexGeoData - @export( Twin="MeshObject", TwinPointer="MeshObject", @@ -510,7 +509,6 @@ class Mesh(ComplexGeoData): The items in the list contains minimum and maximum curvature with their directions """ ... - Points: Final[list] """A collection of the mesh points With this attribute it is possible to get access to the points of the mesh diff --git a/src/Mod/Mesh/App/MeshFeature.pyi b/src/Mod/Mesh/App/MeshFeature.pyi index 6c30eff115..4f02925b49 100644 --- a/src/Mod/Mesh/App/MeshFeature.pyi +++ b/src/Mod/Mesh/App/MeshFeature.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.GeoFeature import GeoFeature - @export( Twin="Feature", TwinPointer="Feature", diff --git a/src/Mod/Mesh/App/MeshPoint.pyi b/src/Mod/Mesh/App/MeshPoint.pyi index a1faca5804..3a00f9e7bf 100644 --- a/src/Mod/Mesh/App/MeshPoint.pyi +++ b/src/Mod/Mesh/App/MeshPoint.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( Include="Mod/Mesh/App/MeshPoint.h", Namespace="Mesh", @@ -34,7 +33,6 @@ class MeshPoint(PyObjectBase): After calling unbound() no topological operation will work!""" ... - Index: Final[int] """The index of this point in the MeshObject""" diff --git a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi index 18442503e1..3b2e4a82e4 100644 --- a/src/Mod/Mesh/Gui/ViewProviderMesh.pyi +++ b/src/Mod/Mesh/Gui/ViewProviderMesh.pyi @@ -6,7 +6,6 @@ from typing import Any from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject from Base.Metadata import export - @export( Include="Mod/Mesh/Gui/ViewProvider.h", Namespace="MeshGui", diff --git a/src/Mod/Part/App/Arc.pyi b/src/Mod/Part/App/Arc.pyi index 2c72b051c1..3bdcccd350 100644 --- a/src/Mod/Part/App/Arc.pyi +++ b/src/Mod/Part/App/Arc.pyi @@ -7,7 +7,6 @@ from TrimmedCurve import TrimmedCurve from Geometry import Geom_Circle, Geom_Ellipse from typing import overload - @export( Father="TrimmedCurvePy", PythonName="Part.Arc", @@ -26,9 +25,6 @@ class Arc(TrimmedCurve): """ @overload - def __init__(self, circ: Geom_Circle, T: type = ...) -> None: - ... - + def __init__(self, circ: Geom_Circle, T: type = ...) -> None: ... @overload - def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None: - ... + def __init__(self, circ: Geom_Ellipse, T: type = ...) -> None: ... diff --git a/src/Mod/Part/App/ArcOfCircle.pyi b/src/Mod/Part/App/ArcOfCircle.pyi index 360d0f54d2..407d240d09 100644 --- a/src/Mod/Part/App/ArcOfCircle.pyi +++ b/src/Mod/Part/App/ArcOfCircle.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final - @export( PythonName="Part.ArcOfCircle", Twin="GeomArcOfCircle", diff --git a/src/Mod/Part/App/ArcOfConic.pyi b/src/Mod/Part/App/ArcOfConic.pyi index 0d1ecf9841..a602f01ae1 100644 --- a/src/Mod/Part/App/ArcOfConic.pyi +++ b/src/Mod/Part/App/ArcOfConic.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from TrimmedCurve import TrimmedCurve from typing import overload - @export( Father="TrimmedCurvePy", PythonName="Part.ArcOfConic", @@ -26,8 +25,7 @@ class ArcOfConic(TrimmedCurve): """ @overload - def __init__(self) -> None: - ... + def __init__(self) -> None: ... Location: Vector = ... """Center of the conic.""" diff --git a/src/Mod/Part/App/ArcOfEllipse.pyi b/src/Mod/Part/App/ArcOfEllipse.pyi index 5eb58edbbc..58c63f8cd7 100644 --- a/src/Mod/Part/App/ArcOfEllipse.pyi +++ b/src/Mod/Part/App/ArcOfEllipse.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final - @export( PythonName="Part.ArcOfEllipse", Twin="GeomArcOfEllipse", diff --git a/src/Mod/Part/App/ArcOfHyperbola.pyi b/src/Mod/Part/App/ArcOfHyperbola.pyi index b70cabd42a..a835a04b38 100644 --- a/src/Mod/Part/App/ArcOfHyperbola.pyi +++ b/src/Mod/Part/App/ArcOfHyperbola.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.ArcOfConic import ArcOfConic from typing import Final - @export( Father="ArcOfConicPy", Name="ArcOfHyperbolaPy", diff --git a/src/Mod/Part/App/ArcOfParabola.pyi b/src/Mod/Part/App/ArcOfParabola.pyi index 839a4995c5..319491cdda 100644 --- a/src/Mod/Part/App/ArcOfParabola.pyi +++ b/src/Mod/Part/App/ArcOfParabola.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from ArcOfConic import ArcOfConic from typing import Final - @export( Father="ArcOfConicPy", Name="ArcOfParabolaPy", diff --git a/src/Mod/Part/App/AttachEngine.pyi b/src/Mod/Part/App/AttachEngine.pyi index 6c58704527..dc767d6657 100644 --- a/src/Mod/Part/App/AttachEngine.pyi +++ b/src/Mod/Part/App/AttachEngine.pyi @@ -8,7 +8,6 @@ from Base.Placement import Placement from App.DocumentObject import DocumentObject from typing import Final, Optional - @export( Include="Mod/Part/App/Attacher.h", Namespace="Attacher", diff --git a/src/Mod/Part/App/AttachExtension.pyi b/src/Mod/Part/App/AttachExtension.pyi index 0dd9984655..5b30436f3b 100644 --- a/src/Mod/Part/App/AttachExtension.pyi +++ b/src/Mod/Part/App/AttachExtension.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from App.DocumentObjectExtension import DocumentObjectExtension from typing import Any, Final - @export( Twin="AttachExtension", TwinPointer="AttachExtension", diff --git a/src/Mod/Part/App/BRepFeat/MakePrism.pyi b/src/Mod/Part/App/BRepFeat/MakePrism.pyi index 5138c167b9..0b7671810e 100644 --- a/src/Mod/Part/App/BRepFeat/MakePrism.pyi +++ b/src/Mod/Part/App/BRepFeat/MakePrism.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import List - @export( PythonName="Part.BRepFeat.MakePrism", Twin="BRepFeat_MakePrism", diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi index a41e6ca4be..6bfdbb550b 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakeFilling.pyi @@ -10,7 +10,6 @@ from Part.App.TopoShapeEdge import TopoShapeEdge from Part.App.TopoShapeFace import TopoShapeFace from typing import overload - @export( PythonName="Part.BRepOffsetAPI_MakeFilling", Include="BRepOffsetAPI_MakeFilling.hxx", @@ -63,25 +62,17 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): ... @overload - def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None: - ... - + def add(self, Edge: TopoShapeEdge, Order: int, *, IsBound: bool = True) -> None: ... @overload - def add(self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True) -> None: - ... - + def add( + self, Edge: TopoShapeEdge, Support: TopoShapeFace, Order: int, *, IsBound: bool = True + ) -> None: ... @overload - def add(self, Support: TopoShapeFace, Order: int) -> None: - ... - + def add(self, Support: TopoShapeFace, Order: int) -> None: ... @overload - def add(self, Point: Point) -> None: - ... - + def add(self, Point: Point) -> None: ... @overload - def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None: - ... - + def add(self, U: float, V: float, Support: TopoShapeFace, Order: int) -> None: ... def add(self, **kwargs) -> None: """ add(Edge, Order, IsBound=True) @@ -106,13 +97,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): ... @overload - def G0Error(self, /) -> float: - ... - + def G0Error(self, /) -> float: ... @overload - def G0Error(self, arg: int, /) -> float: - ... - + def G0Error(self, arg: int, /) -> float: ... def G0Error(self, arg: int = 0, /) -> float: """ G0Error([int]) @@ -121,13 +108,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): ... @overload - def G1Error(self, /) -> float: - ... - + def G1Error(self, /) -> float: ... @overload - def G1Error(self, arg: int, /) -> float: - ... - + def G1Error(self, arg: int, /) -> float: ... def G1Error(self, arg: int = 0, /) -> float: """ G1Error([int]) @@ -136,13 +119,9 @@ class BRepOffsetAPI_MakeFilling(PyObjectBase): ... @overload - def G2Error(self, /) -> float: - ... - + def G2Error(self, /) -> float: ... @overload - def G2Error(self, arg: int, /) -> float: - ... - + def G2Error(self, arg: int, /) -> float: ... def G2Error(self, arg: int = 0, /) -> float: """ G2Error([int]) diff --git a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi index 503711a302..ceac325ab8 100644 --- a/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi +++ b/src/Mod/Part/App/BRepOffsetAPI_MakePipeShell.pyi @@ -8,7 +8,6 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import overload - @export( PythonName="Part.BRepOffsetAPI_MakePipeShell", Include="BRepOffsetAPI_MakePipeShell.hxx", @@ -58,7 +57,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): """ ... - def setAuxiliarySpine(self, wire: TopoShape, CurvilinearEquivalence: bool, TypeOfContact: int, /) -> None: + def setAuxiliarySpine( + self, wire: TopoShape, CurvilinearEquivalence: bool, TypeOfContact: int, / + ) -> None: """ setAuxiliarySpine(wire, CurvilinearEquivalence, TypeOfContact) Sets an auxiliary spine to define the Normal. @@ -76,9 +77,9 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): ... @overload - def add(self, Profile: TopoShape, *, WithContact: bool = False, WithCorrection: bool = False) -> None: - ... - + def add( + self, Profile: TopoShape, *, WithContact: bool = False, WithCorrection: bool = False + ) -> None: ... @overload def add( self, @@ -87,9 +88,7 @@ class BRepOffsetAPI_MakePipeShell(PyObjectBase): *, WithContact: bool = False, WithCorrection: bool = False, - ) -> None: - ... - + ) -> None: ... def add(self, **kwargs) -> None: """ add(shape Profile, bool WithContact=False, bool WithCorrection=False) diff --git a/src/Mod/Part/App/BSplineCurve.pyi b/src/Mod/Part/App/BSplineCurve.pyi index d7caab5356..788a9c6d9d 100644 --- a/src/Mod/Part/App/BSplineCurve.pyi +++ b/src/Mod/Part/App/BSplineCurve.pyi @@ -9,7 +9,6 @@ from Part.App.Arc import Arc from Part.App.BezierCurve import BezierCurve from typing import Final, List, overload, Any - @export( PythonName="Part.BSplineCurve", Twin="GeomBSplineCurve", @@ -107,13 +106,9 @@ class BSplineCurve(BoundedCurve): ... @overload - def increaseMultiplicity(self, index: int, mult: int, /) -> None: - ... - + def increaseMultiplicity(self, index: int, mult: int, /) -> None: ... @overload - def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: - ... - + def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: ... def increaseMultiplicity(self, *args, **kwargs) -> None: """ increaseMultiplicity(int index, int mult) @@ -347,9 +342,7 @@ class BSplineCurve(BoundedCurve): TorsionWeight: float = 0.0, Parameters: List[float] = None, ParamType: str = "Uniform", - ) -> None: - ... - + ) -> None: ... def approximate(self, **kwargs) -> None: """ Replaces this B-Spline curve by approximating a set of points. @@ -386,9 +379,7 @@ class BSplineCurve(BoundedCurve): @overload @constmethod - def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: - ... - + def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: ... @constmethod def getCardinalSplineTangents(self, **kwargs) -> List[Vector]: """ @@ -407,9 +398,7 @@ class BSplineCurve(BoundedCurve): FinalTangent: Vector = None, Tangents: List[Vector] = None, TangentFlags: List[bool] = None, - ) -> None: - ... - + ) -> None: ... def interpolate(self, **kwargs) -> None: """ Replaces this B-Spline curve by interpolating a set of points. @@ -486,9 +475,7 @@ class BSplineCurve(BoundedCurve): degree: int, weights: List[float] = None, CheckRational: bool = False, - ) -> None: - ... - + ) -> None: ... def buildFromPolesMultsKnots(self, **kwargs) -> None: """ Builds a B-Spline by a lists of Poles, Mults, Knots. diff --git a/src/Mod/Part/App/BSplineSurface.pyi b/src/Mod/Part/App/BSplineSurface.pyi index df216fb7c0..b363b12e64 100644 --- a/src/Mod/Part/App/BSplineSurface.pyi +++ b/src/Mod/Part/App/BSplineSurface.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from GeometrySurface import GeometrySurface from typing import Final, List, Any - @export( PythonName="Part.BSplineSurface", Twin="GeomBSplineSurface", diff --git a/src/Mod/Part/App/BezierCurve.pyi b/src/Mod/Part/App/BezierCurve.pyi index 804cf5c6fc..5b70a12558 100644 --- a/src/Mod/Part/App/BezierCurve.pyi +++ b/src/Mod/Part/App/BezierCurve.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from BoundedCurve import BoundedCurve from typing import Final, List - @export( Twin="GeomBezierCurve", TwinPointer="GeomBezierCurve", diff --git a/src/Mod/Part/App/BezierSurface.pyi b/src/Mod/Part/App/BezierSurface.pyi index 39019cf1fd..5c6be7676d 100644 --- a/src/Mod/Part/App/BezierSurface.pyi +++ b/src/Mod/Part/App/BezierSurface.pyi @@ -9,7 +9,6 @@ from Base.Metadata import ( from GeometrySurface import GeometrySurface from typing import Final, Tuple, Any - @export( Twin="GeomBezierSurface", TwinPointer="GeomBezierSurface", diff --git a/src/Mod/Part/App/BodyBase.pyi b/src/Mod/Part/App/BodyBase.pyi index 7d86d80d03..f7549cbcbc 100644 --- a/src/Mod/Part/App/BodyBase.pyi +++ b/src/Mod/Part/App/BodyBase.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from PartFeature import PartFeature - @export( Twin="BodyBase", TwinPointer="BodyBase", diff --git a/src/Mod/Part/App/BoundedCurve.pyi b/src/Mod/Part/App/BoundedCurve.pyi index c3c0965e5e..01a478817a 100644 --- a/src/Mod/Part/App/BoundedCurve.pyi +++ b/src/Mod/Part/App/BoundedCurve.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Any, Final - @export( Twin="GeomBoundedCurve", TwinPointer="GeomBoundedCurve", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi index b0bbe7fc8d..b3b2530d06 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_AnaFilletAlgo.pyi @@ -6,7 +6,6 @@ from Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Tuple - @export( Name="ChFi2d_AnaFilletAlgoPy", PythonName="Part.ChFi2d.AnaFilletAlgo", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi index 3572f1e5c2..0eab002295 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_ChamferAPI.pyi @@ -7,7 +7,6 @@ from typing import Tuple from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ChFi2d.ChamferAPI", Twin="ChFi2d_ChamferAPI", diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi index 91ba03133c..6b0204fbef 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAPI.pyi @@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase from Part.TopoShapeEdgePy import TopoShapeEdge from Part.PointPy import Point - @export( PythonName="Part.ChFi2d.FilletAPI", Twin="ChFi2d_FilletAPI", @@ -44,8 +43,9 @@ class ChFi2d_FilletAPI(PyObjectBase): """ ... - def result(self, point: Point, solution: int = -1, - /) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]: + def result( + self, point: Point, solution: int = -1, / + ) -> tuple[TopoShapeEdge, TopoShapeEdge, TopoShapeEdge]: """ result(point, solution=-1) diff --git a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi index 482c7e11db..1a7647dba1 100644 --- a/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi +++ b/src/Mod/Part/App/ChFi2d/ChFi2d_FilletAlgo.pyi @@ -6,7 +6,6 @@ from Metadata import export from Base.PyObjectBase import PyObjectBase from Base.Vector import Vector - @export( Name="ChFi2d_FilletAlgoPy", PythonName="Part.ChFi2d.FilletAlgo", diff --git a/src/Mod/Part/App/Circle.pyi b/src/Mod/Part/App/Circle.pyi index 7c0768f562..07bbb45c5b 100644 --- a/src/Mod/Part/App/Circle.pyi +++ b/src/Mod/Part/App/Circle.pyi @@ -8,7 +8,6 @@ from Conic import Conic from Point import Point from typing import overload - @export( PythonName="Part.Circle", Twin="GeomCircle", @@ -42,21 +41,12 @@ class Circle(Conic): """The radius of the circle.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, circle: "Circle") -> None: - ... - + def __init__(self, circle: "Circle") -> None: ... @overload - def __init__(self, circle: "Circle", distance: float) -> None: - ... - + def __init__(self, circle: "Circle", distance: float) -> None: ... @overload - def __init__(self, center: Point, normal: Vector, radius: float) -> None: - ... - + def __init__(self, center: Point, normal: Vector, radius: float) -> None: ... @overload - def __init__(self, point1: Point, point2: Point, point3: Point) -> None: - ... + def __init__(self, point1: Point, point2: Point, point3: Point) -> None: ... diff --git a/src/Mod/Part/App/Cone.pyi b/src/Mod/Part/App/Cone.pyi index 1b099f2bac..d9e89c0bee 100644 --- a/src/Mod/Part/App/Cone.pyi +++ b/src/Mod/Part/App/Cone.pyi @@ -8,7 +8,6 @@ from Base.Axis import Axis as AxisPy from GeometrySurface import GeometrySurface from typing import Final - @export( PythonName="Part.Cone", Twin="GeomCone", diff --git a/src/Mod/Part/App/Conic.pyi b/src/Mod/Part/App/Conic.pyi index 3cbcfe274c..40d78298ae 100644 --- a/src/Mod/Part/App/Conic.pyi +++ b/src/Mod/Part/App/Conic.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from GeometryCurve import GeometryCurve from typing import Final - @export( PythonName="Part.Conic", Twin="GeomConic", diff --git a/src/Mod/Part/App/Cylinder.pyi b/src/Mod/Part/App/Cylinder.pyi index 75f6a73086..211d6a05e4 100644 --- a/src/Mod/Part/App/Cylinder.pyi +++ b/src/Mod/Part/App/Cylinder.pyi @@ -8,7 +8,6 @@ from Circle import Circle from GeometrySurface import GeometrySurface from typing import overload - @export( PythonName="Part.Cylinder", Twin="GeomCylinder", @@ -52,21 +51,12 @@ class Cylinder(GeometrySurface): """The axis direction of the cylinder""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, cylinder: "Cylinder") -> None: - ... - + def __init__(self, cylinder: "Cylinder") -> None: ... @overload - def __init__(self, cylinder: "Cylinder", distance: float) -> None: - ... - + def __init__(self, cylinder: "Cylinder", distance: float) -> None: ... @overload - def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None: - ... - + def __init__(self, point1: Vector, point2: Vector, point3: Vector) -> None: ... @overload - def __init__(self, circle: Circle) -> None: - ... + def __init__(self, circle: Circle) -> None: ... diff --git a/src/Mod/Part/App/Ellipse.pyi b/src/Mod/Part/App/Ellipse.pyi index 6a14ae39ee..72b44872f2 100644 --- a/src/Mod/Part/App/Ellipse.pyi +++ b/src/Mod/Part/App/Ellipse.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Conic import Conic from typing import Final - @export( Twin="GeomEllipse", TwinPointer="GeomEllipse", diff --git a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi index 495698a5d3..aa173bfaed 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfCircle2d.pyi @@ -6,7 +6,6 @@ from Metadata import export from typing import Final, overload from Part.Geom2d import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfCircle2d", Twin="Geom2dArcOfCircle", @@ -30,8 +29,7 @@ class ArcOfCircle2d(ArcOfConic2d): """The internal circle representation""" @overload - def __init__(self, Radius: float, Circle: object) -> None: - ... + def __init__(self, Radius: float, Circle: object) -> None: ... """ ArcOfCircle2d(Radius, Circle) -> None diff --git a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi index eaa16a4fce..1633a9a62f 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfConic2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from typing import Final from Part.Geom2d import Curve2d - @export( PythonName="Part.Geom2d.ArcOfConic2d", Twin="Geom2dArcOfConic", diff --git a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi index 31fe585ca7..3199ebaf18 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfEllipse2d.pyi @@ -6,7 +6,6 @@ from Metadata import export from typing import Final, overload from Part import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfEllipse2d", Twin="Geom2dArcOfEllipse", @@ -32,5 +31,4 @@ class ArcOfEllipse2d(ArcOfConic2d): """The internal ellipse representation""" @overload - def __init__(self) -> None: - ... + def __init__(self) -> None: ... diff --git a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi index 50559406e3..658503146f 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfHyperbola2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, overload from typing import Final from Part.Geom2d import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfHyperbola2d", Twin="Geom2dArcOfHyperbola", @@ -31,5 +30,4 @@ class ArcOfHyperbola2d(ArcOfConic2d): """The internal hyperbola representation""" @overload - def __init__(self) -> None: - ... + def __init__(self) -> None: ... diff --git a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi index ddaa706489..5cec0559f6 100644 --- a/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/ArcOfParabola2d.pyi @@ -6,7 +6,6 @@ from Metadata import export, overload from typing import Final from Part.Geom2d import ArcOfConic2d - @export( PythonName="Part.Geom2d.ArcOfParabola2d", Twin="Geom2dArcOfParabola", @@ -30,5 +29,4 @@ class ArcOfParabola2d(ArcOfConic2d): """The internal parabola representation.""" @overload - def __init__(self) -> None: - ... + def __init__(self) -> None: ... diff --git a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi index 59f7cdfbce..bfb6d7a688 100644 --- a/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BSplineCurve2d.pyi @@ -7,7 +7,6 @@ from typing import Final, overload from Part.Curve2d import Curve2d from Base.Vector import Vector - @export( Twin="Geom2dBSplineCurve", TwinPointer="Geom2dBSplineCurve", @@ -88,13 +87,9 @@ class BSplineCurve2d(Curve2d): ... @overload - def increaseMultiplicity(self, index: int, mult: int, /) -> None: - ... - + def increaseMultiplicity(self, index: int, mult: int, /) -> None: ... @overload - def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: - ... - + def increaseMultiplicity(self, start: int, end: int, mult: int, /) -> None: ... def increaseMultiplicity(self, *args, **kwargs) -> None: """ increaseMultiplicity(int index, int mult) @@ -387,9 +382,7 @@ class BSplineCurve2d(Curve2d): knots: tuple[float, ...], periodic: bool, degree: int, - ) -> None: - ... - + ) -> None: ... @overload def buildFromPolesMultsKnots( self, @@ -400,9 +393,7 @@ class BSplineCurve2d(Curve2d): degree: int, weights: tuple[float, ...], CheckRational: bool, - ) -> None: - ... - + ) -> None: ... def buildFromPolesMultsKnots(self, **kwargs) -> None: """ Builds a B-Spline by a lists of Poles, Mults, Knots. diff --git a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi index 732caeede3..fa5117aed5 100644 --- a/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/BezierCurve2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Part.Curve2d import Curve2d from typing import Final, List - @export( Twin="Geom2dBezierCurve", TwinPointer="Geom2dBezierCurve", diff --git a/src/Mod/Part/App/Geom2d/Circle2d.pyi b/src/Mod/Part/App/Geom2d/Circle2d.pyi index 88625eaa07..2ddba75053 100644 --- a/src/Mod/Part/App/Geom2d/Circle2d.pyi +++ b/src/Mod/Part/App/Geom2d/Circle2d.pyi @@ -6,7 +6,6 @@ from Metadata import export from typing import overload, Tuple from Part.Geom2d import Conic2d - @export( PythonName="Part.Geom2d.Circle2d", Twin="Geom2dCircle", @@ -42,27 +41,17 @@ class Circle2d(Conic2d): """The radius of the circle.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, circle: "Circle2d") -> None: - ... - + def __init__(self, circle: "Circle2d") -> None: ... @overload - def __init__(self, circle: "Circle2d", Distance: float) -> None: - ... - + def __init__(self, circle: "Circle2d", Distance: float) -> None: ... @overload - def __init__(self, Center: Tuple[float, float], Radius: float) -> None: - ... - + def __init__(self, Center: Tuple[float, float], Radius: float) -> None: ... @overload def __init__( self, Point1: Tuple[float, float], Point2: Tuple[float, float], Point3: Tuple[float, float] - ) -> None: - ... - + ) -> None: ... @overload def __init__(self, *args, **kwargs) -> None: """ diff --git a/src/Mod/Part/App/Geom2d/Conic2d.pyi b/src/Mod/Part/App/Geom2d/Conic2d.pyi index 10cb602dfd..5a13a9ad68 100644 --- a/src/Mod/Part/App/Geom2d/Conic2d.pyi +++ b/src/Mod/Part/App/Geom2d/Conic2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from typing import Final from Part.Geom2d import Curve2d - @export( PythonName="Part.Geom2d.Conic2d", Twin="Geom2dConic", diff --git a/src/Mod/Part/App/Geom2d/Curve2d.pyi b/src/Mod/Part/App/Geom2d/Curve2d.pyi index f389d2a4ae..d4b074420b 100644 --- a/src/Mod/Part/App/Geom2d/Curve2d.pyi +++ b/src/Mod/Part/App/Geom2d/Curve2d.pyi @@ -8,7 +8,6 @@ from Part.App.Geom2d.Geometry2d import Geometry2d from Part.App.Geom2d.BSplineCurve import BSplineCurve from typing import Final, overload, List - @export( Include="Mod/Part/App/Geometry2d.h", FatherInclude="Mod/Part/App/Geom2d/Geometry2dPy.h", @@ -54,34 +53,22 @@ class Curve2d(Geometry2d): @overload @constmethod - def discretize(self, *, Number: int) -> List[Vector]: - ... - + def discretize(self, *, Number: int) -> List[Vector]: ... @overload @constmethod - def discretize(self, *, QuasiNumber: int) -> List[Vector]: - ... - + def discretize(self, *, QuasiNumber: int) -> List[Vector]: ... @overload @constmethod - def discretize(self, *, Distance: float) -> List[Vector]: - ... - + def discretize(self, *, Distance: float) -> List[Vector]: ... @overload @constmethod - def discretize(self, *, Deflection: float) -> List[Vector]: - ... - + def discretize(self, *, Deflection: float) -> List[Vector]: ... @overload @constmethod - def discretize(self, *, QuasiDeflection: float) -> List[Vector]: - ... - + def discretize(self, *, QuasiDeflection: float) -> List[Vector]: ... @overload @constmethod - def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]: - ... - + def discretize(self, *, Angular: float, Curvature: float, Minimum: int = 2) -> List[Vector]: ... @constmethod def discretize(self, **kwargs) -> List[Vector]: """ @@ -120,21 +107,13 @@ class Curve2d(Geometry2d): ... @overload - def length(self, /) -> float: - ... - + def length(self, /) -> float: ... @overload - def length(self, uMin: float, /) -> float: - ... - + def length(self, uMin: float, /) -> float: ... @overload - def length(self, uMin: float, uMax: float, /) -> float: - ... - + def length(self, uMin: float, uMax: float, /) -> float: ... @overload - def length(self, uMin: float, uMax: float, Tol: float, /) -> float: - ... - + def length(self, uMin: float, uMax: float, Tol: float, /) -> float: ... def length(self, *args: float) -> float: """ Computes the length of a curve @@ -143,13 +122,9 @@ class Curve2d(Geometry2d): ... @overload - def parameterAtDistance(self, abscissa: float, /) -> float: - ... - + def parameterAtDistance(self, abscissa: float, /) -> float: ... @overload - def parameterAtDistance(self, abscissa: float, startingParameter: float, /) -> float: - ... - + def parameterAtDistance(self, abscissa: float, startingParameter: float, /) -> float: ... def parameterAtDistance(self, *args: float) -> float: """ Returns the parameter on the curve of a point at @@ -206,13 +181,9 @@ class Curve2d(Geometry2d): ... @overload - def toBSpline(self, /) -> BSplineCurve: - ... - + def toBSpline(self, /) -> BSplineCurve: ... @overload - def toBSpline(self, First: float, Last: float, /) -> BSplineCurve: - ... - + def toBSpline(self, First: float, Last: float, /) -> BSplineCurve: ... def toBSpline(self, *args: float) -> BSplineCurve: """ Converts a curve of any type (only part from First to Last) diff --git a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi index eda35b092a..789a73884f 100644 --- a/src/Mod/Part/App/Geom2d/Ellipse2d.pyi +++ b/src/Mod/Part/App/Geom2d/Ellipse2d.pyi @@ -6,7 +6,6 @@ from typing import Final, overload from Base.Metadata import export from Part.Conic2d import Conic2d - @export( Twin="Geom2dEllipse", TwinPointer="Geom2dEllipse", @@ -56,21 +55,12 @@ class Ellipse2d(Conic2d): """The second focus is on the negative side of the major axis of the ellipse.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, Ellipse: "Ellipse2d") -> None: - ... - + def __init__(self, Ellipse: "Ellipse2d") -> None: ... @overload - def __init__(self, S1: object, S2: object, Center: object) -> None: - ... - + def __init__(self, S1: object, S2: object, Center: object) -> None: ... @overload - def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: - ... - + def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ... @overload - def __init__(self, *args, **kwargs) -> None: - ... + def __init__(self, *args, **kwargs) -> None: ... diff --git a/src/Mod/Part/App/Geom2d/Geometry2d.pyi b/src/Mod/Part/App/Geom2d/Geometry2d.pyi index 2a423ed193..971e0453bc 100644 --- a/src/Mod/Part/App/Geom2d/Geometry2d.pyi +++ b/src/Mod/Part/App/Geom2d/Geometry2d.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase - @export( Twin="Geometry2d", TwinPointer="Geometry2d", diff --git a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi index 549538bca1..e445bf3cdd 100644 --- a/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Hyperbola2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.Conic2d import Conic2d from typing import Final, overload - @export( Twin="Geom2dHyperbola", TwinPointer="Geom2dHyperbola", @@ -62,17 +61,10 @@ class Hyperbola2d(Conic2d): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, Hyperbola: "Hyperbola2d") -> None: - ... - + def __init__(self, Hyperbola: "Hyperbola2d") -> None: ... @overload - def __init__(self, S1: object, S2: object, Center: object) -> None: - ... - + def __init__(self, S1: object, S2: object, Center: object) -> None: ... @overload - def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: - ... + def __init__(self, Center: object, MajorRadius: float, MinorRadius: float) -> None: ... diff --git a/src/Mod/Part/App/Geom2d/Line2d.pyi b/src/Mod/Part/App/Geom2d/Line2d.pyi index f7515eb117..43293ca306 100644 --- a/src/Mod/Part/App/Geom2d/Line2d.pyi +++ b/src/Mod/Part/App/Geom2d/Line2d.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.Geom2d.Curve2d import Curve2d - @export( PythonName="Part.Geom2d.Line2d", Twin="Geom2dLine", diff --git a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi index a3b5c6205c..92297e38fc 100644 --- a/src/Mod/Part/App/Geom2d/Line2dSegment.pyi +++ b/src/Mod/Part/App/Geom2d/Line2dSegment.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from typing import overload from Part.Geom2d import Curve2d - @export( PythonName="Part.Geom2d.Line2dSegment", Twin="Geom2dLineSegment", @@ -37,17 +36,11 @@ class Line2dSegment(Curve2d): """Returns the end point of this line segment.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, Line: "Line2dSegment") -> None: - ... - + def __init__(self, Line: "Line2dSegment") -> None: ... @overload - def __init__(self, Point1: object, Point2: object) -> None: - ... - + def __init__(self, Point1: object, Point2: object) -> None: ... def setParameterRange(self) -> None: """ Set the parameter range of the underlying line segment geometry. diff --git a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi index b1ec72b215..18efbc5da8 100644 --- a/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi +++ b/src/Mod/Part/App/Geom2d/OffsetCurve2d.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Metadata import export from Part.Geom2d import Curve2d - @export( Name="OffsetCurve2dPy", Namespace="Part", diff --git a/src/Mod/Part/App/Geom2d/Parabola2d.pyi b/src/Mod/Part/App/Geom2d/Parabola2d.pyi index 39e56ad12f..cba41e83c7 100644 --- a/src/Mod/Part/App/Geom2d/Parabola2d.pyi +++ b/src/Mod/Part/App/Geom2d/Parabola2d.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.Geom2d.Conic2d import Conic2d from typing import Final - @export( Include="Mod/Part/App/Geometry2d.h", FatherInclude="Mod/Part/App/Geom2d/Conic2dPy.h", diff --git a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi index 1c9a1379c9..166ccebb44 100644 --- a/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi +++ b/src/Mod/Part/App/GeomPlate/BuildPlateSurface.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase from typing import List - @export( PythonName="Part.GeomPlate.BuildPlateSurfacePy", Twin="GeomPlate_BuildPlateSurface", diff --git a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi index da64f6ce92..dd57bbb6b7 100644 --- a/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/CurveConstraint.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Final - @export( PythonName="Part.GeomPlate.CurveConstraintPy", Twin="GeomPlate_CurveConstraint", diff --git a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi index a30d69b969..c6aba5250a 100644 --- a/src/Mod/Part/App/GeomPlate/PointConstraint.pyi +++ b/src/Mod/Part/App/GeomPlate/PointConstraint.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Base.PyObjectBase import PyObjectBase from typing import Tuple - @export( PythonName="Part.GeomPlate.PointConstraintPy", Twin="GeomPlate_PointConstraint", diff --git a/src/Mod/Part/App/Geometry.pyi b/src/Mod/Part/App/Geometry.pyi index 72265b63ef..cc077e1cf0 100644 --- a/src/Mod/Part/App/Geometry.pyi +++ b/src/Mod/Part/App/Geometry.pyi @@ -9,7 +9,6 @@ from Base.Vector import Vector from Base.Matrix import Matrix from typing import Final, List, Optional - @export( Include="Mod/Part/App/Geometry.h", Constructor=True, diff --git a/src/Mod/Part/App/GeometryBoolExtension.pyi b/src/Mod/Part/App/GeometryBoolExtension.pyi index b09d91dd96..12a40f8d08 100644 --- a/src/Mod/Part/App/GeometryBoolExtension.pyi +++ b/src/Mod/Part/App/GeometryBoolExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometryExtension import GeometryExtension - @export( PythonName="Part.GeometryBoolExtension", Include="Mod/Part/App/GeometryDefaultExtension.h", diff --git a/src/Mod/Part/App/GeometryCurve.pyi b/src/Mod/Part/App/GeometryCurve.pyi index 553a872164..9d1c56ed97 100644 --- a/src/Mod/Part/App/GeometryCurve.pyi +++ b/src/Mod/Part/App/GeometryCurve.pyi @@ -10,7 +10,6 @@ from Part.App.BSplineCurve import BSplineCurve from Part.App.TrimmedCurve import TrimmedCurve from typing import Final, overload, List, Union, Optional, Tuple - @export( Twin="GeomCurve", TwinPointer="GeomCurve", @@ -48,8 +47,9 @@ class GeometryCurve(Geometry): @overload @constmethod - def discretize(self, Number: int, *, First: Optional[float] = None, - Last: Optional[float] = None) -> List[Vector]: + def discretize( + self, Number: int, *, First: Optional[float] = None, Last: Optional[float] = None + ) -> List[Vector]: """ Discretizes the curve and returns a list of points. """ @@ -57,11 +57,9 @@ class GeometryCurve(Geometry): @overload @constmethod - def discretize(self, - QuasiNumber: int, - *, - First: Optional[float] = None, - Last: Optional[float] = None) -> List[Vector]: + def discretize( + self, QuasiNumber: int, *, First: Optional[float] = None, Last: Optional[float] = None + ) -> List[Vector]: """ Discretizes the curve and returns a list of quasi equidistant points. """ @@ -69,11 +67,9 @@ class GeometryCurve(Geometry): @overload @constmethod - def discretize(self, - Distance: float, - *, - First: Optional[float] = None, - Last: Optional[float] = None) -> List[Vector]: + def discretize( + self, Distance: float, *, First: Optional[float] = None, Last: Optional[float] = None + ) -> List[Vector]: """ Discretizes the curve and returns a list of equidistant points with distance 'd'. """ @@ -81,11 +77,9 @@ class GeometryCurve(Geometry): @overload @constmethod - def discretize(self, - Deflection: float, - *, - First: Optional[float] = None, - Last: Optional[float] = None) -> List[Vector]: + def discretize( + self, Deflection: float, *, First: Optional[float] = None, Last: Optional[float] = None + ) -> List[Vector]: """ Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve. """ @@ -94,11 +88,7 @@ class GeometryCurve(Geometry): @overload @constmethod def discretize( - self, - QuasiDeflection: float, - *, - First: Optional[float] = None, - Last: Optional[float] = None + self, QuasiDeflection: float, *, First: Optional[float] = None, Last: Optional[float] = None ) -> List[Vector]: """ Discretizes the curve and returns a list of points with a maximum deflection 'd' to the curve (faster). diff --git a/src/Mod/Part/App/GeometryDoubleExtension.pyi b/src/Mod/Part/App/GeometryDoubleExtension.pyi index 4031272538..537c16c1c6 100644 --- a/src/Mod/Part/App/GeometryDoubleExtension.pyi +++ b/src/Mod/Part/App/GeometryDoubleExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometryExtension import GeometryExtension - @export( PythonName="Part.GeometryDoubleExtension", Include="Mod/Part/App/GeometryDefaultExtension.h", diff --git a/src/Mod/Part/App/GeometryExtension.pyi b/src/Mod/Part/App/GeometryExtension.pyi index 85d8d3a404..6ce1048da2 100644 --- a/src/Mod/Part/App/GeometryExtension.pyi +++ b/src/Mod/Part/App/GeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase - @export( Include="Mod/Part/App/GeometryExtension.h", Constructor=True, diff --git a/src/Mod/Part/App/GeometryIntExtension.pyi b/src/Mod/Part/App/GeometryIntExtension.pyi index 8c3260de15..2b379986ac 100644 --- a/src/Mod/Part/App/GeometryIntExtension.pyi +++ b/src/Mod/Part/App/GeometryIntExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.GeometryExtension import GeometryExtension - @export( Father="GeometryExtensionPy", Name="GeometryIntExtensionPy", diff --git a/src/Mod/Part/App/GeometryStringExtension.pyi b/src/Mod/Part/App/GeometryStringExtension.pyi index 85188f483f..22c0f87d15 100644 --- a/src/Mod/Part/App/GeometryStringExtension.pyi +++ b/src/Mod/Part/App/GeometryStringExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometryExtension import GeometryExtension - @export( PythonName="Part.GeometryStringExtension", Include="Mod/Part/App/GeometryDefaultExtension.h", diff --git a/src/Mod/Part/App/GeometrySurface.pyi b/src/Mod/Part/App/GeometrySurface.pyi index 29c0153a49..e86e7e4143 100644 --- a/src/Mod/Part/App/GeometrySurface.pyi +++ b/src/Mod/Part/App/GeometrySurface.pyi @@ -10,7 +10,6 @@ from GeometryCurve import GeometryCurve from Line import Line from typing import Final, overload, Any, Tuple, List, Literal, Union - @export( Twin="GeomSurface", TwinPointer="GeomSurface", @@ -86,29 +85,23 @@ class GeometrySurface(Geometry): ... @overload - def projectPoint(self, Point: Vector, Method: Literal["NearestPoint"] = "NearestPoint") -> Vector: - ... - + def projectPoint( + self, Point: Vector, Method: Literal["NearestPoint"] = "NearestPoint" + ) -> Vector: ... @overload - def projectPoint(self, Point: Vector, Method: Literal["LowerDistance"]) -> float: - ... - + def projectPoint(self, Point: Vector, Method: Literal["LowerDistance"]) -> float: ... @overload - def projectPoint(self, Point: Vector, Method: Literal["LowerDistanceParameters"]) -> Tuple[float, float]: - ... - + def projectPoint( + self, Point: Vector, Method: Literal["LowerDistanceParameters"] + ) -> Tuple[float, float]: ... @overload - def projectPoint(self, Point: Vector, Method: Literal["Distance"]) -> List[float]: - ... - + def projectPoint(self, Point: Vector, Method: Literal["Distance"]) -> List[float]: ... @overload - def projectPoint(self, Point: Vector, Method: Literal["Parameters"]) -> List[Tuple[float, float]]: - ... - + def projectPoint( + self, Point: Vector, Method: Literal["Parameters"] + ) -> List[Tuple[float, float]]: ... @overload - def projectPoint(self, Point: Vector, Method: Literal["Point"]) -> List[Vector]: - ... - + def projectPoint(self, Point: Vector, Method: Literal["Point"]) -> List[Vector]: ... @constmethod def projectPoint(self, Point: Vector, Method: str = ...) -> Any: """ @@ -242,9 +235,7 @@ class GeometrySurface(Geometry): max_degree_v: int = 25, max_segments: int = 1000, precision_code: int = 0, - ) -> Any: - ... - + ) -> Any: ... @constmethod def toBSpline( self, diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi index c804cd5d1d..df38a7b7a0 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_Algo.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase - @export( Twin="HLRBRep_Algo", TwinPointer="HLRBRep_Algo", diff --git a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi index d2dc847187..724075bcf7 100644 --- a/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRBRep_PolyAlgo.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase from Part.TopoShapePy import TopoShape - @export( PythonName="Part.HLRBRep_PolyAlgo", Twin="HLRBRep_PolyAlgo", @@ -175,7 +174,6 @@ class HLRBRep_PolyAlgo(PyObjectBase): Make a shape with the internal outlines in each face of shape S. """ ... - TolAngular: float = ... TolCoef: float = ... diff --git a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi index 17fd5598c1..74afc101be 100644 --- a/src/Mod/Part/App/HLRBRep/HLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/HLRToShape.pyi @@ -7,7 +7,6 @@ from Part.TopoShapePy import TopoShape from Base.PyObjectBase import PyObjectBase from typing import Optional - @export( PythonName="Part.HLRToShapePy", Twin="HLRBRep_HLRToShape", diff --git a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi index a53e687a58..0b9a639ed7 100644 --- a/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi +++ b/src/Mod/Part/App/HLRBRep/PolyHLRToShape.pyi @@ -8,7 +8,6 @@ from Part.HLRBRep_PolyAlgo import HLRBRep_PolyAlgo from Part.TopoShapePy import TopoShape from typing import Optional - @export( PythonName="Part.PolyHLRToShapePy", Twin="HLRBRep_PolyHLRToShape", diff --git a/src/Mod/Part/App/Hyperbola.pyi b/src/Mod/Part/App/Hyperbola.pyi index 495a1ab6a6..6e2775426c 100644 --- a/src/Mod/Part/App/Hyperbola.pyi +++ b/src/Mod/Part/App/Hyperbola.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Conic import Conic from typing import Final, overload - @export( Name="HyperbolaPy", Namespace="Part", @@ -62,17 +61,10 @@ class Hyperbola(Conic): """The second focus is on the negative side of the major axis of the hyperbola.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, hyperbola: "Hyperbola") -> None: - ... - + def __init__(self, hyperbola: "Hyperbola") -> None: ... @overload - def __init__(self, S1: Vector, S2: Vector, Center: Vector) -> None: - ... - + def __init__(self, S1: Vector, S2: Vector, Center: Vector) -> None: ... @overload - def __init__(self, Center: Vector, MajorRadius: float, MinorRadius: float) -> None: - ... + def __init__(self, Center: Vector, MajorRadius: float, MinorRadius: float) -> None: ... diff --git a/src/Mod/Part/App/Line.pyi b/src/Mod/Part/App/Line.pyi index a8703db4da..b80a8c3773 100644 --- a/src/Mod/Part/App/Line.pyi +++ b/src/Mod/Part/App/Line.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from GeometryCurve import GeometryCurve from typing import overload - @export( PythonName="Part.Line", Twin="GeomLine", @@ -40,13 +39,8 @@ class Line(GeometryCurve): """Returns the direction of this line.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, line: "Line") -> None: - ... - + def __init__(self, line: "Line") -> None: ... @overload - def __init__(self, point1: Vector, point2: Vector) -> None: - ... + def __init__(self, point1: Vector, point2: Vector) -> None: ... diff --git a/src/Mod/Part/App/LineSegment.pyi b/src/Mod/Part/App/LineSegment.pyi index 3d8a54c1f8..43c493fbb2 100644 --- a/src/Mod/Part/App/LineSegment.pyi +++ b/src/Mod/Part/App/LineSegment.pyi @@ -8,7 +8,6 @@ from TrimmedCurve import TrimmedCurve from Point import Point from typing import overload - @export( PythonName="Part.LineSegment", Twin="GeomLineSegment", @@ -38,17 +37,11 @@ class LineSegment(TrimmedCurve): """Returns the end point point of this line.""" @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, line_segment: "LineSegment") -> None: - ... - + def __init__(self, line_segment: "LineSegment") -> None: ... @overload - def __init__(self, point1: Point, point2: Point) -> None: - ... - + def __init__(self, point1: Point, point2: Point) -> None: ... def setParameterRange(self) -> None: """ Set the parameter range of the underlying line geometry diff --git a/src/Mod/Part/App/OffsetCurve.pyi b/src/Mod/Part/App/OffsetCurve.pyi index 34811cf0d8..56f4b29b45 100644 --- a/src/Mod/Part/App/OffsetCurve.pyi +++ b/src/Mod/Part/App/OffsetCurve.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Base.Vector import Vector from GeometryCurve import GeometryCurve - @export( PythonName="Part.OffsetCurve", Twin="GeomOffsetCurve", diff --git a/src/Mod/Part/App/OffsetSurface.pyi b/src/Mod/Part/App/OffsetSurface.pyi index aaf06005e0..d0978b134f 100644 --- a/src/Mod/Part/App/OffsetSurface.pyi +++ b/src/Mod/Part/App/OffsetSurface.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface - @export( Twin="GeomOffsetSurface", TwinPointer="GeomOffsetSurface", diff --git a/src/Mod/Part/App/Parabola.pyi b/src/Mod/Part/App/Parabola.pyi index 94bc93c8cf..cf3fa57d55 100644 --- a/src/Mod/Part/App/Parabola.pyi +++ b/src/Mod/Part/App/Parabola.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Conic import Conic from typing import Final - @export( Twin="GeomParabola", TwinPointer="GeomParabola", diff --git a/src/Mod/Part/App/Part2DObject.pyi b/src/Mod/Part/App/Part2DObject.pyi index 2a973f46d3..f23d04bc71 100644 --- a/src/Mod/Part/App/Part2DObject.pyi +++ b/src/Mod/Part/App/Part2DObject.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from PartFeature import PartFeature - @export( Twin="Part2DObject", TwinPointer="Part2DObject", diff --git a/src/Mod/Part/App/PartFeature.pyi b/src/Mod/Part/App/PartFeature.pyi index 70579119f6..a252dfebcf 100644 --- a/src/Mod/Part/App/PartFeature.pyi +++ b/src/Mod/Part/App/PartFeature.pyi @@ -7,7 +7,6 @@ from App.GeoFeature import GeoFeature from App.DocumentObject import DocumentObject from typing import List, Tuple, Union - @export( Twin="Feature", TwinPointer="Feature", diff --git a/src/Mod/Part/App/Plane.pyi b/src/Mod/Part/App/Plane.pyi index f21f10aadb..f684ccb8ed 100644 --- a/src/Mod/Part/App/Plane.pyi +++ b/src/Mod/Part/App/Plane.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface - @export( PythonName="Part.Plane", Twin="GeomPlane", diff --git a/src/Mod/Part/App/PlateSurface.pyi b/src/Mod/Part/App/PlateSurface.pyi index 946413f9fa..290b98924d 100644 --- a/src/Mod/Part/App/PlateSurface.pyi +++ b/src/Mod/Part/App/PlateSurface.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from GeometrySurface import GeometrySurface - @export( Twin="GeomPlateSurface", TwinPointer="GeomPlateSurface", diff --git a/src/Mod/Part/App/Point.pyi b/src/Mod/Part/App/Point.pyi index 94da16a100..2ce0efb4b4 100644 --- a/src/Mod/Part/App/Point.pyi +++ b/src/Mod/Part/App/Point.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from Geometry import Geometry from typing import overload - @export( PythonName="Part.Point", Twin="GeomPoint", @@ -34,24 +33,17 @@ class Point(Geometry): """ @overload - def __init__(self) -> None: - ... - + def __init__(self) -> None: ... @overload - def __init__(self, other: "Point") -> None: - ... - + def __init__(self, other: "Point") -> None: ... @overload - def __init__(self, coordinates: Vector) -> None: - ... - + def __init__(self, coordinates: Vector) -> None: ... @constmethod def toShape(self) -> object: """ Create a vertex from this point. """ ... - X: float = ... """X component of this point.""" diff --git a/src/Mod/Part/App/RectangularTrimmedSurface.pyi b/src/Mod/Part/App/RectangularTrimmedSurface.pyi index cbd3417ced..a55943033f 100644 --- a/src/Mod/Part/App/RectangularTrimmedSurface.pyi +++ b/src/Mod/Part/App/RectangularTrimmedSurface.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from GeometrySurface import GeometrySurface from typing import Any, Final, Tuple - @export( Twin="GeomTrimmedSurface", TwinPointer="GeomTrimmedSurface", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi index 0c676c4942..203266260d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Edge.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, class_declarations from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.Edge", Include="ShapeFix_Edge.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi index be8753a296..a4d891a586 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_EdgeConnect.pyi @@ -8,7 +8,6 @@ from Part.App.TopoShapeEdge import TopoShapeEdge from Part.App.TopoShape import TopoShape from typing import overload - @export( PythonName="Part.ShapeFix.EdgeConnect", Include="ShapeFix_EdgeConnect.hxx", @@ -24,13 +23,9 @@ class ShapeFix_EdgeConnect(PyObjectBase): """ @overload - def add(self, edge1: TopoShapeEdge, edge2: TopoShapeEdge, /) -> None: - ... - + def add(self, edge1: TopoShapeEdge, edge2: TopoShapeEdge, /) -> None: ... @overload - def add(self, shape: TopoShape, /) -> None: - ... - + def add(self, shape: TopoShape, /) -> None: ... def add(self, *args, **kwargs) -> None: """ add(edge, edge) diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi index c19740fcfa..6d7c2725e4 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Face.pyi @@ -8,7 +8,6 @@ from Part.TopoShapeFace import TopoShapeFace from Part.TopoShapeShell import TopoShapeShell from typing import Union - @export( PythonName="Part.ShapeFix.Face", Include="ShapeFix_Face.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi index 0cee8752f5..8cc7a62ac9 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FaceConnect.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.FaceConnect", Include="ShapeFix_FaceConnect.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi index 11ba58beb6..c18e79f370 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallFace.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.App.TopoShape import TopoShape - @export( PythonName="Part.ShapeFix.FixSmallFace", Include="ShapeFix_FixSmallFace.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi index 91aed38680..8d64b5f02e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FixSmallSolid.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.FixSmallSolid", Include="ShapeFix_FixSmallSolid.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi index 9742f2bbe0..180d90ceeb 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_FreeBounds.pyi @@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase from Part.App.TopoShapeCompound import TopoShapeCompound from Part.App.TopoShape import TopoShape - @export( PythonName="Part.ShapeFix.FreeBounds", Include="ShapeFix_FreeBounds.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi index 4937fe62c5..8b087ca05e 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Root.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod, class_declarations from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.Root", Include="ShapeFix_Root.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi index 89a857a9a7..36a3a0d923 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shape.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root from Part.TopoShape import TopoShape - @export( PythonName="Part.ShapeFix.Shape", Include="ShapeFix_Shape.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi index a36d4c5b7d..f76510afe5 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_ShapeTolerance.pyi @@ -7,7 +7,6 @@ from Base.PyObjectBase import PyObjectBase from Part.App.TopoShape import TopoShape from typing import overload - @export( PythonName="Part.ShapeFix.ShapeTolerance", Include="ShapeFix_ShapeTolerance.hxx", @@ -23,13 +22,11 @@ class ShapeFix_ShapeTolerance(PyObjectBase): """ @overload - def limitTolerance(self, shape: TopoShape, tmin: float, /) -> None: - ... - + def limitTolerance(self, shape: TopoShape, tmin: float, /) -> None: ... @overload - def limitTolerance(self, shape: TopoShape, tmin: float, tmax: float, ShapeEnum: str = None, /) -> None: - ... - + def limitTolerance( + self, shape: TopoShape, tmin: float, tmax: float, ShapeEnum: str = None, / + ) -> None: ... def limitTolerance( self, shape: TopoShape, tmin: float, tmax: float = 0, ShapeEnum: str = None, / ) -> None: @@ -39,13 +36,11 @@ class ShapeFix_ShapeTolerance(PyObjectBase): ... @overload - def setTolerance(self, shape: TopoShape, precision: float, /) -> None: - ... - + def setTolerance(self, shape: TopoShape, precision: float, /) -> None: ... @overload - def setTolerance(self, shape: TopoShape, precision: float, ShapeEnum: str = None, /) -> None: - ... - + def setTolerance( + self, shape: TopoShape, precision: float, ShapeEnum: str = None, / + ) -> None: ... def setTolerance(self, shape: TopoShape, precision: float, ShapeEnum: str = None, /) -> None: """ setTolerance(shape, precision, [ShapeEnum=SHAPE]) diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi index 37e492ebb6..cb94af5bd3 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Shell.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Shell", Twin="ShapeFix_Shell", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi index f27a985a76..e023e4ff60 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Solid.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Solid", Twin="ShapeFix_Solid", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi index 7c1ecf0f73..f659da956c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitCommonVertex.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.SplitCommonVertex", Include="ShapeFix_SplitCommonVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi index 497fd855d6..e2d8a9fd8c 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_SplitTool.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.SplitTool", Include="ShapeFix_SplitTool.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi index 53f2cdffce..5c309aeb73 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wire.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Wire", Twin="ShapeFix_Wire", @@ -230,7 +229,6 @@ class ShapeFix_Wire(ShapeFix_Root): This method examines the geometry and applies corrective actions to eliminate or reduce the presence of tails. """ pass - ModifyTopologyMode: bool = ... """Mode for modifying topology of the wire""" diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi index bcea75aca2..8f8211f685 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_WireVertex.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeFix.WireVertex", Include="ShapeFix_WireVertex.hxx", diff --git a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi index 7234f6d6e0..7a63f8c06d 100644 --- a/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi +++ b/src/Mod/Part/App/ShapeFix/ShapeFix_Wireframe.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.ShapeFix.ShapeFix_Root import ShapeFix_Root - @export( PythonName="Part.ShapeFix.Wireframe", Twin="ShapeFix_Wireframe", @@ -52,5 +51,4 @@ class ShapeFix_Wireframe(ShapeFix_Root): """ ... - def shape(self) -> None: - ... + def shape(self) -> None: ... diff --git a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi index 48d780975f..885323d12a 100644 --- a/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi +++ b/src/Mod/Part/App/ShapeUpgrade/UnifySameDomain.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Base.PyObjectBase import PyObjectBase - @export( PythonName="Part.ShapeUpgrade.UnifySameDomain", Include="ShapeUpgrade_UnifySameDomain.hxx", diff --git a/src/Mod/Part/App/Sphere.pyi b/src/Mod/Part/App/Sphere.pyi index f54858d951..c98bcf6ab6 100644 --- a/src/Mod/Part/App/Sphere.pyi +++ b/src/Mod/Part/App/Sphere.pyi @@ -8,7 +8,6 @@ from Base.Axis import Axis as AxisPy from GeometrySurface import GeometrySurface from typing import Final - @export( Twin="GeomSphere", TwinPointer="GeomSphere", diff --git a/src/Mod/Part/App/SurfaceOfExtrusion.pyi b/src/Mod/Part/App/SurfaceOfExtrusion.pyi index 93784c52e3..798b97ab10 100644 --- a/src/Mod/Part/App/SurfaceOfExtrusion.pyi +++ b/src/Mod/Part/App/SurfaceOfExtrusion.pyi @@ -7,7 +7,6 @@ from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve from Base.Vector import Vector - @export( Twin="GeomSurfaceOfExtrusion", TwinPointer="GeomSurfaceOfExtrusion", diff --git a/src/Mod/Part/App/SurfaceOfRevolution.pyi b/src/Mod/Part/App/SurfaceOfRevolution.pyi index e58f12938f..2b77df30bc 100644 --- a/src/Mod/Part/App/SurfaceOfRevolution.pyi +++ b/src/Mod/Part/App/SurfaceOfRevolution.pyi @@ -9,7 +9,6 @@ from GeometrySurface import GeometrySurface from GeometryCurve import GeometryCurve from typing import overload - @export( Twin="GeomSurfaceOfRevolution", TwinPointer="GeomSurfaceOfRevolution", @@ -36,5 +35,6 @@ class SurfaceOfRevolution(GeometrySurface): """Sets or gets the basic curve.""" @overload - def __init__(self, location: Placement, direction: Vector, basis_curve: GeometryCurve) -> None: - ... + def __init__( + self, location: Placement, direction: Vector, basis_curve: GeometryCurve + ) -> None: ... diff --git a/src/Mod/Part/App/TopoShape.pyi b/src/Mod/Part/App/TopoShape.pyi index 9fcfb60199..444e8a79fe 100644 --- a/src/Mod/Part/App/TopoShape.pyi +++ b/src/Mod/Part/App/TopoShape.pyi @@ -9,7 +9,6 @@ from Base.BoundBox import BoundBox from App.ComplexGeoData import ComplexGeoData from typing import Final, List, Tuple, Union, overload - @export( Include="Mod/Part/App/TopoShape.h", FatherInclude="App/ComplexGeoDataPy.h", @@ -88,7 +87,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def writeInventor(self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object) -> str: + def writeInventor( + self, *, Mode: int, Deviation: float, Angle: float, FaceColors: object + ) -> str: """ Write the mesh in OpenInventor format to a string. writeInventor() -> string @@ -295,11 +296,7 @@ class TopoShape(ComplexGeoData): @constmethod def section( - self, - tool: Tuple[TopoShape, ...], - tolerance: float = 0.0, - approximation: bool = False, - / + self, tool: Tuple[TopoShape, ...], tolerance: float = 0.0, approximation: bool = False, / ) -> TopoShape: """ Section of this with a given (list of) topo shape. @@ -352,10 +349,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def generalFuse(self, - shapes: Tuple[TopoShape, ...], - fuzzy_value: float = 0.0, - /) -> Tuple[TopoShape, List[List[TopoShape]]]: + def generalFuse( + self, shapes: Tuple[TopoShape, ...], fuzzy_value: float = 0.0, / + ) -> Tuple[TopoShape, List[List[TopoShape]]]: """ Run general fuse algorithm (GFA) between this and given shapes. generalFuse(list_of_other_shapes, [fuzzy_value = 0.0]) -> (result, map) @@ -456,7 +452,9 @@ class TopoShape(ComplexGeoData): """ ... - def transformShape(self, matrix: Matrix, copy: bool = False, checkScale: bool = False, /) -> None: + def transformShape( + self, matrix: Matrix, copy: bool = False, checkScale: bool = False, / + ) -> None: """ Apply transformation on a shape without changing the underlying geometry. transformShape(Matrix, [boolean copy=False, checkScale=False]) -> None @@ -525,14 +523,10 @@ class TopoShape(ComplexGeoData): @overload @constmethod - def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: - ... - + def makeFillet(self, radius: float, edgeList: List, /) -> TopoShape: ... @overload @constmethod - def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: - ... - + def makeFillet(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeFillet(self, *args) -> TopoShape: """ @@ -545,14 +539,10 @@ class TopoShape(ComplexGeoData): @overload @constmethod - def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: - ... - + def makeChamfer(self, radius: float, edgeList: List, /) -> TopoShape: ... @overload @constmethod - def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: - ... - + def makeChamfer(self, radius1: float, radius2: float, edgeList: List, /) -> TopoShape: ... @constmethod def makeChamfer(self, *args) -> TopoShape: """ @@ -796,7 +786,9 @@ class TopoShape(ComplexGeoData): """ ... - def fix(self, working_precision: float, minimum_precision: float, maximum_precision: float, /) -> bool: + def fix( + self, working_precision: float, minimum_precision: float, maximum_precision: float, / + ) -> bool: """ Tries to fix a broken shape. fix(working precision, minimum precision, maximum precision) -> bool @@ -972,7 +964,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def proximity(self, shape: TopoShape, tolerance: float = None, /) -> Tuple[List[int], List[int]]: + def proximity( + self, shape: TopoShape, tolerance: float = None, / + ) -> Tuple[List[int], List[int]]: """ Returns two lists of Face indexes for the Faces involved in the intersection. proximity(shape,[tolerance]) -> (selfFaces, shapeFaces) @@ -980,10 +974,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def distToShape(self, - shape: TopoShape, - tol: float = 1e-7, - /) -> Tuple[float, List[Tuple[Vector, Vector]], List[Tuple]]: + def distToShape( + self, shape: TopoShape, tol: float = 1e-7, / + ) -> Tuple[float, List[Tuple[Vector, Vector]], List[Tuple]]: """ Find the minimum distance to another shape. distToShape(shape, tol=1e-7) -> (dist, vectors, infos) @@ -1028,7 +1021,9 @@ class TopoShape(ComplexGeoData): """ ... - def mapSubElement(self, shape: Union[TopoShape, Tuple[TopoShape, ...]], op: str = "", /) -> None: + def mapSubElement( + self, shape: Union[TopoShape, Tuple[TopoShape, ...]], op: str = "", / + ) -> None: """ mapSubElement(shape|[shape...], op='') - maps the sub element of other shape @@ -1101,7 +1096,9 @@ class TopoShape(ComplexGeoData): ... @constmethod - def inTolerance(self, valmin: float, valmax: float, ShapeType: str = "Shape", /) -> List[TopoShape]: + def inTolerance( + self, valmin: float, valmax: float, ShapeType: str = "Shape", / + ) -> List[TopoShape]: """ Determines which shapes have a tolerance within a given interval inTolerance(valmin, valmax, [ShapeType=Shape]) -> ShapeList diff --git a/src/Mod/Part/App/TopoShapeCompSolid.pyi b/src/Mod/Part/App/TopoShapeCompSolid.pyi index c0861bd8c9..ed8c02bf9e 100644 --- a/src/Mod/Part/App/TopoShapeCompSolid.pyi +++ b/src/Mod/Part/App/TopoShapeCompSolid.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from TopoShape import TopoShape - @export( Father="TopoShapePy", Name="TopoShapeCompSolidPy", diff --git a/src/Mod/Part/App/TopoShapeCompound.pyi b/src/Mod/Part/App/TopoShapeCompound.pyi index 3047584775..0e21eaa91d 100644 --- a/src/Mod/Part/App/TopoShapeCompound.pyi +++ b/src/Mod/Part/App/TopoShapeCompound.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from TopoShape import TopoShape - @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -29,7 +28,9 @@ class TopoShapeCompound(TopoShape): ... @constmethod - def connectEdgesToWires(self, Shared: bool = True, Tolerance: float = 1e-7, /) -> "TopoShapeCompound": + def connectEdgesToWires( + self, Shared: bool = True, Tolerance: float = 1e-7, / + ) -> "TopoShapeCompound": """ Build a compound of wires out of the edges of this compound. connectEdgesToWires([Shared = True, Tolerance = 1e-7]) -> Compound diff --git a/src/Mod/Part/App/TopoShapeEdge.pyi b/src/Mod/Part/App/TopoShapeEdge.pyi index bf27bd80d5..a918f70a88 100644 --- a/src/Mod/Part/App/TopoShapeEdge.pyi +++ b/src/Mod/Part/App/TopoShapeEdge.pyi @@ -9,7 +9,6 @@ from Vertex import Vertex from TopoShape import TopoShape from typing import Final, Tuple, Dict, List, overload - @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -456,29 +455,27 @@ class TopoShapeEdge(TopoShape): @constmethod @overload - def discretize(self, Number: int, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize(self, Number: int, First: float = ..., Last: float = ...) -> List[Vector]: ... @constmethod @overload - def discretize(self, QuasiNumber: int, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, QuasiNumber: int, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload - def discretize(self, Distance: float, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, Distance: float, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload - def discretize(self, Deflection: float, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, Deflection: float, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload - def discretize(self, QuasiDeflection: float, First: float = ..., Last: float = ...) -> List[Vector]: - ... - + def discretize( + self, QuasiDeflection: float, First: float = ..., Last: float = ... + ) -> List[Vector]: ... @constmethod @overload def discretize( @@ -488,9 +485,7 @@ class TopoShapeEdge(TopoShape): Minimum: int = ..., First: float = ..., Last: float = ..., - ) -> List[Vector]: - ... - + ) -> List[Vector]: ... @constmethod def discretize(self, **kwargs) -> List[Vector]: """ diff --git a/src/Mod/Part/App/TopoShapeFace.pyi b/src/Mod/Part/App/TopoShapeFace.pyi index 1a819d740e..70842ba3b5 100644 --- a/src/Mod/Part/App/TopoShapeFace.pyi +++ b/src/Mod/Part/App/TopoShapeFace.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import Final, Tuple, Dict, Optional, List - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeShell.pyi b/src/Mod/Part/App/TopoShapeShell.pyi index ce30f1b1de..8401f96a8e 100644 --- a/src/Mod/Part/App/TopoShapeShell.pyi +++ b/src/Mod/Part/App/TopoShapeShell.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Final, Dict - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeSolid.pyi b/src/Mod/Part/App/TopoShapeSolid.pyi index 81a8722924..719d89b1fe 100644 --- a/src/Mod/Part/App/TopoShapeSolid.pyi +++ b/src/Mod/Part/App/TopoShapeSolid.pyi @@ -8,7 +8,6 @@ from Base.Vector import Vector from Base.Matrix import Matrix from typing import Final, Dict, Tuple, overload - @export( Twin="TopoShape", TwinPointer="TopoShape", @@ -99,14 +98,10 @@ class TopoShapeSolid(TopoShape): @overload @constmethod - def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: - ... - + def offsetFaces(self, facesTuple: Tuple[TopoShape, ...], offset: float, /) -> TopoShape: ... @overload @constmethod - def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: - ... - + def offsetFaces(self, facesDict: Dict[TopoShape, float], /) -> TopoShape: ... @constmethod def offsetFaces(self, *args, **kwargs) -> TopoShape: """ diff --git a/src/Mod/Part/App/TopoShapeVertex.pyi b/src/Mod/Part/App/TopoShapeVertex.pyi index 9c0461d6e7..0f3555054a 100644 --- a/src/Mod/Part/App/TopoShapeVertex.pyi +++ b/src/Mod/Part/App/TopoShapeVertex.pyi @@ -7,7 +7,6 @@ from Base.Vector import Vector from TopoShape import TopoShape from typing import Final - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/TopoShapeWire.pyi b/src/Mod/Part/App/TopoShapeWire.pyi index 49eea8f24b..bc1ac4d3c5 100644 --- a/src/Mod/Part/App/TopoShapeWire.pyi +++ b/src/Mod/Part/App/TopoShapeWire.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from TopoShape import TopoShape from typing import Dict, List, Final, overload, Optional - @export( Twin="TopoShape", TwinPointer="TopoShape", diff --git a/src/Mod/Part/App/Toroid.pyi b/src/Mod/Part/App/Toroid.pyi index 68d97590aa..05b6394c9d 100644 --- a/src/Mod/Part/App/Toroid.pyi +++ b/src/Mod/Part/App/Toroid.pyi @@ -7,7 +7,6 @@ from Part.GeometrySurface import GeometrySurface from Base.Vector import Vector from typing import Final - @export( Name="ToroidPy", Namespace="Part", diff --git a/src/Mod/Part/App/TrimmedCurve.pyi b/src/Mod/Part/App/TrimmedCurve.pyi index e26e0b199d..dcc1b35fbe 100644 --- a/src/Mod/Part/App/TrimmedCurve.pyi +++ b/src/Mod/Part/App/TrimmedCurve.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from BoundedCurve import BoundedCurve - @export( Twin="GeomTrimmedCurve", TwinPointer="GeomTrimmedCurve", diff --git a/src/Mod/Part/Gui/ViewProviderPartExt.pyi b/src/Mod/Part/Gui/ViewProviderPartExt.pyi index 92997a3298..84673132db 100644 --- a/src/Mod/Part/Gui/ViewProviderPartExt.pyi +++ b/src/Mod/Part/Gui/ViewProviderPartExt.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderGeometryObject import ViewProviderGeometryObject - @export( Include="Mod/Part/Gui/ViewProviderExt.h", Namespace="PartGui", diff --git a/src/Mod/PartDesign/App/Body.pyi b/src/Mod/PartDesign/App/Body.pyi index c360704232..bbd13efb94 100644 --- a/src/Mod/PartDesign/App/Body.pyi +++ b/src/Mod/PartDesign/App/Body.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.BodyBase import BodyBase from typing import Final - @export( Include="Mod/PartDesign/App/Body.h", FatherInclude="Mod/Part/App/BodyBasePy.h", diff --git a/src/Mod/PartDesign/App/Feature.pyi b/src/Mod/PartDesign/App/Feature.pyi index b503667040..e51c64bb16 100644 --- a/src/Mod/PartDesign/App/Feature.pyi +++ b/src/Mod/PartDesign/App/Feature.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Part.PartFeature import PartFeature from typing import Optional, overload - @export( Include="Mod/PartDesign/App/Feature.h", FatherInclude="Mod/Part/App/PartFeaturePy.h", diff --git a/src/Mod/PartDesign/Gui/ViewProvider.pyi b/src/Mod/PartDesign/Gui/ViewProvider.pyi index 20a6669510..d7553c4aba 100644 --- a/src/Mod/PartDesign/Gui/ViewProvider.pyi +++ b/src/Mod/PartDesign/Gui/ViewProvider.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Gui.ViewProviderPartExt import ViewProviderPartExt - @export( Include="Mod/PartDesign/Gui/ViewProvider.h", Namespace="PartDesignGui", diff --git a/src/Mod/Points/App/Points.pyi b/src/Mod/Points/App/Points.pyi index 072d8cb11b..d664d2a4e2 100644 --- a/src/Mod/Points/App/Points.pyi +++ b/src/Mod/Points/App/Points.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import constmethod, export from Data import object - @export( Father="ComplexGeoDataPy", Twin="PointKernel", @@ -61,7 +60,6 @@ class Points(object): def fromValid(self) -> Any: """Get a new point object from points with valid coordinates (i.e. that are not NaN)""" ... - CountPoints: Final[int] """Return the number of vertices of the points object.""" diff --git a/src/Mod/Robot/App/Robot6Axis.pyi b/src/Mod/Robot/App/Robot6Axis.pyi index 19818fee00..2bd15a1ecb 100644 --- a/src/Mod/Robot/App/Robot6Axis.pyi +++ b/src/Mod/Robot/App/Robot6Axis.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Robot/App/Robot6Axis.h", Namespace="Robot", @@ -26,7 +25,6 @@ class Robot6Axis(Persistence): """Checks the shape and report errors in the shape structure. This is a more detailed check as done in isValid().""" ... - Axis1: float """Pose of Axis 1 in degrees""" diff --git a/src/Mod/Robot/App/RobotObject.pyi b/src/Mod/Robot/App/RobotObject.pyi index 007b24941c..d1acb465bd 100644 --- a/src/Mod/Robot/App/RobotObject.pyi +++ b/src/Mod/Robot/App/RobotObject.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/Robot/App/RobotObject.h", Namespace="Robot", diff --git a/src/Mod/Robot/App/Trajectory.pyi b/src/Mod/Robot/App/Trajectory.pyi index 54ac07cb63..b0a00bc26d 100644 --- a/src/Mod/Robot/App/Trajectory.pyi +++ b/src/Mod/Robot/App/Trajectory.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Robot/App/Trajectory.h", Namespace="Robot", @@ -40,7 +39,6 @@ class Trajectory(Persistence): deleteLast() - delete the last waypoint """ ... - Duration: Final[float] """duration of the trajectory""" diff --git a/src/Mod/Robot/App/Waypoint.pyi b/src/Mod/Robot/App/Waypoint.pyi index 2cc35d2b0a..c6a210c035 100644 --- a/src/Mod/Robot/App/Waypoint.pyi +++ b/src/Mod/Robot/App/Waypoint.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Robot/App/Waypoint.h", Namespace="Robot", diff --git a/src/Mod/Sketcher/App/Constraint.pyi b/src/Mod/Sketcher/App/Constraint.pyi index 7c1fc572af..cb087612aa 100644 --- a/src/Mod/Sketcher/App/Constraint.pyi +++ b/src/Mod/Sketcher/App/Constraint.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export from Base.Persistence import Persistence from typing import Final - @export( Include="Mod/Sketcher/App/Constraint.h", Constructor=True, diff --git a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi index e8c7db262b..8889456292 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension - @export( PythonName="Sketcher.ExternalGeometryExtension", Include="Mod/Sketcher/App/ExternalGeometryExtension.h", @@ -32,6 +31,5 @@ class ExternalGeometryExtension(GeometryExtension): Sets the given bit to true/false. """ ... - Ref: str = "" """Returns the reference string of this external geometry.""" diff --git a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi index 4e5cfef41b..106045c85a 100644 --- a/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi +++ b/src/Mod/Sketcher/App/ExternalGeometryFacade.pyi @@ -6,7 +6,6 @@ from Base.Metadata import export, constmethod from Base.BaseClass import BaseClass from typing import Final, List - @export( PythonName="Sketcher.ExternalGeometryFacade", Include="Mod/Sketcher/App/ExternalGeometryFacade.h", diff --git a/src/Mod/Sketcher/App/GeometryFacade.pyi b/src/Mod/Sketcher/App/GeometryFacade.pyi index 648fb5493d..2ac7a8e84a 100644 --- a/src/Mod/Sketcher/App/GeometryFacade.pyi +++ b/src/Mod/Sketcher/App/GeometryFacade.pyi @@ -11,7 +11,6 @@ from Base.Vector import Vector from App.DocumentObjectExtension import DocumentObjectExtension from typing import Final, List - @export( PythonName="Sketcher.GeometryFacade", Include="Mod/Sketcher/App/GeometryFacade.h", diff --git a/src/Mod/Sketcher/App/Sketch.pyi b/src/Mod/Sketcher/App/Sketch.pyi index a7bfadaadb..bab1f3b5ec 100644 --- a/src/Mod/Sketcher/App/Sketch.pyi +++ b/src/Mod/Sketcher/App/Sketch.pyi @@ -7,7 +7,6 @@ from Base.Persistence import Persistence from Base.Vector import Vector from typing import Final, Tuple - @export( Include="Mod/Sketcher/App/Sketch.h", FatherInclude="Base/PersistencePy.h", diff --git a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi index 9e4079a2c5..e7c55ebbb5 100644 --- a/src/Mod/Sketcher/App/SketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/App/SketchGeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export, constmethod from Part.App.GeometryExtension import GeometryExtension - @export( Name="SketchGeometryExtensionPy", PythonName="Sketcher.SketchGeometryExtension", diff --git a/src/Mod/Sketcher/App/SketchObject.pyi b/src/Mod/Sketcher/App/SketchObject.pyi index 858fb0cbf1..8816f4cfed 100644 --- a/src/Mod/Sketcher/App/SketchObject.pyi +++ b/src/Mod/Sketcher/App/SketchObject.pyi @@ -11,7 +11,6 @@ from Part.App.Geometry import Geometry from Sketcher.App.Constraint import Constraint from typing import List, Tuple, Union, Final, overload - @export( Include="Mod/Sketcher/App/SketchObject.h", FatherInclude="Mod/Part/App/Part2DObjectPy.h", @@ -84,17 +83,14 @@ class SketchObject(Part2DObject): ... @overload - def addGeometry(self, geo: Geometry, isConstruction: bool = False, /) -> int: - ... - + def addGeometry(self, geo: Geometry, isConstruction: bool = False, /) -> int: ... @overload - def addGeometry(self, geo: List[Geometry], isConstruction: bool = False, /) -> Tuple[int, ...]: - ... - - def addGeometry(self, - geo: Union[Geometry, List[Geometry]], - isConstruction: bool = False, - /) -> Union[int, Tuple[int, ...]]: + def addGeometry( + self, geo: List[Geometry], isConstruction: bool = False, / + ) -> Tuple[int, ...]: ... + def addGeometry( + self, geo: Union[Geometry, List[Geometry]], isConstruction: bool = False, / + ) -> Union[int, Tuple[int, ...]]: """ Add geometric objects to the sketch. @@ -231,15 +227,12 @@ class SketchObject(Part2DObject): ... @overload - def addConstraint(self, constraint: Constraint, /) -> int: - ... - + def addConstraint(self, constraint: Constraint, /) -> int: ... @overload - def addConstraint(self, constraints: List[Constraint], /) -> Tuple[int, ...]: - ... - - def addConstraint(self, constraint: Union[Constraint, List[Constraint]], /) -> Union[int, Tuple[int, - ...]]: + def addConstraint(self, constraints: List[Constraint], /) -> Tuple[int, ...]: ... + def addConstraint( + self, constraint: Union[Constraint, List[Constraint]], / + ) -> Union[int, Tuple[int, ...]]: """ Add constraints to the sketch. @@ -268,7 +261,9 @@ class SketchObject(Part2DObject): """ ... - def delConstraints(self, constraintIndices: List[int], updateGeometry: bool, noSolve: bool, /) -> None: + def delConstraints( + self, constraintIndices: List[int], updateGeometry: bool, noSolve: bool, / + ) -> None: """ Delete multiple constraints from a sketch @@ -347,13 +342,9 @@ class SketchObject(Part2DObject): ... @overload - def delConstraintOnPoint(self, vertexId: int, /) -> None: - ... - + def delConstraintOnPoint(self, vertexId: int, /) -> None: ... @overload - def delConstraintOnPoint(self, geoId: int, pointPos: int, /) -> None: - ... - + def delConstraintOnPoint(self, geoId: int, pointPos: int, /) -> None: ... def delConstraintOnPoint(self, *args: int) -> None: """ Delete coincident constraints associated with a sketch point. @@ -592,7 +583,9 @@ class SketchObject(Part2DObject): """ ... - def moveGeometry(self, GeoIndex: int, PointPos: int, Vector: Vector, relative: bool = False, /) -> None: + def moveGeometry( + self, GeoIndex: int, PointPos: int, Vector: Vector, relative: bool = False, / + ) -> None: """ Move a given point (or curve) to another location. @@ -608,7 +601,9 @@ class SketchObject(Part2DObject): """ ... - def moveGeometries(self, Geos: List[Tuple[int, int]], Vector: Vector, relative: bool = False, /) -> None: + def moveGeometries( + self, Geos: List[Tuple[int, int]], Vector: Vector, relative: bool = False, / + ) -> None: """ Move given points and curves to another location. diff --git a/src/Mod/Sketcher/App/SketchObjectSF.pyi b/src/Mod/Sketcher/App/SketchObjectSF.pyi index c7f24bf633..02ef6b118f 100644 --- a/src/Mod/Sketcher/App/SketchObjectSF.pyi +++ b/src/Mod/Sketcher/App/SketchObjectSF.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.Part2DObject import Part2DObject - @export( Include="Mod/Sketcher/App/SketchObjectSF.h", FatherInclude="Mod/Part/App/Part2DObjectPy.h", diff --git a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi index d22c357da5..498575b055 100644 --- a/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi +++ b/src/Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Part.App.GeometryExtension import GeometryExtension - @export( PythonName="SketcherGui.ViewProviderSketchGeometryExtension", Include="Mod/Sketcher/Gui/ViewProviderSketchGeometryExtension.h", diff --git a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi index 6b244d55bf..94cf6b18e3 100644 --- a/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi +++ b/src/Mod/Spreadsheet/App/PropertyColumnWidths.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Spreadsheet/App/PropertyColumnWidths.h", Namespace="Spreadsheet", diff --git a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi index 7d50b61052..848fa6fd2e 100644 --- a/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi +++ b/src/Mod/Spreadsheet/App/PropertyRowHeights.pyi @@ -5,7 +5,6 @@ from __future__ import annotations from Base.Metadata import export from Base.Persistence import Persistence - @export( Include="Mod/Spreadsheet/App/PropertyRowHeights.h", Namespace="Spreadsheet", diff --git a/src/Mod/Spreadsheet/App/PropertySheet.pyi b/src/Mod/Spreadsheet/App/PropertySheet.pyi index de468f3d75..56960acb6a 100644 --- a/src/Mod/Spreadsheet/App/PropertySheet.pyi +++ b/src/Mod/Spreadsheet/App/PropertySheet.pyi @@ -5,13 +5,14 @@ from __future__ import annotations from Base.Metadata import export, sequence_protocol from Base.Persistence import Persistence - @export( Include="Mod/Spreadsheet/App/PropertySheet.h", Namespace="Spreadsheet", Constructor=True, ) -@sequence_protocol(mp_subscript="true", ) +@sequence_protocol( + mp_subscript="true", +) class PropertySheet(Persistence): """ Internal spreadsheet object diff --git a/src/Mod/Spreadsheet/App/Sheet.pyi b/src/Mod/Spreadsheet/App/Sheet.pyi index e7b396aa15..c8e0b94075 100644 --- a/src/Mod/Spreadsheet/App/Sheet.pyi +++ b/src/Mod/Spreadsheet/App/Sheet.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from App.DocumentObject import DocumentObject - @export( Include="Mod/Spreadsheet/App/Sheet.h", Namespace="Spreadsheet", diff --git a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi index 3c9fb6cef2..f9fac6f720 100644 --- a/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi +++ b/src/Mod/Spreadsheet/Gui/ViewProviderSpreadsheet.pyi @@ -8,7 +8,6 @@ from Base.Metadata import export from Gui.ViewProviderDocumentObject import ViewProviderDocumentObject - @export( Twin="ViewProviderSheet", TwinPointer="ViewProviderSheet", diff --git a/src/Mod/Surface/App/Blending/BlendCurve.pyi b/src/Mod/Surface/App/Blending/BlendCurve.pyi index c851fc7efb..c39ce25319 100644 --- a/src/Mod/Surface/App/Blending/BlendCurve.pyi +++ b/src/Mod/Surface/App/Blending/BlendCurve.pyi @@ -7,7 +7,6 @@ from typing import Any from Base.BaseClass import PyObjectBase from Base.Metadata import export - @export( Include="Mod/Surface/App/Blending/BlendCurve.h", Namespace="Surface", diff --git a/src/Mod/Surface/App/Blending/BlendPoint.pyi b/src/Mod/Surface/App/Blending/BlendPoint.pyi index dd240c6bfc..39d2a67ea4 100644 --- a/src/Mod/Surface/App/Blending/BlendPoint.pyi +++ b/src/Mod/Surface/App/Blending/BlendPoint.pyi @@ -7,7 +7,6 @@ from typing import Any, Final from Base.BaseClass import PyObjectBase from Base.Metadata import constmethod, export - @export( Include="Mod/Surface/App/Blending/BlendPoint.h", Namespace="Surface", @@ -44,6 +43,5 @@ class BlendPoint(PyObjectBase): BlendPoint.setvectors([Point, D1, D2, ..., DN]) """ ... - Vectors: Final[list] """The list of vectors of this BlendPoint.""" diff --git a/src/Tools/bindings/model/generateModel_Python.py b/src/Tools/bindings/model/generateModel_Python.py index 08bd9b9fb3..3bb87271b2 100644 --- a/src/Tools/bindings/model/generateModel_Python.py +++ b/src/Tools/bindings/model/generateModel_Python.py @@ -22,6 +22,7 @@ from model.typedModel import ( SIGNATURE_SEP = re.compile(r"\s+--\s+", re.DOTALL) SELF_CLS_ARG = re.compile(r"\(\s*(self|cls)(\s*,\s*)?") + class ArgumentKind(Enum): PositionOnly = 0 Arg = 1 @@ -213,7 +214,7 @@ class Function: return any(sig.noargs_flag for sig in self.signatures) def add_signature_docs(self, doc: Documentation) -> None: - if len (self.signatures) == 1: + if len(self.signatures) == 1: docstring = [self.signatures[0].text] signature = [self.signatures[0].annotated_text] else: @@ -226,7 +227,7 @@ class Function: user_doc = doc.UserDocu or "" marker = SIGNATURE_SEP.search(user_doc) if marker: - user_doc = user_doc[marker.end():].strip() + user_doc = user_doc[marker.end() :].strip() docstring.append("--\n") # mark __text_signature__ docstring.extend(signature) # Include real annotated signature in user docstring