Visitar URL original
gh-119306: Break up _pyrepl tests by eugenetriguba · Pull Request #119307 · python/cpython · GitHub
Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Next Next commit
Break up _pyrepl tests
  • Loading branch information
eugenetriguba committed May 21, 2024
commit be3e8621a92da20e9a90f4a16bfbaea3ed413a39
3 changes: 2 additions & 1 deletion Lib/_pyrepl/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@

# types
if False:
from .console import Event
from .types import EventTuple


Expand Down Expand Up @@ -77,7 +78,7 @@ def __init__(self, keymap, verbose=False, invalid_cls=None, character_cls=None):
self.results = deque()
self.stack = []

def push(self, evt):
def push(self, evt: Event):
if self.verbose:
print("pushed", evt.data, end="")
key = evt.data
Expand Down
Loading