pybricks.geometry: Fixed Matrix incorrect rows type, added missing methods.

This commit is contained in:
Pavel Lobodinský
2022-01-03 11:01:33 +01:00
committed by laurensvalk
parent a1342f77c9
commit fe60636072
+13 -1
View File
@@ -5,12 +5,24 @@ from _typeshed import NoneType
from typing import Collection, Optional, Tuple
class Matrix:
def __init__(self, rows: Collection[int]): ...
def __init__(self, rows: Collection[Collection[int]]): ...
@property
def T(self) -> Matrix: ...
@property
def shape(self) -> Tuple[int, int]: ...
def __add__(self, other) -> Matrix: ...
def __iadd__(self, other) -> Matrix: ...
def __sub__(self, other) -> Matrix: ...
def __isub__(self, other) -> Matrix: ...
def __mul__(self, other) -> Matrix: ...
def __rmul__(self, other) -> Matrix: ...
def __imul__(self, other) -> Matrix: ...
def __truediv__(self, other) -> Matrix: ...
def __itruediv__(self, other) -> Matrix: ...
def __floordiv__(self, other) -> Matrix: ...
def __ifloordiv__(self, other) -> Matrix: ...
def vector(x: float, y: float, z: Optional[float] = None) -> Matrix: ...
class Axis: