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
{{ message }}
Repository navigation
Deprecate click.get_terminal_size() in favor of stdlib shutil.get_terminal_size() #1736
Since Python 3.3, the stdlib provides the function shutil.get_terminal_size(). Now that the project has dropped Python 2
support, the compatibility shim is no longer necessary.
The stdlib version returns a named tuple. So rather than indexing "0", can use the more self-documenting attribute "columns".
Activity
janluke commentedon Jan 22, 2021
davidism commentedon Jan 22, 2021
janluke commentedon Jan 22, 2021