From 7800ab05b246ffe8c67cffa658106be58c92d5ce Mon Sep 17 00:00:00 2001 From: Laurens Valk Date: Tue, 29 Dec 2020 09:29:47 +0100 Subject: [PATCH] typing/common: fix nonexistent scalar type --- pybricks/_common.pyi | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pybricks/_common.pyi b/pybricks/_common.pyi index b491d4d..107208a 100644 --- a/pybricks/_common.pyi +++ b/pybricks/_common.pyi @@ -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: ...