Skip to content

Commit f7d0f04

Browse files
committed
Remove quotes from Installer type annotations
1 parent e1d9935 commit f7d0f04

File tree

16 files changed

+56
-26
lines changed

16 files changed

+56
-26
lines changed

archinstall/applications/audio.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING
24

35
from archinstall.lib.hardware import SysInfo
@@ -30,7 +32,7 @@ def pipewire_packages(self) -> list[str]:
3032

3133
def _enable_pipewire(
3234
self,
33-
install_session: 'Installer',
35+
install_session: Installer,
3436
users: list['User'] | None = None,
3537
) -> None:
3638
if users is None:
@@ -56,7 +58,7 @@ def _enable_pipewire(
5658

5759
def install(
5860
self,
59-
install_session: 'Installer',
61+
install_session: Installer,
6062
audio_config: AudioConfiguration,
6163
users: list[User] | None = None,
6264
) -> None:

archinstall/applications/bluetooth.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING
24

35
from archinstall.lib.output import debug
@@ -20,7 +22,7 @@ def services(self) -> list[str]:
2022
'bluetooth.service',
2123
]
2224

23-
def install(self, install_session: 'Installer') -> None:
25+
def install(self, install_session: Installer) -> None:
2426
debug('Installing Bluetooth')
2527
install_session.add_additional_packages(self.packages)
2628
install_session.enable_service(self.services)

archinstall/applications/firewall.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING
24

35
from archinstall.lib.models.application import Firewall, FirewallConfiguration
@@ -34,7 +36,7 @@ def fwd_services(self) -> list[str]:
3436

3537
def install(
3638
self,
37-
install_session: 'Installer',
39+
install_session: Installer,
3840
firewall_config: FirewallConfiguration,
3941
) -> None:
4042
debug(f'Installing firewall: {firewall_config.firewall.value}')

archinstall/applications/power_management.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING
24

35
from archinstall.lib.models.application import PowerManagement, PowerManagementConfiguration
@@ -23,7 +25,7 @@ def tuned_packages(self) -> list[str]:
2325

2426
def install(
2527
self,
26-
install_session: 'Installer',
28+
install_session: Installer,
2729
power_management_config: PowerManagementConfiguration,
2830
) -> None:
2931
debug(f'Installing power management daemon: {power_management_config.power_management.value}')

archinstall/applications/print_service.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING
24

35
from archinstall.lib.output import debug
@@ -17,7 +19,7 @@ def services(self) -> list[str]:
1719
'cups.service',
1820
]
1921

20-
def install(self, install_session: 'Installer') -> None:
22+
def install(self, install_session: Installer) -> None:
2123
debug('Installing print service')
2224
install_session.add_additional_packages(self.packages)
2325
install_session.enable_service(self.services)

archinstall/default_profiles/custom.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# from __future__ import annotations
2+
#
13
# from typing import List, Dict, Optional, TYPE_CHECKING, Any
24
#
35
# from ..lib import menu
@@ -157,11 +159,11 @@
157159
#
158160
# return SelectResult.NewSelection
159161
#
160-
# def post_install(self, install_session: 'Installer'):
162+
# def post_install(self, install_session: Installer):
161163
# for profile in self._current_selection:
162164
# profile.post_install(install_session)
163165
#
164-
# def install(self, install_session: 'Installer'):
166+
# def install(self, install_session: Installer):
165167
# driver_packages = self.gfx_driver_packages()
166168
# install_session.add_additional_packages(driver_packages)
167169
#

archinstall/default_profiles/desktop.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING, Self, override
24

35
from archinstall.default_profiles.profile import GreeterType, Profile, ProfileType, SelectResult
@@ -89,12 +91,12 @@ def do_on_select(self) -> SelectResult:
8991
return SelectResult.ResetCurrent
9092

9193
@override
92-
def post_install(self, install_session: 'Installer') -> None:
94+
def post_install(self, install_session: Installer) -> None:
9395
for profile in self.current_selection:
9496
profile.post_install(install_session)
9597

9698
@override
97-
def install(self, install_session: 'Installer') -> None:
99+
def install(self, install_session: Installer) -> None:
98100
# Install common packages for all desktop environments
99101
install_session.add_additional_packages(self.packages)
100102

archinstall/default_profiles/desktops/awesome.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING, override
24

35
from archinstall.default_profiles.profile import ProfileType
@@ -29,7 +31,7 @@ def packages(self) -> list[str]:
2931
]
3032

3133
@override
32-
def install(self, install_session: 'Installer') -> None:
34+
def install(self, install_session: Installer) -> None:
3335
super().install(install_session)
3436

3537
# TODO: Copy a full configuration to ~/.config/awesome/rc.lua instead.

archinstall/default_profiles/profile.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,12 +101,12 @@ def _advanced_check(self) -> bool:
101101

102102
return self.advanced is False or arch_config_handler.args.advanced is True
103103

104-
def install(self, install_session: 'Installer') -> None:
104+
def install(self, install_session: Installer) -> None:
105105
"""
106106
Performs installation steps when this profile was selected
107107
"""
108108

109-
def post_install(self, install_session: 'Installer') -> None:
109+
def post_install(self, install_session: Installer) -> None:
110110
"""
111111
Hook that will be called when the installation process is
112112
finished and custom installation steps for specific default_profiles

archinstall/default_profiles/server.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
from __future__ import annotations
2+
13
from typing import TYPE_CHECKING, Self, override
24

35
from archinstall.default_profiles.profile import Profile, ProfileType, SelectResult
@@ -55,12 +57,12 @@ def do_on_select(self) -> SelectResult:
5557
return SelectResult.ResetCurrent
5658

5759
@override
58-
def post_install(self, install_session: 'Installer') -> None:
60+
def post_install(self, install_session: Installer) -> None:
5961
for profile in self.current_selection:
6062
profile.post_install(install_session)
6163

6264
@override
63-
def install(self, install_session: 'Installer') -> None:
65+
def install(self, install_session: Installer) -> None:
6466
server_info = self.current_selection_names()
6567
details = ', '.join(server_info)
6668
info(f'Now installing the selected servers: {details}')

0 commit comments

Comments
 (0)