Skip to content

Commit 41e0c75

Browse files
Added a few missing type annotations to input/win32 and layout.
1 parent 06d2815 commit 41e0c75

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

prompt_toolkit/input/win32.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from contextlib import contextmanager
77
from ctypes import pointer, windll
88
from ctypes.wintypes import DWORD, HANDLE
9-
from typing import Callable, ContextManager, Dict, Iterable, Optional, TextIO
9+
from typing import Callable, ContextManager, Dict, Iterable, List, Optional, TextIO
1010

1111
from prompt_toolkit.eventloop import run_in_executor_with_context
1212
from prompt_toolkit.eventloop.win32 import create_win32_event, wait_for_handles
@@ -71,7 +71,7 @@ def detach(self) -> ContextManager[None]:
7171
"""
7272
return detach_win32_input(self)
7373

74-
def read_keys(self):
74+
def read_keys(self) -> List[KeyPress]:
7575
return list(self.console_input_reader.read())
7676

7777
def flush(self) -> None:

prompt_toolkit/layout/layout.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ def __init__(
3838
self,
3939
container: AnyContainer,
4040
focused_element: Optional[FocusableElement] = None,
41-
):
41+
) -> None:
4242

4343
self.container = to_container(container)
4444
self._stack: List[Window] = []

0 commit comments

Comments
 (0)