Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@

## Unreleased

### Fixed

- Fixed `DriveBase.angle` reporting an incorrect return type.

## 3.6.1 - 2025-05-01

### Fixed
Expand Down
2 changes: 1 addition & 1 deletion jedi/tests/test_get_signature.py
Original file line number Diff line number Diff line change
Expand Up @@ -1020,7 +1020,7 @@ def _get_method_signature(module: str, type: str, method: str) -> SignatureHelp:
pytest.param("pybricks.robotics", "DriveBase", "stop", [([], "None")]),
pytest.param("pybricks.robotics", "DriveBase", "brake", [([], "None")]),
pytest.param("pybricks.robotics", "DriveBase", "distance", [([], "int")]),
pytest.param("pybricks.robotics", "DriveBase", "angle", [([], "int")]),
pytest.param("pybricks.robotics", "DriveBase", "angle", [([], "float")]),
pytest.param(
"pybricks.robotics", "DriveBase", "state", [([], "Tuple[int, int, int, int]")]
),
Expand Down
4 changes: 2 additions & 2 deletions src/pybricks/robotics.py
Original file line number Diff line number Diff line change
Expand Up @@ -101,8 +101,8 @@ def distance(self) -> int:
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.

Expand Down