Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/archinstall/lib/profile/profiles_handler.py
diff options
context:
space:
mode:
authorDaniel Girtler <blackrabbit256@gmail.com>2023-10-03 18:31:17 +1100
committerGitHub <noreply@github.com>2023-10-03 18:31:17 +1100
commitedbc13590366e93bb8a85eacf104d5613bc5793a (patch)
treed26ddd0700b669f747522ae62ba1d71df1ff27d6 /archinstall/lib/profile/profiles_handler.py
parent5c903df55fac449baae1e9cc23b04f6beeb55364 (diff)
Extend the mypy checks (#2120)
* Extend the mypy checks * Update * Update * Update --------- Co-authored-by: Daniel Girtler <girtler.daniel@gmail.com>
Diffstat (limited to 'archinstall/lib/profile/profiles_handler.py')
-rw-r--r--archinstall/lib/profile/profiles_handler.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/archinstall/lib/profile/profiles_handler.py b/archinstall/lib/profile/profiles_handler.py
index 03039321..515cdfe9 100644
--- a/archinstall/lib/profile/profiles_handler.py
+++ b/archinstall/lib/profile/profiles_handler.py
@@ -138,16 +138,16 @@ class ProfileHandler:
profiles = [profiles]
for profile in profiles:
- self._profiles.append(profile)
+ self.profiles.append(profile)
- self._verify_unique_profile_names(self._profiles)
+ self._verify_unique_profile_names(self.profiles)
def remove_custom_profiles(self, profiles: Union[TProfile, List[TProfile]]):
if not isinstance(profiles, list):
profiles = [profiles]
remove_names = [p.name for p in profiles]
- self._profiles = [p for p in self._profiles if p.name not in remove_names]
+ self._profiles = [p for p in self.profiles if p.name not in remove_names]
def get_profile_by_name(self, name: str) -> Optional[Profile]:
return next(filter(lambda x: x.name == name, self.profiles), None) # type: ignore