mirror of
https://github.com/rr-/pq-cli.git
synced 2026-09-28 22:33:59 -06:00
ui: fix mypy warnings
This commit is contained in:
@@ -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,))
|
||||
|
||||
Reference in New Issue
Block a user