Philipp Hörist pushed to branch master at gajim / gajim


Commits:
2381d867 by Philipp Hörist at 2023-08-06T09:49:45+02:00
cq: Use new notation for isinstance

- - - - -


1 changed file:

- gajim/gtk/groupchat_invitation.py


Changes:

=====================================
gajim/gtk/groupchat_invitation.py
=====================================
@@ -56,7 +56,7 @@ def __init__(self, account: str, event: MucInvitation) -> 
None:
 
         contact = self._client.get_module('Contacts').get_contact(
             event.from_.bare)
-        assert isinstance(contact, (BareContact, GroupchatContact))
+        assert isinstance(contact, BareContact | GroupchatContact)
         contact_label = Gtk.Label(label=contact.name)
         contact_label.get_style_context().add_class('bold16')
         contact_label.set_line_wrap(True)



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2381d867e55abcc2fdcfda211831491105c4f48e

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/2381d867e55abcc2fdcfda211831491105c4f48e
You're receiving this email because of your account on dev.gajim.org.


_______________________________________________
Commits mailing list -- [email protected]
To unsubscribe send an email to [email protected]

Reply via email to