TYP: use from __future__ import annotations more - batch 4
urgh. will circle back to this. I think I've changed a file here that was changed in one of the other PRs because Union was imported from pandas._typing.