You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Re-add fallback for zero terminal width (python#9651)
Contrary to what I assumed in python#9143, shutil.get_terminal_size() doesn't
actually handle a 0 width from os.get_terminal_size() - it only handles
a 0 COLUMNS environment variable.
Thus, this caused python#8144 to regress.
This change re-adds and uses DEFAULT_COLUMNS and also adds the test
which was deemed unnecessary in python#8145 - this regression proves that I'd
have been a good idea to add it in the first place.
(Test written by Anthony Sottile)
Fixeshttps://github.com/pre-commit/mirrors-mypy/issues/29
0 commit comments