Merge pull request #24262 from mnesarco/pyi-fixes-1

This commit is contained in:
Chris Hennes
2025-11-29 20:23:37 -06:00
committed by GitHub
250 changed files with 2821 additions and 2051 deletions

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
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",
@@ -12,7 +17,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
"""
@@ -26,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."""

View File

@@ -1,7 +1,15 @@
from typing import Final
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
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",
@@ -13,7 +21,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
"""

View File

@@ -1,7 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from App.DocumentObjectExtension import DocumentObjectExtension
@export(
Include="Mod/TechDraw/App/CosmeticExtension.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
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",
@@ -12,7 +17,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
"""
@@ -26,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."""
@@ -35,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

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawViewPart import DrawViewPart
@export(
Include="Mod/TechDraw/App/DrawBrokenView.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/TechDraw/App/DrawGeomHatch.h",
Namespace="TechDraw",
@@ -10,7 +15,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
"""

View File

@@ -1,7 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/TechDraw/App/DrawHatch.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,6 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from DrawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawLeaderLine.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any, Final
from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/TechDraw/App/DrawPage.h",
Namespace="TechDraw",
@@ -10,7 +15,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
"""
@@ -41,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"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any, Final
from Base.Metadata import export
from DrawTemplate import DrawTemplate
@export(
Include="Mod/TechDraw/App/DrawParametricTemplate.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""
@@ -19,5 +24,6 @@ class DrawParametricTemplate(DrawTemplate):
def drawLine(self) -> Any:
"""Draw a line"""
...
GeometryCount: Final[int]
"""Number of geometry in template"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawViewCollection import DrawViewCollection
@export(
Include="Mod/TechDraw/App/DrawProjGroup.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawViewPart import DrawViewPart
@export(
Include="Mod/TechDraw/App/DrawProjGroupItem.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,6 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from TechDraw.DrawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawRichAnno.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from DrawTemplate import DrawTemplate
@export(
Include="Mod/TechDraw/App/DrawSVGTemplate.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,7 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/TechDraw/App/DrawTemplate.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,7 +1,12 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/TechDraw/App/DrawTile.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,6 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from TechDraw.DrawTile import DrawTile
@export(
Include="Mod/TechDraw/App/DrawTileWeld.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,9 +1,14 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from App.DocumentObject import DocumentObject
@export(
Include="Mod/TechDraw/App/DrawView.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,6 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from TechDraw.Drawview import DrawView
@export(
Include="Mod/TechDraw/App/DrawViewAnnotation.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,17 +1,22 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
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):
"""
Feature for creating and manipulating Technical Drawing Clip Views
Author: WandererFan (wandererfan@gmail.com)
License: LGPL-2.1-or-later
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawViewCollection.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawViewDimension import DrawViewDimension
@export(
Include="Mod/TechDraw/App/DrawViewDimExtent.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawViewDimension.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.rawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawViewPart.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from typing import Any
from Base.Metadata import export
from TechDraw.DrawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawViewSymbol.h",
Namespace="TechDraw",
@@ -11,7 +16,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
"""

View File

@@ -1,6 +1,11 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
from Base.Metadata import export
from TechDraw.DrawView import DrawView
@export(
Include="Mod/TechDraw/App/DrawWeldSymbol.h",
Namespace="TechDraw",
@@ -9,7 +14,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
"""

View File

@@ -1,8 +1,13 @@
# SPDX-License-Identifier: LGPL-2.1-or-later
from __future__ import annotations
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",
@@ -12,7 +17,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
"""
@@ -26,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."""