When bumping the version of the pre-commit hooks with pre-commit autoupdate, mypy reports typing errors.
The goal of this issue is to update the mypy pre-commit hook (and ideally all others) to the most recent version. At the same time, any new typing error should be addressed.