Update mypy to 1.17.0 (#3671)

This commit also removes a type ignore comment that is no longer
needed after python/mypy#18976.
This commit is contained in:
correctmost 2025-07-16 22:37:06 -04:00 committed by GitHub
parent f059d897fb
commit 8736926fb2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -164,7 +164,7 @@ class ProfileHandler:
self._profiles = [p for p in self.profiles if p.name not in remove_names]
def get_profile_by_name(self, name: str) -> Profile | None:
return next(filter(lambda x: x.name == name, self.profiles), None) # type: ignore[arg-type, union-attr]
return next(filter(lambda x: x.name == name, self.profiles), None)
def get_top_level_profiles(self) -> list[Profile]:
return [p for p in self.profiles if p.is_top_level_profile()]

View File

@ -31,7 +31,7 @@ Source = "https://github.com/archlinux/archinstall"
[project.optional-dependencies]
log = ["systemd_python==235"]
dev = [
"mypy==1.16.1",
"mypy==1.17.0",
"flake8==7.3.0",
"pre-commit==4.2.0",
"ruff==0.12.3",