mirror of
https://github.com/davidhalter/typeshed.git
synced 2026-01-09 04:52:23 +08:00
_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:
committed by
Jelle Zijlstra
parent
1e4c2a9031
commit
468d2fa629
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user