mirror of
https://github.com/python/cpython.git
synced 2025-07-12 13:55:34 +00:00
Improve pyrepl
type-annotation coverage (#119081)
This commit is contained in:
parent
100c7ab00a
commit
033f5c87f1
6 changed files with 31 additions and 14 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue