File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change 11import sys
2- from _typeshed import SupportsRead
2+ from _typeshed import ReadOnlyBuffer , SupportsRead
33from typing import IO , Any , NamedTuple , overload
44from typing_extensions import TypeAlias , final
55
66if sys .platform != "win32" :
7+ # Handled by PyCurses_ConvertToChtype in _cursesmodule.c.
78 _ChType : TypeAlias = str | bytes | int
89
910 # ACS codes are only initialized after initscr is called
@@ -330,7 +331,7 @@ if sys.platform != "win32":
330331 def noraw () -> None : ...
331332 def pair_content (__pair_number : int ) -> tuple [int , int ]: ...
332333 def pair_number (__attr : int ) -> int : ...
333- def putp (__string : bytes ) -> None : ...
334+ def putp (__string : ReadOnlyBuffer ) -> None : ...
334335 def qiflush (__flag : bool = ...) -> None : ...
335336 def raw (__flag : bool = ...) -> None : ...
336337 def reset_prog_mode () -> None : ...
@@ -352,7 +353,7 @@ if sys.platform != "win32":
352353 def tigetnum (__capname : str ) -> int : ...
353354 def tigetstr (__capname : str ) -> bytes | None : ...
354355 def tparm (
355- __str : bytes ,
356+ __str : ReadOnlyBuffer ,
356357 __i1 : int = ...,
357358 __i2 : int = ...,
358359 __i3 : int = ...,
You can’t perform that action at this time.
0 commit comments