Skip to content

Commit 18c77b9

Browse files
authored
Remove unnecessary 'unused-ignore' mypy directives (#4395)
The directives were added because a PR branch accidentally lagged behind master and did not contain the mypy python_version bump from commit 0175949. This fixes commit d70e03f.
1 parent 3ef0848 commit 18c77b9

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
@@ -2008,7 +2008,7 @@ def set_keyboard_language(self, language: str) -> bool:
20082008
# In accordance with https://github.com/archlinux/archinstall/issues/107#issuecomment-841701968
20092009
# Setting an empty keymap first, allows the subsequent call to set layout for both console and x11.
20102010
with Boot(self.target) as session:
2011-
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated, unused-ignore]
2011+
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated]
20122012

20132013
try:
20142014
session.SysCommand(['localectl', 'set-keymap', language])
@@ -2074,7 +2074,7 @@ def _service_state(self, service_name: str) -> str:
20742074

20752075

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

20792079

20802080
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') # type: ignore[deprecated, unused-ignore]
191+
_ = os.system('reboot') # type: ignore[deprecated]
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
@@ -1310,7 +1310,7 @@ def print(
13101310
clear_screen: bool = False,
13111311
) -> None:
13121312
if clear_screen:
1313-
os.system('clear') # type: ignore[deprecated, unused-ignore]
1313+
os.system('clear') # type: ignore[deprecated]
13141314

13151315
if Tui._t is None:
13161316
print(text, end=endl)
@@ -1355,7 +1355,7 @@ def _main_loop[ValueT](self, component: AbstractCurses[ValueT]) -> Result[ValueT
13551355
return component.kickoff(self._screen)
13561356

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

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

0 commit comments

Comments
 (0)