home · contact · privacy
Fix forgotten inits.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 8 Jul 2025 20:12:47 +0000 (22:12 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 8 Jul 2025 20:12:47 +0000 (22:12 +0200)
ircplom/events.py
ircplom/irc_conn.py
ircplom/tui.py

index bfc10d9d2a7449f3026bb0316ce91bd168b88827..e912edcfa93410fbe101a288181e0edfc045097f 100644 (file)
@@ -28,7 +28,8 @@ class QuitEvent(Event):
 class BroadcastMixin:
     'To provide .broadcast via newly assigned ._q_to_main.'
 
-    def __init__(self, q_to_main: EventQueue) -> None:
+    def __init__(self, q_to_main: EventQueue, **kwargs) -> None:
+        super().__init__(**kwargs)
         self._q_to_main = q_to_main
 
     def broadcast[E: Event](self,
index 6746bc773023b7526bb7e2e94e729c1f0ec28340..4d9df4c8ca74054441f64f1821477d97d0834e25 100644 (file)
@@ -78,7 +78,7 @@ class SendEvent(ConnEvent, PayloadMixin):
 class BroadcastConnMixin(BroadcastMixin):
     'Provides .broadcast_conn on classes that have .conn_idx defined.'
 
-    def __init__(self, conn_idx: int, **kwargs):
+    def __init__(self, conn_idx: int, **kwargs) -> None:
         super().__init__(**kwargs)
         self.conn_idx = conn_idx
 
index 7345aa83bb574931a7a72e788203c7e6f2589bb5..6638fa39ba2ad23794608a10f2a1b2efaf6af014 100644 (file)
@@ -73,6 +73,7 @@ class _Widget(ABC):
 
     @abstractmethod
     def __init__(self, *args, **kwargs) -> None:
+        super().__init__(*args, **kwargs)
         self.tainted = True
         self._drawable = False