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 1
1
import sys
2
- from _typeshed import SupportsRead
2
+ from _typeshed import ReadOnlyBuffer , SupportsRead
3
3
from typing import IO , Any , NamedTuple , overload
4
4
from typing_extensions import TypeAlias , final
5
5
6
6
if sys .platform != "win32" :
7
+ # Handled by PyCurses_ConvertToChtype in _cursesmodule.c.
7
8
_ChType : TypeAlias = str | bytes | int
8
9
9
10
# ACS codes are only initialized after initscr is called
@@ -330,7 +331,7 @@ if sys.platform != "win32":
330
331
def noraw () -> None : ...
331
332
def pair_content (__pair_number : int ) -> tuple [int , int ]: ...
332
333
def pair_number (__attr : int ) -> int : ...
333
- def putp (__string : bytes ) -> None : ...
334
+ def putp (__string : ReadOnlyBuffer ) -> None : ...
334
335
def qiflush (__flag : bool = ...) -> None : ...
335
336
def raw (__flag : bool = ...) -> None : ...
336
337
def reset_prog_mode () -> None : ...
@@ -352,7 +353,7 @@ if sys.platform != "win32":
352
353
def tigetnum (__capname : str ) -> int : ...
353
354
def tigetstr (__capname : str ) -> bytes | None : ...
354
355
def tparm (
355
- __str : bytes ,
356
+ __str : ReadOnlyBuffer ,
356
357
__i1 : int = ...,
357
358
__i2 : int = ...,
358
359
__i3 : int = ...,
You can’t perform that action at this time.
0 commit comments