Backport PR #31017 on branch 1.0.x (REG: restore format_type attr)
Backport PR #31017: REG: restore format_type attr
CI failure will be fixed by https://github.com/pandas-dev/pandas/pull/31209. OK to merge after that's merged, and then the merge commit should pass.