Describe the bug
A recent version of click has been released which removes _unicodefun, breaking black (see also dask/distributed#6013).
To Reproduce
docker run --rm -it python:3.9-alpine sh
In the container:
pip install "click==8.1.0" "black==22.1.0"
black .
The resulting error is:
Traceback (most recent call last):
File "/usr/local/bin/black", line 8, in <module>
sys.exit(patched_main())
File "/usr/local/lib/python3.9/site-packages/black/__init__.py", line 1423, in patched_main
patch_click()
File "/usr/local/lib/python3.9/site-packages/black/__init__.py", line 1409, in patch_click
from click import _unicodefun
ImportError: cannot import name '_unicodefun' from 'click' (/usr/local/lib/python3.9/site-packages/click/__init__.py)
Describe the bug
A recent version of
clickhas been released which removes_unicodefun, breakingblack(see also dask/distributed#6013).To Reproduce
In the container:
The resulting error is: