mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-29 06:44:00 -06:00
ui: correct mypy definitions
This commit is contained in:
+3
-1
@@ -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),
|
||||
|
||||
Reference in New Issue
Block a user