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/confirmtab.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/confirmtab.py')
-rw-r--r-- | poezio/tabs/confirmtab.py | 9 |
1 files changed, 6 insertions, 3 deletions
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, |