ImportError: cannot import name 'ParameterSource' from 'click.core' (/home/frappe/frappe.bench/env/lib/python3.10/site-packages/click/core.py)

Version 14
Black

Trying:
black my_custom_app/

Getting error:

Traceback (most recent call last):
  File "/home/av/v14/env/bin/black", line 5, in <module>
    from black import patched_main
  File "src/black/__init__.py", line 31, in <module>
ImportError: cannot import name 'ParameterSource' from 'click.core' (/home/frappe/frappe.bench/env/lib/python3.10/site-packages/click/core.py)```

Solution from:
https://github.com/psf/black/issues/3111#issuecomment-1177362541

```Please uninstall black and click, Then install both to its the latest version will solve this issue.
pip uninstall black
pip uninstall click
then
pip install black
pip install click```

Solution from: