mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
This location makes more sense. Also drop Axis.ANY = None, which is more confusing than helpful. Instead, use relevant docstring to explain what None will do.
19 lines
419 B
Python
19 lines
419 B
Python
# SPDX-License-Identifier: MIT
|
|
# Copyright (c) 2020 The Pybricks Authors
|
|
|
|
from typing import Collection, Optional, Tuple
|
|
|
|
class Matrix:
|
|
def __init__(self, rows: Collection[int]): ...
|
|
@property
|
|
def T(self) -> Matrix: ...
|
|
@property
|
|
def shape(self) -> Tuple[int, int]: ...
|
|
|
|
def vector(x: float, y: float, z: Optional[float] = None) -> Matrix: ...
|
|
|
|
class Axis:
|
|
X: Matrix
|
|
Y: Matrix
|
|
Z: Matrix
|