From 16babfdfda34d4b28267fbeb9622b3994cd91a68 Mon Sep 17 00:00:00 2001 From: Eddie Antonio Santos Date: Sun, 19 Mar 2017 18:35:31 -0600 Subject: [PATCH] Stub for tty (#1038) Adds Python 2 and 3 stubs for `tty` module. Addresses one of the missing stubs mentioned in #1019. --- stdlib/2and3/tty.pyi | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 stdlib/2and3/tty.pyi diff --git a/stdlib/2and3/tty.pyi b/stdlib/2and3/tty.pyi new file mode 100644 index 000000000..341483560 --- /dev/null +++ b/stdlib/2and3/tty.pyi @@ -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: ...