diff options
author | Takeshi KOMIYA <i.tkomiya@gmail.com> | 2020-06-03 23:43:13 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-03 23:43:13 +0900 |
commit | ed75950017e63b3ccfe2beef3d22ae6ec44410b0 (patch) | |
tree | 0c0ddfd27e4dbe86ad73994523e941ffee5c03e8 /sphinx/util/console.py | |
parent | e3f9bf43f617b17937df255519337ebda897f46b (diff) | |
parent | b8fbd3d9c64b8bf12d2cdc091798faad7513e820 (diff) | |
download | sphinx-git-ed75950017e63b3ccfe2beef3d22ae6ec44410b0.tar.gz |
Merge pull request #7775 from tk0miya/mypy-0.780
Fix mypy violations (with mypy-0.780)
Diffstat (limited to 'sphinx/util/console.py')
-rw-r--r-- | sphinx/util/console.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sphinx/util/console.py b/sphinx/util/console.py index 98563f58e..d429be602 100644 --- a/sphinx/util/console.py +++ b/sphinx/util/console.py @@ -35,8 +35,7 @@ def get_terminal_width() -> int: import termios import fcntl import struct - call = fcntl.ioctl(0, termios.TIOCGWINSZ, # type: ignore - struct.pack('hhhh', 0, 0, 0, 0)) + call = fcntl.ioctl(0, termios.TIOCGWINSZ, struct.pack('hhhh', 0, 0, 0, 0)) height, width = struct.unpack('hhhh', call)[:2] terminal_width = width except Exception: |