mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 11:51:28 +08:00
os.get_terminal_size also exists on Windows (#2338)
... at least according to https://docs.python.org/3/library/os.html#os.get_terminal_size. Related to python/mypy#5370.
This commit is contained in:
@@ -362,8 +362,8 @@ if sys.platform != 'win32':
|
||||
def readv(fd: int, buffers: Sequence[bytearray]) -> int: ...
|
||||
def writev(fd: int, buffers: Sequence[bytes]) -> int: ...
|
||||
|
||||
terminal_size = NamedTuple('terminal_size', [('columns', int), ('lines', int)])
|
||||
def get_terminal_size(fd: int = ...) -> terminal_size: ...
|
||||
terminal_size = NamedTuple('terminal_size', [('columns', int), ('lines', int)])
|
||||
def get_terminal_size(fd: int = ...) -> terminal_size: ...
|
||||
|
||||
if sys.version_info >= (3, 4):
|
||||
def get_inheritable(fd: int) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user