fix type annotation for pandas._config.config.py
also remove this module from mypy.ini

- [x] closes #25899 
- [x] tests added / passed
- [x] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`
- [ ] whatsnew entry
