Fix typing syntax for multiple string literals (#3212)

This commit is contained in:
correctmost 2025-03-01 01:20:42 -05:00 committed by GitHub
parent d6ea7b011f
commit 142883c9c3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 1 deletions

View File

@ -1216,7 +1216,7 @@ class SelectMenu(AbstractCurses):
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
# may have a different preview row count and it'll blow up
self._prev_scroll_pos = 0