ui: fix mypy warnings

This commit is contained in:
rr-
2018-11-05 22:09:35 +01:00
parent 4800557df8
commit 37a8ecc7da
5 changed files with 7 additions and 7 deletions
+1 -1
View File
@@ -32,7 +32,7 @@ class CustomProgressBar(urwid.Widget):
percent = min(100, max(0, int(self.position * 100 / self.max_)))
return str(percent) + " %"
def render(self, size: T.Tuple[int, int], focus: bool = False) -> None:
def render(self, size: T.Tuple[int, int], focus: bool = False) -> T.Any:
(maxcol,) = size
txt = urwid.Text(self.get_text(), self.text_align, "clip")
c = txt.render((maxcol,))