Fix typing syntax for multiple string literals (#3212)
This commit is contained in:
parent
d6ea7b011f
commit
142883c9c3
|
|
@ -1216,7 +1216,7 @@ class SelectMenu(AbstractCurses):
|
||||||
|
|
||||||
return None
|
return None
|
||||||
|
|
||||||
def _focus_item(self, direction: Literal['next' | 'prev' | 'first' | 'last']) -> None:
|
def _focus_item(self, direction: Literal['next', 'prev', 'first', 'last']) -> None:
|
||||||
# reset the preview scroll as the newly focused item
|
# reset the preview scroll as the newly focused item
|
||||||
# may have a different preview row count and it'll blow up
|
# may have a different preview row count and it'll blow up
|
||||||
self._prev_scroll_pos = 0
|
self._prev_scroll_pos = 0
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue