Skip to content

Commit a12a432

Browse files
authored
Update quarternion type hint to show return of tuple of length 4 instead of 3
1 parent a5a2e05 commit a12a432

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

adafruit_bno055.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,9 +460,9 @@ def _euler(self) -> None:
460460
raise NotImplementedError("Must be implemented.")
461461

462462
@property
463-
def quaternion(self) -> Tuple[Optional[float], Optional[float], Optional[float]]:
463+
def quaternion(self) -> Tuple[Optional[float], Optional[float], Optional[float], Optional[float]]:
464464
"""Gives the calculated orientation as a quaternion.
465-
Returns an empty tuple of length 3 when this property has been disabled by the current mode.
465+
Returns an empty tuple of length 4 when this property has been disabled by the current mode.
466466
"""
467467
if self.mode in [0x08, 0x09, 0x0A, 0x0B, 0x0C]:
468468
return self._quaternion

0 commit comments

Comments
 (0)