Mercurial > libervia-backend
diff libervia/backend/plugins/plugin_xep_0106.py @ 4298:060d695ae98e
plugin XEP-0106, tools (common/email): type hints.
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 06 Sep 2024 17:44:08 +0200 |
parents | 0d7bb4df2343 |
children |
line wrap: on
line diff
--- a/libervia/backend/plugins/plugin_xep_0106.py Fri Sep 06 17:42:07 2024 +0200 +++ b/libervia/backend/plugins/plugin_xep_0106.py Fri Sep 06 17:44:08 2024 +0200 @@ -61,7 +61,7 @@ def get_handler(self, client): return XEP_0106_handler() - def escape(self, text): + def escape(self, text) -> str: """Escape text @param text(unicode): text to escape @@ -78,7 +78,7 @@ escaped.append(c) return "".join(escaped) - def unescape(self, escaped): + def unescape(self, escaped) -> str: """Unescape text @param escaped(unicode): text to unescape