Skip to content

Testing the tests in pandas-stubs #3614

@Dr-Irv

Description

@Dr-Irv

We would like to eventually support pyrefly with pandas-stubs. Right now, we do run pyrefly as part of our CI. But I'm not convinced that it is doing the right thing.

I use Windows, with a conda environment. If I clone the repo at https://github.com/pandas-dev/pandas-stubs/ and set up the development environment as described at https://github.com/pandas-dev/pandas-stubs/blob/main/docs/setup.md then the following things happen:

  • pyrefly check pandas-stubs checks 567 files and reports no errors.
  • pyrefly check pandas-stubs tests checks 958 files and reports no errors.

In the first case, 104 errors are suppressed, while in the second case 2226 errors are suppressed.

In both of the above cases, I get this message:

WARN Invalid search-path: `C:\Condadirs\envs\pandasstubs311\Lib\site-packages\pandas\typings` does not exist

A similar message happens in our CI on other platforms. See https://github.com/pandas-dev/pandas-stubs/actions/runs/26690718458/job/78666507261 where it says:

WARN Invalid search-path: `/home/runner/.cache/pypoetry/virtualenvs/pandas-stubs-Si3tVypI-py3.11/lib/python3.11/site-packages/pandas/typings` does not exist

If I create a new environment, and install pandas 3.0.3 and the released version of pandas-stubs (now 3.0.3.260530), and do pyrefly check tests, 72 errors are reported.

I don't understand why when the stubs are installed, errors are reported, while when the stubs are NOT installed, zero errors are reported.

Metadata

Metadata

Assignees

Type

No fields configured for Task.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions