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