Mercurial > libervia-backend
diff libervia/backend/memory/disco.py @ 4342:17fa953c8cd7
core (types): improve `SatXMPPEntity` core type and type hints.
author | Goffi <goffi@goffi.org> |
---|---|
date | Mon, 13 Jan 2025 01:23:10 +0100 |
parents | e9971a4b0627 |
children |
line wrap: on
line diff
--- a/libervia/backend/memory/disco.py Wed Dec 11 01:17:09 2024 +0200 +++ b/libervia/backend/memory/disco.py Mon Jan 13 01:23:10 2025 +0100 @@ -204,12 +204,18 @@ disco_infos = await self.get_infos(client, jid_, node) return (category, type_) in disco_infos.identities - def get_infos(self, client, jid_=None, node="", use_cache=True): + def get_infos( + self, + client: SatXMPPEntity, + jid_: jid.JID|None=None, + node: str="", + use_cache: bool=True + ) -> defer.Deferred[disco.DiscoInfo]: """get disco infos from jid_, filling capability hash if needed @param jid_: jid of the target, or None for profile's server - @param node(unicode): optional node to use for disco request - @param use_cache(bool): if True, use cached data if available + @param node: optional node to use for disco request + @param use_cache: if True, use cached data if available @return: a Deferred which fire disco.DiscoInfo """ if jid_ is None: