Skip to content

Commit 86c6491

Browse files
committed
Annotations correction
Corrected some wrong annotations.
1 parent 94e60a7 commit 86c6491

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

adafruit_button/button_base.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -150,21 +150,21 @@ def selected(self, value: bool) -> None:
150150
self._subclass_selected_behavior(value)
151151

152152
@property
153-
def selected_label(self) -> Optional[Union[int, tuple[int, int, int]]]:
153+
def selected_label(self) -> int:
154154
"""The font color of the button when selected.
155155
If no color is specified it defaults to the inverse of the label_color"""
156156
return self._selected_label
157157

158158
@selected_label.setter
159-
def selected_label(self, new_color: Optional[Union[int, tuple[int, int, int]]]) -> None:
159+
def selected_label(self, new_color: Union[int, tuple[int, int, int]]) -> None:
160160
self._selected_label = _check_color(new_color)
161161

162162
@property
163-
def label_color(self) -> Optional[Union[int, tuple[int, int, int]]]:
163+
def label_color(self) -> int:
164164
"""The font color of the button"""
165165
return self._label_color
166166

167167
@label_color.setter
168-
def label_color(self, new_color: Optional[Union[int, tuple[int, int, int]]]) -> None:
168+
def label_color(self, new_color: Union[int, tuple[int, int, int]]) -> None:
169169
self._label_color = _check_color(new_color)
170170
self._label.color = self._label_color

0 commit comments

Comments
 (0)