mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-16 00:37:10 +08:00
Fix type for os.terminal_size to Tuple (#3450)
This commit is contained in:
committed by
Sebastian Rittau
parent
97ecd2b91f
commit
2f65683d7b
@@ -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: ...
|
||||
|
||||
Reference in New Issue
Block a user