Remove workaround for mypy 1.15.0 crash (#3545)

This reverts commit ae38e92100.
This commit is contained in:
correctmost 2025-05-30 07:12:05 +00:00 committed by GitHub
parent 1b39c7dbad
commit bd36c0c5d3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 1 additions and 4 deletions

View File

@ -705,10 +705,7 @@ class SelectMenu[ValueT](AbstractCurses[ValueT]):
self._interrupt_warning = reset_warning_msg
self._header = header
# TODO: Remove the inline annotation after upgrading to mypy 1.16.0
# The inline annotation is needed to avoid a crash in 1.15.0:
# RuntimeError: Partial type "<partial list[?]>" cannot be checked with "issubtype()"
self._header_entries: list[ViewportEntry] = []
self._header_entries = []
if header:
self._header_entries = self.get_header_entries(header)