home · contact · privacy
Minor code reorganization.
authorChristian Heller <c.heller@plomlompom.de>
Thu, 4 Sep 2025 01:55:26 +0000 (03:55 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Thu, 4 Sep 2025 01:55:26 +0000 (03:55 +0200)
ircplom/client.py

index 86c765f0facdc26bb43b16e73b4a72d937f2bb0e..f12ed8ea13efdc63afa8ece4216ad4a95e0b570e 100644 (file)
@@ -274,6 +274,12 @@ class ServerCapability:
     enabled: bool = False
 
 
+class Topic(NamedTuple):
+    'Collects both setter and content of channel topic.'
+    what: str = ''
+    who: Optional[NickUserHost] = None
+
+
 class LogScope(Enum):
     'Where log messages should go.'
     ALL = auto()
@@ -317,12 +323,6 @@ class _IrcConnection(BaseIrcConnection, _ClientIdMixin):
                                     client_id=self.client_id).kw(e=e)
 
 
-class Topic(NamedTuple):
-    'Collects both setter and content of channel topic.'
-    what: str = ''
-    who: Optional[NickUserHost] = None
-
-
 class _CompletableTopic(_Completable):
     _what: str = ''
     _who: Optional[NickUserHost] = None
@@ -438,13 +438,13 @@ class _UpdatingServerCapability(_UpdatingMixin, ServerCapability):
     pass
 
 
-class _UpdatingTopic(_UpdatingCompletable, _CompletableTopic):
+class _UpdatingCompletableTopic(_UpdatingCompletable, _CompletableTopic):
     pass
 
 
 class _UpdatingChannel(_UpdatingMixin, _Channel):
     user_ids: _UpdatingCompletableStringsList
-    topic: _UpdatingTopic
+    topic: _UpdatingCompletableTopic
 
 
 class _UpdatingNickUserHost(_UpdatingMixin, _NickUserHost):