[bindings] fix signatures in pyi files

This commit is contained in:
Frank Martinez
2025-09-25 20:43:33 -05:00
parent 8c7f381416
commit 748004b4e4
247 changed files with 2001 additions and 897 deletions

View File

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