Skip to content

Commit d428bf8

Browse files
committed
Update mypy to 1.17.0
This commit also removes a type ignore comment that is no longer needed after python/mypy#18976.
1 parent f059d89 commit d428bf8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

archinstall/lib/profile/profiles_handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -164,7 +164,7 @@ def remove_custom_profiles(self, profiles: Profile | list[Profile]) -> None:
164164
self._profiles = [p for p in self.profiles if p.name not in remove_names]
165165

166166
def get_profile_by_name(self, name: str) -> Profile | None:
167-
return next(filter(lambda x: x.name == name, self.profiles), None) # type: ignore[arg-type, union-attr]
167+
return next(filter(lambda x: x.name == name, self.profiles), None)
168168

169169
def get_top_level_profiles(self) -> list[Profile]:
170170
return [p for p in self.profiles if p.is_top_level_profile()]

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Source = "https://github.com/archlinux/archinstall"
3131
[project.optional-dependencies]
3232
log = ["systemd_python==235"]
3333
dev = [
34-
"mypy==1.16.1",
34+
"mypy==1.17.0",
3535
"flake8==7.3.0",
3636
"pre-commit==4.2.0",
3737
"ruff==0.12.3",

0 commit comments

Comments
 (0)