[bindings] Format with yapf (precommit will reformat)

This commit is contained in:
Frank Martinez
2025-10-07 12:07:42 -05:00
parent d4d7cabdc5
commit 0d0689341b
254 changed files with 885 additions and 311 deletions

View File

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