Skip to content

Commit a6d4536

Browse files
committed
Ignore os.system deprecation warnings from mypy to fix CI
1 parent b62b243 commit a6d4536

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

archinstall/lib/installer.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1997,7 +1997,7 @@ def set_keyboard_language(self, language: str) -> bool:
19971997
# In accordance with https://github.com/archlinux/archinstall/issues/107#issuecomment-841701968
19981998
# Setting an empty keymap first, allows the subsequent call to set layout for both console and x11.
19991999
with Boot(self.target) as session:
2000-
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""')
2000+
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated, unused-ignore]
20012001

20022002
try:
20032003
session.SysCommand(['localectl', 'set-keymap', language])
@@ -2063,7 +2063,7 @@ def _service_state(self, service_name: str) -> str:
20632063

20642064

20652065
def accessibility_tools_in_use() -> bool:
2066-
return os.system('systemctl is-active --quiet espeakup.service') == 0
2066+
return os.system('systemctl is-active --quiet espeakup.service') == 0 # type: ignore[deprecated, unused-ignore]
20672067

20682068

20692069
def run_custom_user_commands(commands: list[str], installation: Installer) -> None:

archinstall/scripts/guided.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ def perform_installation(
188188
case PostInstallationAction.EXIT:
189189
pass
190190
case PostInstallationAction.REBOOT:
191-
_ = os.system('reboot')
191+
_ = os.system('reboot') # type: ignore[deprecated, unused-ignore]
192192
case PostInstallationAction.CHROOT:
193193
try:
194194
installation.drop_to_shell()

archinstall/tui/curses_menu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1312,7 +1312,7 @@ def print(
13121312
clear_screen: bool = False,
13131313
) -> None:
13141314
if clear_screen:
1315-
os.system('clear')
1315+
os.system('clear') # type: ignore[deprecated, unused-ignore]
13161316

13171317
if Tui._t is None:
13181318
print(text, end=endl)
@@ -1357,7 +1357,7 @@ def _main_loop[ValueT](self, component: AbstractCurses[ValueT]) -> Result[ValueT
13571357
return component.kickoff(self._screen)
13581358

13591359
def _reset_terminal(self) -> None:
1360-
os.system('reset')
1360+
os.system('reset') # type: ignore[deprecated, unused-ignore]
13611361

13621362
def _set_up_colors(self) -> None:
13631363
curses.init_pair(STYLE.NORMAL.value, curses.COLOR_WHITE, curses.COLOR_BLACK)

0 commit comments

Comments
 (0)