Skip to content

Update mypy to 1.20.0#4352

Merged
svartkanin merged 2 commits intoarchlinux:masterfrom
correctmost:cm/upgrade-mypy
Apr 1, 2026
Merged

Update mypy to 1.20.0#4352
svartkanin merged 2 commits intoarchlinux:masterfrom
correctmost:cm/upgrade-mypy

Conversation

@correctmost
Copy link
Copy Markdown
Contributor

PR Description:

This commit also removes a cast that is no longer needed after python/mypy#20602

This commit also removes a cast that is no longer needed after
python/mypy#20602
@correctmost correctmost requested a review from Torxed as a code owner April 1, 2026 12:52
# Setting an empty keymap first, allows the subsequent call to set layout for both console and x11.
with Boot(self.target) as session:
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""')
os.system('systemd-run --machine=archinstall --pty localectl set-keymap ""') # type: ignore[deprecated, unused-ignore]
Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

My local version of mypy 1.20.0 (with Python 3.14.3) flags the deprecated ignores as unused, so I added "unused-ignore" for now too:

archinstall/lib/installer.py:2000: error: Unused "type: ignore" comment  [unused-ignore]

@svartkanin svartkanin merged commit d70e03f into archlinux:master Apr 1, 2026
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants