STY: remove --keep-runtime-typing from pyupgrade Part-3
xref #40759 :
Changes here are from PEP585 (e.g. List[str] -> list[str]) and from PEP604 (Optional[str] -> str | None), both of which are only applied in the presence of from future import annotations. Some imports became unused after this so those have been removed.
As there were changes in many files (97) this has been split up into 5 smaller PRs. 
This is PR 3 of 5.

Refer the discussion here : #40773 

- 
- [ ] tests added / passed
- [ ] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing.html#code-standards) for how to run them
- [ ] whatsnew entry

looks like this is breaking some CI checks, even though it was all green here - will take a look now

EDIT
----

looks like it's unrelated, something to do with conda-incubator