Fix alignment (#1139)

* Fix alignment

* Update

Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
This commit is contained in:
Daniel Girtler 2022-05-08 16:39:04 +10:00 committed by GitHub
parent c354c2bbfe
commit 7f6c49e677
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -267,7 +267,7 @@ class GeneralMenu:
return None
def _get_menu_text_padding(self, entries: List[Selector]):
return max([len(selection.description) for selection in entries])
return max([len(str(selection.description)) for selection in entries])
def _find_selection(self, selection_name: str) -> Tuple[str, Selector]:
padding = self._get_menu_text_padding(list(self._menu_options.values()))