From 177bbf7864b544880e7db8f898d14aa5c3561f07 Mon Sep 17 00:00:00 2001 From: Kevin Kirsche Date: Thu, 28 Jul 2022 09:39:44 -0400 Subject: [PATCH] Add `curses.has_key` submodule (#8421) --- stdlib/curses/has_key.pyi | 4 ++++ tests/stubtest_allowlists/win32.txt | 1 + 2 files changed, 5 insertions(+) create mode 100644 stdlib/curses/has_key.pyi diff --git a/stdlib/curses/has_key.pyi b/stdlib/curses/has_key.pyi new file mode 100644 index 000000000..ff728aedf --- /dev/null +++ b/stdlib/curses/has_key.pyi @@ -0,0 +1,4 @@ +import sys + +if sys.platform != "win32": + def has_key(ch: int | str) -> bool: ... diff --git a/tests/stubtest_allowlists/win32.txt b/tests/stubtest_allowlists/win32.txt index 5f33df8f7..de2c86775 100644 --- a/tests/stubtest_allowlists/win32.txt +++ b/tests/stubtest_allowlists/win32.txt @@ -59,6 +59,7 @@ xxlimited # Modules that rely on _curses curses curses.ascii +curses.has_key curses.panel curses.textpad