Fix mypy errors tests.dtypes.test_common
xref #28926

- [x] xref #28926
- [x] tests passed
- [x] passes `black pandas`
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
