Skip to content

Commit 16d5ba6

Browse files
committed
pybricks.ev3devices: Update return types.
1 parent d8802ac commit 16d5ba6

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/pybricks/ev3devices.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
"""LEGO® MINDSTORMS® EV3 motors and sensors."""
55

6-
from typing import Optional, Tuple, List
6+
from typing import Optional, Tuple, List, Set
77

88
from . import _common
99
from .parameters import (
@@ -57,7 +57,7 @@ def color(self) -> Optional[_Color]:
5757
Returns:
5858
``Color.BLACK``, ``Color.BLUE``, ``Color.GREEN``,
5959
``Color.YELLOW``, ``Color.RED``, ``Color.WHITE``, ``Color.BROWN``,
60-
or ``None`` if no color is detected.
60+
or ``Color.NONE`` if no color is detected.
6161
6262
"""
6363

@@ -134,8 +134,8 @@ def beacon(self, channel: int) -> Tuple[Optional[int], Optional[int]]:
134134
a tuple of (``None``, ``None``) if no remote is detected.
135135
"""
136136

137-
def buttons(self, channel: int) -> List[_Button]:
138-
"""buttons(channel) -> List[Button]
137+
def buttons(self, channel: int) -> Set[_Button]:
138+
"""buttons(channel) -> Set[Button]
139139
140140
Checks which buttons on the infrared remote are pressed.
141141

0 commit comments

Comments
 (0)