Improve pyrepl type-annotation coverage (#119081)

This commit is contained in:
Alex Waygood 2024-05-17 06:13:24 -04:00 committed by GitHub
parent 100c7ab00a
commit 033f5c87f1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 31 additions and 14 deletions

View file

@ -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