mirror of
https://github.com/davidhalter/typeshed.git
synced 2025-12-22 20:01:29 +08:00
Convert namedtuples to class syntax (#3321)
This commit is contained in:
@@ -393,7 +393,9 @@ 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)])
|
||||
class terminal_size(NamedTuple):
|
||||
columns: int
|
||||
lines: int
|
||||
def get_terminal_size(fd: int = ...) -> terminal_size: ...
|
||||
|
||||
def get_inheritable(fd: int) -> bool: ...
|
||||
|
||||
Reference in New Issue
Block a user