Commit afed4b29 authored by Julian Andres Klode's avatar Julian Andres Klode
Browse files

Workaround mypy 0.770

mypy 0.770 now requires that we explictly specify mutate_flag,
which smells like a bug to me. :/

Forwarded: https://github.com/python/typeshed/issues/3881
parent 72d8fed2
......@@ -143,7 +143,7 @@ class AcquireProgress(base.AcquireProgress, TextProgress):
import fcntl
import termios
import struct
buf = fcntl.ioctl(self._file, termios.TIOCGWINSZ, 8 * b' ')
buf = fcntl.ioctl(self._file, termios.TIOCGWINSZ, 8 * b' ') # type: ignore # noqa
dummy, col, dummy, dummy = struct.unpack('hhhh', buf)
self._width = col - 1 # 1 for the cursor
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment