13
13
from prompt_toolkit .key_binding .vi_state import InputMode , ViState
14
14
from prompt_toolkit .layout .screen import Size
15
15
from prompt_toolkit .terminal .vt100_output import Vt100_Output , _get_size
16
- from prompt_toolkit .utils import Callback
17
16
18
17
from .arrangement import Arrangement , Pane , Window
19
18
from .commands .commands import handle_command , call_command_handler
@@ -381,7 +380,7 @@ def on_focus_changed():
381
380
use_alternate_screen = True ,
382
381
style = self .style ,
383
382
get_title = get_title ,
384
- on_invalidate = Callback (lambda cli : self .invalidate ()))
383
+ on_invalidate = (lambda cli : self .invalidate ()))
385
384
386
385
cli = CommandLineInterface (
387
386
application = application ,
@@ -392,7 +391,7 @@ def on_focus_changed():
392
391
# Synchronize the Vi state with the CLI object.
393
392
# (This is stored in the current class, but expected to be in the
394
393
# CommandLineInterface.)
395
- def sync_vi_state ():
394
+ def sync_vi_state (_ ):
396
395
client_state = self .get_client_state (cli )
397
396
VI = EditingMode .VI
398
397
EMACS = EditingMode .EMACS
@@ -413,7 +412,7 @@ def sync_vi_state():
413
412
cli .max_render_postpone_time = .1 # Second.
414
413
415
414
# Hide message when a key has been pressed.
416
- def key_pressed ():
415
+ def key_pressed (_ ):
417
416
self .get_client_state (cli ).message = None
418
417
cli .input_processor .beforeKeyPress += key_pressed
419
418
0 commit comments