Robotics.py: Fix issue with the type stub for DriveBase.angle() (#165)

The type was changed from `int` to `float` in https://github.com/pybricks/pybricks-micropython/commit/4d457a17fc13d42d9b311df99e05dafaeed67862.

Technically, it is still `int` on BOOST Move hub (any system without floating point support). But most platforms use `float` so makes sense to have that in the type hints.
This commit is contained in:
Gabriel Couchenour
2025-09-19 21:53:37 -05:00
committed by GitHub
parent 0efcfd4a36
commit 32f974e7e5
3 changed files with 7 additions and 3 deletions
+2 -2
View File
@@ -101,8 +101,8 @@ class DriveBase:
Driven distance since last reset.
"""
def angle(self) -> int:
"""angle() -> int: deg
def angle(self) -> float:
"""angle() -> float: deg
Gets the estimated rotation angle of the drive base.