Fix mypy errors introduced by bumping the locked version of `attrs` and `gitpython`.