Closed loicdiridollou closed 1 month ago
We can probably be a little more elegant in some of the
pytest_warn_bounds
where we define a variable then redefine it the line below if we are dealing with pandas 3.0.0, open to suggestions.
I'm open to better ways of doing the tests here, but will accept this PR as is.
@loicdiridollou looks like the fix for test_versions()
didn't work. See https://github.com/pandas-dev/pandas-stubs/actions/runs/10289869197/job/28478532479
Arghh I thought I had it fixed, sorry for that let me investigate and fix.
I was able to have a running build on my own repo, see https://github.com/loicdiridollou/pandas-stubs/actions/runs/10290769879/job/28481506269.
The PR is here (https://github.com/pandas-dev/pandas-stubs/pull/975), the issue was that pandas>=3.0.0 does not seem to rely on distutils
anymore so the warning was never raised to the user
assert_type()
to assert the type of any return valueWe can probably be a little more elegant in some of the
pytest_warn_bounds
where we define a variable then redefine it the line below if we are dealing with pandas 3.0.0, open to suggestions.