From 4fc2338faafcdd3955fdd25ed772426f0ee53220 Mon Sep 17 00:00:00 2001 From: Emmanuel Gil Peyrot Date: Fri, 17 Aug 2018 17:09:26 +0100 Subject: windows.confirm: Type everything in this module. --- poezio/windows/confirm.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'poezio/windows') diff --git a/poezio/windows/confirm.py b/poezio/windows/confirm.py index f2794221..65878509 100644 --- a/poezio/windows/confirm.py +++ b/poezio/windows/confirm.py @@ -7,12 +7,12 @@ class Dialog(Win): str_accept = " Accept " str_refuse = " Reject " - def __init__(self, helper_text, critical=False): + def __init__(self, helper_text: str, critical: bool = False) -> None: self.text = helper_text self.accept = False self.critical = critical - def refresh(self): + def refresh(self) -> None: self._win.erase() self.addstr(self.text + "\n ") @@ -35,5 +35,5 @@ class Dialog(Win): self._refresh() - def toggle_choice(self): + def toggle_choice(self) -> None: self.accept = not self.accept -- cgit v1.2.3