diff --git a/archinstall/lib/installer.py b/archinstall/lib/installer.py index e435b9c584..e9b1050512 100644 --- a/archinstall/lib/installer.py +++ b/archinstall/lib/installer.py @@ -2008,7 +2008,7 @@ def set_keyboard_language(self, language: str) -> bool: # In accordance with https://github.com/archlinux/archinstall/issues/107#issuecomment-841701968 # Setting an empty keymap first, allows the subsequent call to set layout for both console and x11. with Boot(self.target) as session: - os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated, unused-ignore] + os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated] try: session.SysCommand(['localectl', 'set-keymap', language]) @@ -2074,7 +2074,7 @@ def _service_state(self, service_name: str) -> str: def accessibility_tools_in_use() -> bool: - return os.system('systemctl is-active --quiet espeakup.service') == 0 # type: ignore[deprecated, unused-ignore] + return os.system('systemctl is-active --quiet espeakup.service') == 0 # type: ignore[deprecated] def run_custom_user_commands(commands: list[str], installation: Installer) -> None: diff --git a/archinstall/scripts/guided.py b/archinstall/scripts/guided.py index 68e4b30946..5683ab9ec0 100644 --- a/archinstall/scripts/guided.py +++ b/archinstall/scripts/guided.py @@ -188,7 +188,7 @@ def perform_installation( case PostInstallationAction.EXIT: pass case PostInstallationAction.REBOOT: - _ = os.system('reboot') # type: ignore[deprecated, unused-ignore] + _ = os.system('reboot') # type: ignore[deprecated] case PostInstallationAction.CHROOT: try: installation.drop_to_shell() diff --git a/archinstall/tui/curses_menu.py b/archinstall/tui/curses_menu.py index c0b1f02288..b64a800c0e 100644 --- a/archinstall/tui/curses_menu.py +++ b/archinstall/tui/curses_menu.py @@ -1310,7 +1310,7 @@ def print( clear_screen: bool = False, ) -> None: if clear_screen: - os.system('clear') # type: ignore[deprecated, unused-ignore] + os.system('clear') # type: ignore[deprecated] if Tui._t is None: print(text, end=endl) @@ -1355,7 +1355,7 @@ def _main_loop[ValueT](self, component: AbstractCurses[ValueT]) -> Result[ValueT return component.kickoff(self._screen) def _reset_terminal(self) -> None: - os.system('reset') # type: ignore[deprecated, unused-ignore] + os.system('reset') # type: ignore[deprecated] def _set_up_colors(self) -> None: curses.init_pair(STYLE.NORMAL.value, curses.COLOR_WHITE, curses.COLOR_BLACK)