diff options
author | mathieui <mathieui@mathieui.net> | 2018-08-15 14:21:59 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2018-08-15 14:23:00 +0200 |
commit | 5ea82ac0af1cb855c9333796004c6a97da6b5ad4 (patch) | |
tree | f737e7e25012b76324ae03b591e19266a113a845 /poezio/tabs/muclisttab.py | |
parent | cccb1d97591966de1bab1b293294eefb17b90aac (diff) | |
download | poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.tar.gz poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.tar.bz2 poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.tar.xz poezio-5ea82ac0af1cb855c9333796004c6a97da6b5ad4.zip |
Fix mypy errors, add type annotations
Diffstat (limited to 'poezio/tabs/muclisttab.py')
-rw-r--r-- | poezio/tabs/muclisttab.py | 9 |
1 files changed, 6 insertions, 3 deletions
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.", |