BLD: Fix black to match pre-commit black version
Black version is not synced now across relevant files (pre-commit's version is higher than requirements-dev's and environment's). This PR aims to fix that.

I am not aware of any issue mentioning this problem, hence no reference.
Thanks @FactorizeD for the PR.

> I am not aware of any issue mentioning this problem, hence no reference.

This is surprising that this has not caused anyone any issues since was changed for pre-commit in #45752 which was merged a few weeks back now.