Skip to content

Commit 177bbf7

Browse files
author
Kevin Kirsche
authored
Add curses.has_key submodule (#8421)
1 parent 804628d commit 177bbf7

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

stdlib/curses/has_key.pyi

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
import sys
2+
3+
if sys.platform != "win32":
4+
def has_key(ch: int | str) -> bool: ...

tests/stubtest_allowlists/win32.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ xxlimited
5959
# Modules that rely on _curses
6060
curses
6161
curses.ascii
62+
curses.has_key
6263
curses.panel
6364
curses.textpad
6465

0 commit comments

Comments
 (0)