There was a breaking change recently in the click library which is a dependency in black. black has updated the dependency version and released a new version, however because black is pinned to an older version, this fix isn't getting propagated. For the moment, we can workaround this by pinning click to an older version, but I think nbqa-black itself can fix this by moving to the newest black version.
I checked the commit that introduced the version pin, but I couldn't figure out the reason for doing so.
Refer to the upstream issue for more details.