CI/TYP: run stubtest by twoertwein · Pull Request #47817 · pandas-dev/pandas (original) (raw)
Stubtest enforces that pyi files do not get out of sync with the implementation.
stubtest and mypy seems to have a slight discrepancy (had to change annotations so that they both error in the same cases).
stubtest needs pandas dev to be installed. This might not be something people want to do locally: if pandas dev is not installed: scripts/run_stubtest.py
will 'succeed' but print a warning (the CI has pandas dev installed).
Might want to wait for the CI using mypy 0.971 (#47806 waiting for conda).
@hauntsaninja: The allow list acts more or less like ignore comments, is there an option to error on unused allow list entries?
Closes #47760