From 4507d26ef266a412d6528188a4bc622cd1d4ef3b Mon Sep 17 00:00:00 2001 From: Vito De Tullio Date: Sun, 1 Sep 2024 19:20:31 +0200 Subject: [PATCH] curses: mark keypad yes parameter as positional only (#12605) matches the runtime check: "TypeError: window.keypad() takes no keyword arguments" --- stdlib/_curses.pyi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stdlib/_curses.pyi b/stdlib/_curses.pyi index 505637574..b68c8925a 100644 --- a/stdlib/_curses.pyi +++ b/stdlib/_curses.pyi @@ -493,7 +493,7 @@ class _CursesWindow: def instr(self, y: int, x: int, n: int = ...) -> bytes: ... def is_linetouched(self, line: int, /) -> bool: ... def is_wintouched(self) -> bool: ... - def keypad(self, yes: bool) -> None: ... + def keypad(self, yes: bool, /) -> None: ... def leaveok(self, yes: bool) -> None: ... def move(self, new_y: int, new_x: int) -> None: ... def mvderwin(self, y: int, x: int) -> None: ...