summaryrefslogtreecommitdiffstats
path: root/Lib/_pyrepl/input.py
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-05-22 18:38:32 (GMT)
committerGitHub <noreply@github.com>2024-05-22 18:38:32 (GMT)
commitcd39da75afbede2e5f012065fedd709bf74a9c5f (patch)
tree30f1870989460378aa6c9ade443ed6b3ceda936d /Lib/_pyrepl/input.py
parentbfd9c3ea5336f2898e3c58e0c3999bfc25d7da89 (diff)
downloadcpython-cd39da75afbede2e5f012065fedd709bf74a9c5f.zip
cpython-cd39da75afbede2e5f012065fedd709bf74a9c5f.tar.gz
cpython-cd39da75afbede2e5f012065fedd709bf74a9c5f.tar.bz2
[3.13] Improve `pyrepl` type-annotation coverage (GH-119081) (#119415)
(cherry picked from commit 033f5c87f1f876088701d1ae078dc39c41177d4a) Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
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