mirror of
https://github.com/python/cpython.git
synced 2025-07-28 13:44:43 +00:00
[3.13] Improve pyrepl
type-annotation coverage (GH-119081) (#119415)
(cherry picked from commit 033f5c87f1
)
Co-authored-by: Alex Waygood <Alex.Waygood@Gmail.com>
This commit is contained in:
parent
bfd9c3ea53
commit
cd39da75af
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