black formatting

This commit is contained in:
Frank Martinez
2025-09-26 13:23:01 -05:00
parent 8e51db4072
commit 591e8a36b3
205 changed files with 381 additions and 853 deletions

View File

@@ -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.

View File

@@ -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."""

View File

@@ -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.

View File

@@ -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.

View File

@@ -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
"""
...

View File

@@ -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
"""
...

View File

@@ -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

View File

@@ -5,7 +5,6 @@ from __future__ import annotations
from Base.Metadata import export, constmethod
from PropertyContainer import PropertyContainer
@export(
Initialization=True,
Constructor=True,

View File

@@ -6,7 +6,6 @@ from DocumentObject import DocumentObject
from Base import Placement
from typing import Any, Final, Optional
class GeoFeature(DocumentObject):
"""
App.GeoFeature class.

View File

@@ -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
"""
...

View File

@@ -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

View File

@@ -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.

View File

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

View File

@@ -8,7 +8,6 @@ from typing import List, Tuple, TypeAlias
MeasureType: TypeAlias = object
@export(
Constructor=False,
Delete=True,

View File

@@ -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."""

View File

@@ -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
"""
...

View File

@@ -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
"""
...

View File

@@ -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.

View File

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

View File

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

View File

@@ -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
"""
...

View File

@@ -8,7 +8,6 @@ from Vector import Vector
from Placement import Placement
from typing import overload
@export(
Constructor=True,
Delete=True,

View File

@@ -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

View File

@@ -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

View File

@@ -10,7 +10,6 @@ from Placement import Placement
from Rotation import Rotation
from typing import Union
@export(
Constructor=True,
Delete=True,

View File

@@ -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]:
"""

View File

@@ -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.

View File

@@ -6,7 +6,6 @@ from Metadata import constmethod
from BaseClass import BaseClass
from typing import Final
class Persistence(BaseClass):
"""
Base.Persistence class.

View File

@@ -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

View File

@@ -4,7 +4,6 @@ from __future__ import annotations
from PyObjectBase import PyObjectBase
class Precision(PyObjectBase):
"""
This is the Precision class

View File

@@ -2,7 +2,6 @@
from __future__ import annotations
class PyObjectBase:
"""
The most base class for Python bindings.

View File

@@ -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: ...

View File

@@ -8,7 +8,6 @@ from Vector import Vector
from Matrix import Matrix
from typing import overload, Tuple, List, Final
@export(
Constructor=True,
Delete=True,

View File

@@ -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.

View File

@@ -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'."""

View File

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

View File

@@ -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.

View File

@@ -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

View File

@@ -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

View File

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

View File

@@ -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."""

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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):
"""

View File

@@ -5,7 +5,6 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import export
@export(
Include="Mod/CAM/App/Area.h",
Namespace="Path",
@@ -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."""

View File

@@ -4,7 +4,6 @@ from Base.Metadata import class_declarations, constmethod, export
from Base.Persistence import Persistence
from Base.Placement import Placement
@export(
Include="Mod/CAM/App/Command.h",
Namespace="Path",
@@ -32,7 +31,6 @@ class Command(Persistence):
def transform(self, placement: Placement, /) -> "CommandPy":
"""transform(Placement): returns a copy of this command transformed by the given placement"""
...
Name: str
"""The name of the command"""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/CAM/App/FeatureArea.h",
Namespace="Path",
@@ -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."""

View File

@@ -6,7 +6,6 @@ from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/CAM/App/FeaturePathCompound.h",
TwinPointer="FeatureCompound",

View File

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

View File

@@ -5,7 +5,6 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/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"""

View File

@@ -5,7 +5,6 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/VoronoiCell.h",
Namespace="Path",
@@ -40,7 +39,6 @@ class VoronoiCell(BaseClass):
def getSource(self) -> Any:
"""Returns the Source for the cell"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -5,7 +5,6 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/VoronoiEdge.h",
Namespace="Path",
@@ -70,7 +69,6 @@ class VoronoiEdge(BaseClass):
def getSegmentAngle(self) -> Any:
"""Returns the angle (in degree) of the segments if the edge was formed by two segments"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -5,7 +5,6 @@ from typing import Any, Final
from Base.BaseClass import BaseClass
from Base.Metadata import constmethod, export
@export(
Include="Mod/CAM/App/VoronoiVertex.h",
Namespace="Path",
@@ -25,7 +24,6 @@ class VoronoiVertex(BaseClass):
def toPoint(self) -> Any:
"""Returns a Vector - or None if not possible"""
...
Index: Final[int]
"""Internal id of the element."""

View File

@@ -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."""

View File

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

View File

@@ -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())"""

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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):
"""

View File

@@ -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):
"""

View File

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

View File

@@ -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."""
"""Materials must have complete versions of the specified models."""

View File

@@ -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.

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@@ -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: ...

View File

@@ -25,8 +25,7 @@ class ArcOfConic(TrimmedCurve):
"""
@overload
def __init__(self) -> None:
...
def __init__(self) -> None: ...
Location: Vector = ...
"""Center of the conic."""

View File

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

View File

@@ -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])

View File

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

View File

@@ -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.

View File

@@ -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

View File

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

View File

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

View File

@@ -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)

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