mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-08 13:04:46 +08:00
_curses: improve bytes handling (#9007)
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
import sys
|
||||
from _typeshed import SupportsRead
|
||||
from _typeshed import ReadOnlyBuffer, SupportsRead
|
||||
from typing import IO, Any, NamedTuple, overload
|
||||
from typing_extensions import TypeAlias, final
|
||||
|
||||
if sys.platform != "win32":
|
||||
# Handled by PyCurses_ConvertToChtype in _cursesmodule.c.
|
||||
_ChType: TypeAlias = str | bytes | int
|
||||
|
||||
# ACS codes are only initialized after initscr is called
|
||||
@@ -330,7 +331,7 @@ if sys.platform != "win32":
|
||||
def noraw() -> None: ...
|
||||
def pair_content(__pair_number: int) -> tuple[int, int]: ...
|
||||
def pair_number(__attr: int) -> int: ...
|
||||
def putp(__string: bytes) -> None: ...
|
||||
def putp(__string: ReadOnlyBuffer) -> None: ...
|
||||
def qiflush(__flag: bool = ...) -> None: ...
|
||||
def raw(__flag: bool = ...) -> None: ...
|
||||
def reset_prog_mode() -> None: ...
|
||||
@@ -352,7 +353,7 @@ if sys.platform != "win32":
|
||||
def tigetnum(__capname: str) -> int: ...
|
||||
def tigetstr(__capname: str) -> bytes | None: ...
|
||||
def tparm(
|
||||
__str: bytes,
|
||||
__str: ReadOnlyBuffer,
|
||||
__i1: int = ...,
|
||||
__i2: int = ...,
|
||||
__i3: int = ...,
|
||||
|
||||
Reference in New Issue
Block a user