From 0102ba9fa2883dcf37befac9efb7cc3939e83964 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Thu, 7 Aug 2025 15:58:54 +0200 Subject: [PATCH] Fix accidental doubling of :server, :raw window references in .windows. --- ircplom/client_tui.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ircplom/client_tui.py b/ircplom/client_tui.py index acb5b46..9400570 100644 --- a/ircplom/client_tui.py +++ b/ircplom/client_tui.py @@ -88,10 +88,10 @@ class _ClientWindowsManager: nickname: str = '?' def __init__(self, new_window: Callable) -> None: - self.windows = [] + self.windows: list[_ClientWindow] = [] self._tui_new_window = new_window - self.windows += [self._new_window(stream) - for stream in (STREAM_SERVER, STREAM_RAW)] + for stream in (STREAM_SERVER, STREAM_RAW): + self._new_window(stream) def _if_privmsg_update_prefix(self, win: _ClientWindow) -> None: if isinstance(win, _PrivmsgWindow): -- 2.30.2