summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-17 17:09:26 +0100
committerEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-08-17 18:36:37 +0100
commit4fc2338faafcdd3955fdd25ed772426f0ee53220 (patch)
treed12e82c7228c703539f43fc376b69b68e9f9a415
parent45066d0eefbbe3708fe45176a5beb154ccdaeb45 (diff)
downloadpoezio-4fc2338faafcdd3955fdd25ed772426f0ee53220.tar.gz
poezio-4fc2338faafcdd3955fdd25ed772426f0ee53220.tar.bz2
poezio-4fc2338faafcdd3955fdd25ed772426f0ee53220.tar.xz
poezio-4fc2338faafcdd3955fdd25ed772426f0ee53220.zip
windows.confirm: Type everything in this module.
-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