@@ -366,7 +366,10 @@ if sys.platform != "win32":
366366 ) -> bytes : ...
367367 def typeahead (__fd : int ) -> None : ...
368368 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+
370373 def ungetch (__ch : _ChType ) -> None : ...
371374 def ungetmouse (__id : int , __x : int , __y : int , __z : int , __bstate : int ) -> None : ...
372375 def update_lines_cols () -> None : ...
@@ -441,10 +444,13 @@ if sys.platform != "win32":
441444 def getch (self ) -> int : ...
442445 @overload
443446 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+
448454 @overload
449455 def getkey (self ) -> str : ...
450456 @overload
0 commit comments