mirror of
https://github.com/pybricks/pybricks-api.git
synced 2026-09-12 09:37:25 +00:00
typing/common: fix nonexistent scalar type
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
# SPDX-License-Identifier: MIT
|
||||
# Copyright (c) 2020 The Pybricks Authors
|
||||
|
||||
from pybricks.geometry import Matrix
|
||||
from pybricks.geometry import Matrix, vector
|
||||
from typing import Collection, Iterable, List, Optional, Tuple, Union, overload
|
||||
|
||||
from .parameters import Button, Color, Direction, Side, Stop, Port, Axis
|
||||
@@ -150,6 +150,6 @@ class IMU(Accelerometer):
|
||||
def heading(self) -> int: ...
|
||||
def reset_heading(self, angle): ...
|
||||
@overload
|
||||
def gyro(self) -> scalar[float, float, float]: ...
|
||||
def gyro(self) -> vector[float, float, float]: ...
|
||||
@overload
|
||||
def gyro(self, axis: Axis) -> int: ...
|
||||
|
||||
Reference in New Issue
Block a user