changeset 4221:2b000790b197

plugin XEP-0060: fix incorrect type hint.
author Goffi <goffi@goffi.org>
date Tue, 05 Mar 2024 17:31:56 +0100 (9 months ago)
parents 5a0bddfa34ac
children 1c30d574df2b
files libervia/backend/plugins/plugin_pubsub_cache.py libervia/backend/plugins/plugin_xep_0060.py
diffstat 2 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_pubsub_cache.py	Tue Mar 05 17:31:49 2024 +0100
+++ b/libervia/backend/plugins/plugin_pubsub_cache.py	Tue Mar 05 17:31:56 2024 +0100
@@ -405,8 +405,8 @@
                 conf = await self._p.getConfiguration(client, service, node)
             except Exception as e:
                 log.warning(
-                    f"Can't retrieve configuration for node {node!r} at service {service} "
-                    f"for {client.profile}: {e}"
+                    f"Can't retrieve configuration for node {node!r} at service "
+                    f"{service} for {client.profile}: {e}"
                 )
             else:
                 analyse["conf"] = conf
--- a/libervia/backend/plugins/plugin_xep_0060.py	Tue Mar 05 17:31:49 2024 +0100
+++ b/libervia/backend/plugins/plugin_xep_0060.py	Tue Mar 05 17:31:56 2024 +0100
@@ -744,7 +744,7 @@
         sub_id: Optional[str] = None,
         rsm_request: Optional[rsm.RSMRequest] = None,
         extra: Optional[dict] = None
-    ) -> Tuple[List[dict], dict]:
+    ) -> Tuple[List[domish.Element], dict]:
         """Retrieve pubsub items from a node.
 
         @param service (JID, None): pubsub service.