summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl/input.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/_pyrepl/input.py')
-rw-r--r--Lib/_pyrepl/input.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/_pyrepl/input.py b/Lib/_pyrepl/input.py
index 300e16d..21c24eb 100644
--- a/Lib/_pyrepl/input.py
+++ b/Lib/_pyrepl/input.py
@@ -60,7 +60,7 @@ class InputTranslator(ABC):
class KeymapTranslator(InputTranslator):
- def __init__(self, keymap, verbose=0, invalid_cls=None, character_cls=None):
+ def __init__(self, keymap, verbose=False, invalid_cls=None, character_cls=None):
self.verbose = verbose
from .keymap import compile_keymap, parse_keys
@@ -110,5 +110,5 @@ class KeymapTranslator(InputTranslator):
else:
return None
- def empty(self):
+ def empty(self) -> bool:
return not self.results