From 5ea82ac0af1cb855c9333796004c6a97da6b5ad4 Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 15 Aug 2018 14:21:59 +0200 Subject: Fix mypy errors, add type annotations --- poezio/tabs/muclisttab.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'poezio/tabs/muclisttab.py') diff --git a/poezio/tabs/muclisttab.py b/poezio/tabs/muclisttab.py index 6ba7816d..aac25787 100644 --- a/poezio/tabs/muclisttab.py +++ b/poezio/tabs/muclisttab.py @@ -5,20 +5,23 @@ It has no functionality except scrolling the list, and allowing the user to join the rooms. """ import logging -log = logging.getLogger(__name__) +from typing import Dict, Callable from poezio.tabs import ListTab +from poezio.core.structs import Command from slixmpp.plugins.xep_0030.stanza.items import DiscoItem +log = logging.getLogger(__name__) + class MucListTab(ListTab): """ A tab listing rooms from a specific server, displaying various information, scrollable, and letting the user join them, etc """ - plugin_commands = {} - plugin_keys = {} + plugin_commands = {} # type: Dict[str, Command] + plugin_keys = {} # type: Dict[str, Callable] def __init__(self, core, server): ListTab.__init__(self, core, server.full, "ā€œjā€: join room.", -- cgit v1.2.3