Mercurial > libervia-backend
diff sat/core/core_types.py @ 4033:5a42c7842556
core (plugins): implementation of XEP-0215 "External Service Discovery":
rel 418
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 07 Apr 2023 15:16:39 +0200 |
parents | 8289ac1b34f4 |
children | 3900626bc100 |
line wrap: on
line diff
--- a/sat/core/core_types.py Fri Apr 07 14:59:01 2023 +0200 +++ b/sat/core/core_types.py Fri Apr 07 15:16:39 2023 +0200 @@ -17,9 +17,11 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. from collections import namedtuple -from typing import Dict +from typing import Dict, Callable, Optional from typing_extensions import TypedDict + from twisted.words.protocols.jabber import jid as t_jid +from twisted.words.protocols.jabber import xmlstream from twisted.words.xish import domish @@ -27,7 +29,8 @@ jid: t_jid.JID is_component: bool - + server_jid: t_jid.JID + IQ: Callable[[Optional[str], Optional[int]], xmlstream.IQ] EncryptionPlugin = namedtuple("EncryptionPlugin", ("instance", "name",