Mercurial > libervia-backend
diff libervia/backend/memory/encryption.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/encryption.py Wed Dec 11 01:17:09 2024 +0200 +++ b/libervia/backend/memory/encryption.py Mon Jan 13 01:23:10 2025 +0100 @@ -77,7 +77,14 @@ log.info(_("encryption sessions restored")) @classmethod - def register_plugin(cls, plg_instance, name, namespace, priority=0, directed=False): + def register_plugin( + cls, + plg_instance, + name: str, + namespace: str, + priority: int=0, + directed: bool=False + ) -> None: """Register a plugin handling an encryption algorithm @param plg_instance(object): instance of the plugin @@ -92,12 +99,12 @@ entity(jid.JID): entity to stop encrypted session with if they don't exists, those 2 methods will be ignored. - @param name(unicode): human readable name of the encryption algorithm - @param namespace(unicode): namespace of the encryption algorithm - @param priority(int): priority of this plugin to encrypt an message when not + @param name: human readable name of the encryption algorithm + @param namespace: namespace of the encryption algorithm + @param priority: priority of this plugin to encrypt an message when not selected manually - @param directed(bool): True if this plugin is directed (if it works with one - device only at a time) + @param directed: True if this plugin is directed (if it works with one + device only at a time) """ existing_ns = set() existing_names = set()