Fix type annotations in pandas.core.base
- [X] closes #26296
- [X] passes `git diff upstream/master -u -- "*.py" | flake8 --diff`

thanks @gwrome 

as an FYI; you don't need to open separate issues for typing each thing. You can simply submit a PR, or create a single issue, with checkboxes is fine.