Closed
Description
Had a revelation after python/mypy#6847 (comment) and I think we've been using Union too liberally in places where a TypeVar may make more sense (especially in pandas._typing) so would be good to go back and swap those out.
Had a revelation after python/mypy#6847 (comment) and I think we've been using Union too liberally in places where a TypeVar may make more sense (especially in pandas._typing) so would be good to go back and swap those out.