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/confirmtab.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'poezio/tabs/confirmtab.py') diff --git a/poezio/tabs/confirmtab.py b/poezio/tabs/confirmtab.py index 545bb761..c76883dd 100644 --- a/poezio/tabs/confirmtab.py +++ b/poezio/tabs/confirmtab.py @@ -3,15 +3,18 @@ A generic tab that displays a text and a boolean choice """ import logging -log = logging.getLogger(__name__) +from typing import Dict, Callable from poezio import windows +from poezio.core.structs import Command from poezio.tabs import Tab +log = logging.getLogger(__name__) + class ConfirmTab(Tab): - plugin_commands = {} - plugin_keys = {} + plugin_commands = {} # type: Dict[str, Command] + plugin_keys = {} # type: Dict[str, Callable] def __init__(self, core, -- cgit v1.2.3