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))
@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)