@@ -366,7 +366,10 @@ if sys.platform != "win32":
366
366
) -> bytes : ...
367
367
def typeahead (__fd : int ) -> None : ...
368
368
def unctrl (__ch : _ChType ) -> bytes : ...
369
- def unget_wch (__ch : int | str ) -> None : ...
369
+ if sys .version_info < (3 , 12 ) or sys .platform != "darwin" :
370
+ # The support for macos was dropped in 3.12
371
+ def unget_wch (__ch : int | str ) -> None : ...
372
+
370
373
def ungetch (__ch : _ChType ) -> None : ...
371
374
def ungetmouse (__id : int , __x : int , __y : int , __z : int , __bstate : int ) -> None : ...
372
375
def update_lines_cols () -> None : ...
@@ -441,10 +444,13 @@ if sys.platform != "win32":
441
444
def getch (self ) -> int : ...
442
445
@overload
443
446
def getch (self , y : int , x : int ) -> int : ...
444
- @overload
445
- def get_wch (self ) -> int | str : ...
446
- @overload
447
- def get_wch (self , y : int , x : int ) -> int | str : ...
447
+ if sys .version_info < (3 , 12 ) or sys .platform != "darwin" :
448
+ # The support for macos was dropped in 3.12
449
+ @overload
450
+ def get_wch (self ) -> int | str : ...
451
+ @overload
452
+ def get_wch (self , y : int , x : int ) -> int | str : ...
453
+
448
454
@overload
449
455
def getkey (self ) -> str : ...
450
456
@overload
0 commit comments