Fix Pyright warning with curses.textpad (#3213)
This commit is contained in:
parent
4f72c0177b
commit
1c6085f86c
|
|
@ -387,7 +387,7 @@ class EditViewport(AbstractViewport):
|
||||||
# if this gets initialized multiple times it will be an overlay
|
# if this gets initialized multiple times it will be an overlay
|
||||||
# and ENTER has to be pressed multiple times to accept
|
# and ENTER has to be pressed multiple times to accept
|
||||||
if not self._textbox:
|
if not self._textbox:
|
||||||
self._textbox = curses.textpad.Textbox(self._edit_win)
|
self._textbox = Textbox(self._edit_win)
|
||||||
self._main_win.refresh()
|
self._main_win.refresh()
|
||||||
|
|
||||||
self._textbox.edit(self.process_key) # type: ignore[arg-type]
|
self._textbox.edit(self.process_key) # type: ignore[arg-type]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue