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 commit0175949ca. This fixes commitd70e03fa3.
This commit is contained in:
parent
3ef0848ffe
commit
18c77b94f2
|
|
@ -2008,7 +2008,7 @@ class Installer:
|
|||
# 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 @@ class Installer:
|
|||
|
||||
|
||||
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:
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
|
|
|
|||
|
|
@ -1310,7 +1310,7 @@ class Tui:
|
|||
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 @@ class Tui:
|
|||
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)
|
||||
|
|
|
|||
Loading…
Reference in New Issue