home · contact · privacy
Straighten consistence between class expectations.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 5 Sep 2025 13:14:31 +0000 (15:14 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 5 Sep 2025 13:14:31 +0000 (15:14 +0200)
ircplom/client.py

index 5d906f9b51867020f550217f49f45b4fb92d22e3..35f354dfe171e3c27048090f91cf3823e6f90ba9 100644 (file)
@@ -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: