home · contact · privacy
Minor code style improvements.
authorChristian Heller <c.heller@plomlompom.de>
Tue, 5 Aug 2025 04:10:03 +0000 (06:10 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Tue, 5 Aug 2025 04:10:03 +0000 (06:10 +0200)
ircplom/client_tui.py
ircplom/events.py

index 6d0b5c7e6f9ab03bc58e5b1ae45e0db96b7ee4b6..368fd5820c20b8d7fd9814cd8269871d7c7d6a06 100644 (file)
@@ -201,5 +201,5 @@ class _ClientKnowingTui(Client):
 
     def update_login(self, nick_confirmed: bool, nickname: str = '') -> None:
         super().update_login(nick_confirmed, nickname)
-        self._cput(_ClientPromptEvent, payload=(self.nick_confirmed,
-                                                self.conn_setup.nickname))
+        self._cput(_ClientPromptEvent,
+                   payload=(self.nick_confirmed, self.conn_setup.nickname))
index 85f617c0ecb18f084a13e89672df047c6ff4a699..7e96a50667d3d1af2a3135c09abfe75a72311c77 100644 (file)
@@ -24,7 +24,11 @@ class AffectiveEvent(Event, ABC):
 
     @classmethod
     def make_subtype(cls: Any, method_to_call: str, **kwargs):
-        'Return subclass whose .affect calls method_to_call on target, kwargs.'
+        '''Return subclass whose .affect calls target.method_to_call(**kwargs).
+
+        This will often be more convenient than a full subclass definition,
+        which mostly only matters for what the main loop gotta differentiate.
+        '''
         class _AdaptedEvent(cls):
             def affect(self, target) -> None:
                 getattr(target, method_to_call)(**kwargs)