mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-30 08:04:24 +08:00
Stub for tty (#1038)
Adds Python 2 and 3 stubs for `tty` module. Addresses one of the missing stubs mentioned in #1019.
This commit is contained in:
committed by
Łukasz Langa
parent
658abe7c9e
commit
16babfdfda
13
stdlib/2and3/tty.pyi
Normal file
13
stdlib/2and3/tty.pyi
Normal file
@@ -0,0 +1,13 @@
|
||||
# Stubs for tty (Python 3.6)
|
||||
|
||||
# XXX: Undocumented integer constants
|
||||
IFLAG = ... # type: int
|
||||
OFLAG = ... # type: int
|
||||
CFLAG = ... # type: int
|
||||
LFLAG = ... # type: int
|
||||
ISPEED = ... # type: int
|
||||
OSPEED = ... # type: int
|
||||
CC = ... # type: int
|
||||
|
||||
def setraw(fd: int, when: int = ...) -> None: ...
|
||||
def setcbreak(fd: int, when: int = ...) -> None: ...
|
||||
Reference in New Issue
Block a user