From: Christian Heller Date: Fri, 5 Sep 2025 13:14:31 +0000 (+0200) Subject: Straighten consistence between class expectations. X-Git-Url: https://plomlompom.com/repos/day?a=commitdiff_plain;h=4faf28d8f6eb7dce31525606739cc6fe95d76e84;p=ircplom Straighten consistence between class expectations. --- diff --git a/ircplom/client.py b/ircplom/client.py index 5d906f9..35f354d 100644 --- a/ircplom/client.py +++ b/ircplom/client.py @@ -394,7 +394,7 @@ class _Channel: class _NickUserHost(NickUserHost): def __setattr__(self, key: str, value: NickUserHost | str) -> None: - if key == 'nickuserhost' and isinstance(value, _NickUserHost): + if key == 'nickuserhost' and isinstance(value, NickUserHost): for annotated_key in NickUserHost.__annotations__: setattr(self, annotated_key, getattr(value, annotated_key)) else: