Fix type annotation for pandas.core.generic.py
Also remove this module from mypy.ini

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