From 4faf28d8f6eb7dce31525606739cc6fe95d76e84 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 5 Sep 2025 15:14:31 +0200 Subject: [PATCH] Straighten consistence between class expectations. --- ircplom/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: -- 2.30.2