Fix mypy error in testing
- [x] Ensure all linting tests pass, see [here](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit) for how to run them

Fixup to get ci green again
great merge in green can i suggest the approach taken in #44744?  (also fixes a FutureWarning that is failing the npdev build) i think closed by #44744 yeah i think fixed on master already, thanks @phofl  No worries