@@ -117,7 +117,7 @@ class DropSelect(Widget):
117
117
_placeholder : str
118
118
_placeholder_add_to_selection_box : bool
119
119
_scrollbar_color : ColorType
120
- _scrollbar_cursor : CursorType
120
+ _scrollbar_cursor : CursorType # type: ignore
121
121
_scrollbar_shadow : bool
122
122
_scrollbar_shadow_color : ColorType
123
123
_scrollbar_shadow_offset : int
@@ -140,7 +140,7 @@ class DropSelect(Widget):
140
140
_selection_infinite : bool
141
141
_selection_option_border_color : ColorType
142
142
_selection_option_border_width : int
143
- _selection_option_cursor : CursorType
143
+ _selection_option_cursor : CursorType # type: ignore
144
144
_selection_option_font_style : Dict [str , Any ]
145
145
_selection_option_left_space : bool
146
146
_selection_option_left_space_height_factor : float
@@ -873,9 +873,9 @@ def _down(self) -> None:
873
873
Move current selection down.
874
874
"""
875
875
if self .readonly :
876
- return
876
+ return None
877
877
elif len (self ._items ) == 0 :
878
- return
878
+ return None
879
879
elif not self .active :
880
880
return self ._toggle_drop ()
881
881
elif self ._index == - 1 :
@@ -887,19 +887,20 @@ def _down(self) -> None:
887
887
prev = self ._index
888
888
new = max (0 , self ._index - 1 )
889
889
if prev == new :
890
- return
890
+ return None
891
891
self .set_value (new )
892
892
self .change (* self ._items [self ._index ][1 :])
893
893
self ._sound .play_key_add ()
894
+ return None
894
895
895
896
def _up (self ) -> None :
896
897
"""
897
898
Move current selection up.
898
899
"""
899
900
if self .readonly :
900
- return
901
+ return None
901
902
elif len (self ._items ) == 0 :
902
- return
903
+ return None
903
904
elif not self .active :
904
905
return self ._toggle_drop ()
905
906
elif self ._index == - 1 :
@@ -911,10 +912,11 @@ def _up(self) -> None:
911
912
prev = self ._index
912
913
new = min (self ._index + 1 , len (self ._items ) - 1 )
913
914
if prev == new :
914
- return
915
+ return None
915
916
self .set_value (new )
916
917
self .change (* self ._items [self ._index ][1 :])
917
918
self ._sound .play_key_add ()
919
+ return None
918
920
919
921
def set_value (self , item : Union [str , int ]) -> None :
920
922
"""
0 commit comments