CI: Fix failure due to warning
- [ ] closes #xxxx (Replace xxxx with the GitHub issue number)
- [ ] [Tests added and passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#writing-tests) if fixing a bug or adding a new feature
- [ ] All [code checks passed](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#pre-commit).
- [ ] Added [type annotations](https://pandas.pydata.org/pandas-docs/dev/development/contributing_codebase.html#type-hints) to new arguments/methods/functions.
- [ ] Added an entry in the latest `doc/source/whatsnew/vX.X.X.rst` file if fixing a bug or adding a new feature.

cc @mroeschke any idea why this wasn't failing before?

https://app.circleci.com/pipelines/github/pandas-dev/pandas/25348/workflows/8a8ef371-75fe-4c4e-b928-33e74b63f1f9/jobs/59312
Huh that's odd. Yeah not sure why this wasn't caught.

Should be rectified in https://github.com/pandas-dev/pandas/pull/51545#discussion_r1113736828 I think (there is an unnecessary pyarrow version check here since our min pyarrow version is 7 now) I'll merge this, checked 5 builds only failures from the other pr. Then we should get a green ci again there