parameters: Fix wrong typing in pybricks.parameters.Stop.

This commit is contained in:
The Vinh Luong (Lương Thế Vinh)
2022-09-05 18:38:29 -05:00
committed by GitHub
parent 2a963b2a0b
commit c64458d3b9
2 changed files with 6 additions and 3 deletions
+3
View File
@@ -7,6 +7,9 @@
### Added
- Code auto-completion for `EssentialHub`.
### Fixed
- Fixed some type hints in `parameters` submodule.
## 3.2.0b1-r3 - 2022-06-26
### Fixed
+3 -3
View File
@@ -131,13 +131,13 @@ class Port(_PybricksEnum):
class Stop(_PybricksEnum):
"""Action after the motor stops."""
COAST: Port = 0
COAST: Stop = 0
"""Let the motor move freely."""
BRAKE: Port = 1
BRAKE: Stop = 1
"""Passively resist small external forces."""
HOLD: Port = 2
HOLD: Stop = 2
"""Keep controlling the motor to hold it at the commanded angle. This is
only available on motors with encoders."""