summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--poezio/windows/confirm.py6
1 files changed, 3 insertions, 3 deletions
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