diff --git a/gajim/common/const.py b/gajim/common/const.py
index 2be7e0885625ca29b26935b7330567785401ba1f..4e1361145d9f138b7c650ba3506adb587c25d4f6 100644
--- a/gajim/common/const.py
+++ b/gajim/common/const.py
@@ -1180,6 +1180,6 @@ def is_offline(self):
     def __lt__(self, other: Union[PresenceShowExt, PresenceShow]) -> bool:
         if isinstance(other, PresenceShowExt):
             return False
-        if not isinstance(other, PresenceShow):
+        if not isinstance(other, PresenceShow):  # pyright: ignore
             return NotImplemented
         return True