pandas 2.0 removals for NDFrame and subclasses by hamdanal · Pull Request #930 · pandas-dev/pandas-stubs (original) (raw)
So the issue with needing pytest.warns() is that matplotlib got updated to version 3.9.0, which causes the warning. See pandas-dev/pandas#58851 for a bug report that I filed as a result.
Rather than add the pytest.warns() here and in your other PR's, can you change pyproject.toml to reflect a restriction on matplotlib:
matplotlib = "3.8.4"
And change the pyright version to be >= 1.1.364 since that was used in your tests and why you had to make that change for aggregate()
You'll have to do this in all 4 PR's