Skip to content
Snippets Groups Projects
Commit 382784a9 authored by Daniel Brötzmann's avatar Daniel Brötzmann
Browse files

chore: VCardTemp: Add type annotations

parent e016d425
No related branches found
No related tags found
No related merge requests found
...@@ -14,8 +14,12 @@ ...@@ -14,8 +14,12 @@
# XEP-0054: vcard-temp # XEP-0054: vcard-temp
from __future__ import annotations
from nbxmpp.namespaces import Namespace from nbxmpp.namespaces import Namespace
from nbxmpp.structs import DiscoInfo
from gajim.common import types
from gajim.common.modules.base import BaseModule from gajim.common.modules.base import BaseModule
...@@ -27,13 +31,13 @@ class VCardTemp(BaseModule): ...@@ -27,13 +31,13 @@ class VCardTemp(BaseModule):
'set_vcard', 'set_vcard',
] ]
def __init__(self, con): def __init__(self, con: types.Client) -> None:
BaseModule.__init__(self, con) BaseModule.__init__(self, con)
self._own_vcard = None self._own_vcard = None
self.supported = False self.supported = False
def pass_disco(self, info): def pass_disco(self, info: DiscoInfo) -> None:
if Namespace.VCARD not in info.features: if Namespace.VCARD not in info.features:
return return
......
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
"gajim/common/modules/chat_markers.py", "gajim/common/modules/chat_markers.py",
"gajim/common/modules/pep.py", "gajim/common/modules/pep.py",
"gajim/common/modules/register.py", "gajim/common/modules/register.py",
"gajim/common/modules/vcard_temp.py",
"gajim/common/passwords.py", "gajim/common/passwords.py",
"gajim/common/regex.py", "gajim/common/regex.py",
"gajim/common/setting_values.py", "gajim/common/setting_values.py",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment