Skip to content

Add an inline annotation to avoid a crash with mypy 1.15.0#3434

Merged
svartkanin merged 1 commit intoarchlinux:masterfrom
correctmost:cm/avoid-mypy-crash
May 4, 2025
Merged

Add an inline annotation to avoid a crash with mypy 1.15.0#3434
svartkanin merged 1 commit intoarchlinux:masterfrom
correctmost:cm/avoid-mypy-crash

Conversation

@correctmost
Copy link
Copy Markdown
Contributor

PR Description:

The annotation prevents intermittent crashes when running mypy with a clean cache:

./archinstall/tui/curses_menu.py:723: error: INTERNAL ERROR

RuntimeError: Partial type "<partial list[?]>" cannot be checked with "issubtype()"

Example failures:

The annotation prevents intermittent crashes when running mypy
with a clean cache:

./archinstall/tui/curses_menu.py:723: error: INTERNAL ERROR

RuntimeError: Partial type "<partial list[?]>" cannot be checked with "issubtype()"
@correctmost correctmost requested a review from Torxed as a code owner May 4, 2025 17:39
@svartkanin svartkanin merged commit ae38e92 into archlinux:master May 4, 2025
8 checks passed
@correctmost correctmost deleted the cm/avoid-mypy-crash branch May 4, 2025 21:07
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