Skip to content

Commit b62b243

Browse files
committed
Update mypy to 1.20.0
This commit also removes a cast that is no longer needed after python/mypy#20602
1 parent 4b9087e commit b62b243

3 files changed

Lines changed: 2 additions & 3 deletions

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ repos:
3131
args: [--config=.flake8]
3232
fail_fast: true
3333
- repo: https://github.com/pre-commit/mirrors-mypy
34-
rev: v1.19.1
34+
rev: v1.20.0
3535
hooks:
3636
- id: mypy
3737
args: [

archinstall/lib/menu/list_manager.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -80,7 +80,6 @@ async def _run(self) -> list[ValueT] | None:
8080
raise ValueError('Unhandled return type')
8181

8282
if value in self._base_actions:
83-
value = cast(str, value)
8483
self._data = await self.handle_action(value, None, self._data)
8584
elif value in self._terminate_actions:
8685
break

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Source = "https://github.com/archlinux/archinstall"
3333
[project.optional-dependencies]
3434
log = ["systemd_python==235"]
3535
dev = [
36-
"mypy==1.19.1",
36+
"mypy==1.20.0",
3737
"flake8==7.3.0",
3838
"pre-commit==4.5.1",
3939
"ruff==0.15.7",

0 commit comments

Comments
 (0)