summaryrefslogtreecommitdiff
path: root/src/click/_compat.py
Commit message (Collapse)AuthorAgeFilesLines
* Type hinting: Low-hanging fruit improvementsMartijn Pieters2023-01-191-1/+1
| | | | Clean out a series of ignores, either by specifying types or by reworking code slightly the ignore is no longer needed.
* Types: don't leave generic types without a parameterMartijn Pieters2023-01-191-18/+18
| | | | Enable `disallow_any_generics` and provide type information for missing parameters for type hints.
* update requirementsDavid Lord2021-12-261-1/+0
|
* open_file hanldes pathlib.Path("-")David Lord2021-10-251-3/+3
|
* remove _winconsole.WindowsChunkedWriterDavid Lord2021-04-231-1/+0
|
* remove _compat.get_strerrorDavid Lord2021-04-231-11/+0
|
* add typing annotationsDavid Lord2021-04-231-87/+138
|
* use os.fsdecode to display pathsfsdecodeDavid Lord2021-04-121-8/+0
| | | | Works with pathlib, consistent with Python's output.
* allow style support for Jupyter on Windowsleshna balara2021-02-241-6/+1
|
* always install colorama on WindowsDavid Lord2021-02-151-42/+38
|
* initial type checking configurationIwan Aucamp2021-02-151-5/+10
| | | | add minimal annotations to pass checks
* Deprecate click.get_terminal_size() in favor of stdlib shutil.Jon Dufresne2021-02-151-11/+0
| | | | | | | | | | | | 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". Docs available at: https://docs.python.org/3/library/shutil.html#shutil.get_terminal_size
* f-strings everywhereDavid Lord2020-04-201-2/+2
|
* apply pyupgrade --py36-plusDavid Lord2020-04-201-4/+4
|
* remove py2 parts of _compat moduleDavid Lord2020-04-201-362/+183
|
* Merge branch '7.x'David Lord2020-03-081-1/+1
|
* manual cleanupDavid Lord2020-03-081-5/+5
|
* apply pyupgradeDavid Lord2020-03-081-1/+1
|
* apply formattingDavid Lord2020-03-061-3/+1
|
* apply flake8David Lord2020-03-061-0/+1
|
* apply blackDavid Lord2020-03-061-103/+121
|
* apply reorder-python-importsDavid Lord2020-03-061-3/+2
|
* move to src directoryDavid Lord2020-03-061-0/+774