I was building an environment for Python SDK development and black is outputting an error.
I checked and it seems to be affected by the changes in click 8.1.0, which have been fixed in black 22.3.0.
psf/black#2964
For now, I have worked around it by setting the version of click to 8.0.2 in the venv configured for development, but I guess I should upgrade black in the future.