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/data_forms.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'poezio/tabs/data_forms.py') diff --git a/poezio/tabs/data_forms.py b/poezio/tabs/data_forms.py index d216d4ca..496863bc 100644 --- a/poezio/tabs/data_forms.py +++ b/poezio/tabs/data_forms.py @@ -3,10 +3,13 @@ Defines the data-forms Tab """ import logging -log = logging.getLogger(__name__) +from typing import Dict, Callable from poezio import windows from poezio.tabs import Tab +from poezio.core.structs import Command + +log = logging.getLogger(__name__) class DataFormsTab(Tab): @@ -14,7 +17,8 @@ class DataFormsTab(Tab): A tab contaning various window type, displaying a form that the user needs to fill. """ - plugin_commands = {} + plugin_commands = {} # type: Dict[str, Command] + plugin_keys = {} # type: Dict[str, Callable] def __init__(self, core, form, on_cancel, on_send, kwargs): Tab.__init__(self, core) -- cgit v1.2.3