Skip to content
Snippets Groups Projects
Commit 2ea5e3a1 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Annotate variable

parent de23508c
No related branches found
No related tags found
No related merge requests found
......@@ -51,6 +51,7 @@
from gajim.common.types import InterfaceT # pylint: disable=unused-import
from gajim.common.types import LoggerT # pylint: disable=unused-import
from gajim.common.types import ConnectionT # pylint: disable=unused-import
from gajim.common.types import LegacyContactsAPIT # pylint: disable=unused-import
interface = cast(InterfaceT, None)
thread_interface = lambda *args: None # Interface to run a thread and then a callback
......@@ -78,7 +79,7 @@
# {acct1: {jid1: time1, jid2: time2}, }
last_message_time = {} # type: Dict[str, Dict[str, float]]
contacts = None
contacts = cast(LegacyContactsAPIT, None)
# tell if we are connected to the room or not
# {acct: {room_jid: True}}
......
......@@ -32,6 +32,7 @@
from gajim.common.zeroconf.connection_zeroconf import ConnectionZeroconf
from gajim.common.contacts import Contact
from gajim.common.contacts import GC_Contact
from gajim.common.contacts import LegacyContactsAPI
from gajim.common.nec import NetworkEvent
from gajim.common.nec import NetworkEventsController
from gajim.common.logger import Logger
......@@ -46,6 +47,7 @@
ConnectionT = Union['Client', 'ConnectionZeroconf']
ContactsT = Union['Contact', 'GC_Contact']
ContactT = Union['Contact']
LegacyContactsAPIT = Union['LegacyContactsAPI']
# PEP
PEPNotifyCallback = Callable[[nbxmpp.JID, nbxmpp.Node], None]
......
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