Skip to content

Commit 698e74d

Browse files
os.get_terminal_size also exists on Windows
... at least according to https://docs.python.org/3/library/os.html#os.get_terminal_size. Related to python/mypy#5370.
1 parent 42db5ad commit 698e74d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

stdlib/3/os/__init__.pyi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -362,8 +362,8 @@ if sys.platform != 'win32':
362362
def readv(fd: int, buffers: Sequence[bytearray]) -> int: ...
363363
def writev(fd: int, buffers: Sequence[bytes]) -> int: ...
364364

365-
terminal_size = NamedTuple('terminal_size', [('columns', int), ('lines', int)])
366-
def get_terminal_size(fd: int = ...) -> terminal_size: ...
365+
terminal_size = NamedTuple('terminal_size', [('columns', int), ('lines', int)])
366+
def get_terminal_size(fd: int = ...) -> terminal_size: ...
367367

368368
if sys.version_info >= (3, 4):
369369
def get_inheritable(fd: int) -> bool: ...

0 commit comments

Comments
 (0)