summaryrefslogtreecommitdiff
path: root/sphinx/util/console.py
diff options
context:
space:
mode:
authorTakeshi KOMIYA <i.tkomiya@gmail.com>2020-06-03 23:43:13 +0900
committerGitHub <noreply@github.com>2020-06-03 23:43:13 +0900
commited75950017e63b3ccfe2beef3d22ae6ec44410b0 (patch)
tree0c0ddfd27e4dbe86ad73994523e941ffee5c03e8 /sphinx/util/console.py
parente3f9bf43f617b17937df255519337ebda897f46b (diff)
parentb8fbd3d9c64b8bf12d2cdc091798faad7513e820 (diff)
downloadsphinx-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.py3
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: