Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove unused argument from AbstractCurses._confirm_interrupt #2976

Merged
Merged
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
8 changes: 4 additions & 4 deletions archinstall/tui/curses_menu.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from curses.textpad import Textbox
from dataclasses import dataclass
from types import FrameType, TracebackType
from typing import TYPE_CHECKING, Any, Literal, override
from typing import TYPE_CHECKING, Literal, override

from ..lib.output import debug
from .help import Help
Expand Down Expand Up @@ -73,7 +73,7 @@ def _set_help_viewport(self) -> 'Viewport':
frame=FrameProperties.min(str(_('Archinstall help')))
)

def _confirm_interrupt(self, screen: Any, warning: str) -> bool:
def _confirm_interrupt(self, warning: str) -> bool:
while True:
result = SelectMenu(
MenuItemGroup.yes_no(),
Expand Down Expand Up @@ -802,7 +802,7 @@ def _process_edit_key(self, key: int) -> int | None:
def _handle_interrupt(self) -> bool:
if self._allow_reset:
if self._interrupt_warning:
return self._confirm_interrupt(self._input_vp, self._interrupt_warning)
return self._confirm_interrupt(self._interrupt_warning)
else:
return False

Expand Down Expand Up @@ -1226,7 +1226,7 @@ def _multi_prefix(self, item: MenuItem) -> str:

def _handle_interrupt(self) -> bool:
if self._allow_reset and self._interrupt_warning:
return self._confirm_interrupt(self._menu_vp, self._interrupt_warning)
return self._confirm_interrupt(self._interrupt_warning)
else:
return False

Expand Down