Fix type for os.terminal_size to Tuple (#3450)

This commit is contained in:
Daniel Hahler
2019-11-10 19:30:12 +01:00
committed by Sebastian Rittau
parent 97ecd2b91f
commit 2f65683d7b

View File

@@ -393,7 +393,7 @@ if sys.platform != 'win32':
def readv(fd: int, buffers: Sequence[bytearray]) -> int: ...
def writev(fd: int, buffers: Sequence[bytes]) -> int: ...
class terminal_size(NamedTuple):
class terminal_size(Tuple[int, int]):
columns: int
lines: int
def get_terminal_size(fd: int = ...) -> terminal_size: ...