plugin XEP-0060: fix incorrect type hint.

This commit is contained in:
Goffi 2024-03-05 17:31:56 +01:00
commit b6383c557e
2 changed files with 3 additions and 3 deletions

View file

@ -405,8 +405,8 @@ class PubsubCache:
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

View file

@ -744,7 +744,7 @@ class XEP_0060(object):
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.