Daniel Brötzmann pushed to branch master at gajim / gajim


Commits:
3078e6e0 by wurstsalat at 2025-02-24T21:15:02+01:00
cq: Caps module: Improve type annotations

- - - - -


2 changed files:

- gajim/common/modules/caps.py
- pyproject.toml


Changes:

=====================================
gajim/common/modules/caps.py
=====================================
@@ -157,10 +157,13 @@ def _on_disco_info(self, nbxmpp_task: nbxmpp_Task) -> 
None:
                               disco_info.jid, error)
             return
 
+        assert disco_info.jid is not None
+        caps_hash = disco_info.get_caps_hash()
+        assert caps_hash is not None
         app.storage.cache.add_caps_entry(
             disco_info.jid,
             task.entity.method,
-            disco_info.get_caps_hash(),
+            caps_hash,
             disco_info)
 
         self._log.info('Finished query for %s', task.entity.hash)


=====================================
pyproject.toml
=====================================
@@ -117,7 +117,6 @@ exclude = [
   "gajim/common/modules/bits_of_binary.py",
   "gajim/common/modules/bookmarks.py",
   "gajim/common/modules/bytestream.py",
-  "gajim/common/modules/caps.py",
   "gajim/common/modules/contacts.py",
   "gajim/common/modules/discovery.py",
   "gajim/common/modules/entity_time.py",



View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3078e6e0f343a7703e7ce3d9d31c65436f6dd009

-- 
View it on GitLab: 
https://dev.gajim.org/gajim/gajim/-/commit/3078e6e0f343a7703e7ce3d9d31c65436f6dd009
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