Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions archinstall/tui/curses_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -637,9 +637,6 @@ def _process_edit_key(self, key: int) -> int | None:
self._show_help()
return None
case MenuKeys.ESC:
if self._help_active:
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This check is already performed on line 619

self._help_active = False
self._draw()
if self._allow_skip:
self._last_state = Result(ResultType.Skip, None)
key = 7
Expand Down Expand Up @@ -744,7 +741,7 @@ def __init__(
self._init_viewports(preview_size)

assert self._menu_vp is not None
self._items_state: MenuItemsState = MenuItemsState(
self._items_state: MenuItemsState = MenuItemsState( # type: ignore[unreachable]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is a false positive from mypy:
python/mypy#11969

self._item_group,
total_cols=self._horizontal_cols,
total_rows=self._menu_vp.height,
Expand Down
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,6 @@ disallow_any_explicit = true

[[tool.mypy.overrides]]
module = "archinstall.tui.*"
warn_unreachable = false

[[tool.mypy.overrides]]
module = [
Expand Down