Skip to content

Commit 318225b

Browse files
committed
fix typing
1 parent dac6291 commit 318225b

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/prompt_toolkit/input/kitty_keyboard.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -291,7 +291,7 @@ def _apply_modifiers(base: Keys, ctrl: bool, shift: bool) -> Keys:
291291
# emulate that here; Shift+Fn just returns Fn for now.
292292
if base.value.startswith("f") and base.value[1:].isdigit():
293293
if ctrl:
294-
ctrl_key = getattr(Keys, "Control" + base.name, None)
294+
ctrl_key: Keys | None = getattr(Keys, "Control" + base.name, None)
295295
if ctrl_key is not None:
296296
return ctrl_key
297297
return base

0 commit comments

Comments
 (0)