_curses.tparm works on bytes, not str (#1828)

The documentation refers to the first argument as `str`
but careful reading reveals that its type,
and the function return type, is `bytes`.
This commit is contained in:
Yuri Khan
2018-01-24 05:31:59 +07:00
committed by Jelle Zijlstra
parent 1e4c2a9031
commit 468d2fa629

View File

@@ -280,7 +280,7 @@ def termname() -> bytes: ...
def tigetflag(capname: str) -> int: ...
def tigetnum(capname: str) -> int: ...
def tigetstr(capname: str) -> bytes: ...
def tparm(fmt: str, i1: int = ..., i2: int = ..., i3: int = ..., i4: int = ..., i5: int = ..., i6: int = ..., i7: int = ..., i8: int = ..., i9: int = ...) -> str: ...
def tparm(fmt: bytes, i1: int = ..., i2: int = ..., i3: int = ..., i4: int = ..., i5: int = ..., i6: int = ..., i7: int = ..., i8: int = ..., i9: int = ...) -> bytes: ...
def typeahead(fd: int) -> None: ...
def unctrl(ch: _chtype) -> bytes: ...
def unget_wch(ch: _chtype) -> None: ...