ui: correct mypy definitions

This commit is contained in:
rr-
2018-11-05 21:04:39 +01:00
parent 2b60b80364
commit 6549dbe817
4 changed files with 10 additions and 8 deletions
+3 -1
View File
@@ -1,8 +1,10 @@
import typing as T
import urwid
class MenuButton(urwid.Button):
def __init__(self, label, *args, **kwargs):
def __init__(self, label: str, *args: T.Any, **kwargs: T.Any) -> None:
super().__init__("", *args, **kwargs)
self._w = urwid.AttrMap(
urwid.SelectableIcon(["\N{BULLET} ", label], 2),