pandas/missing-pandas-stubs
| Rule | missing-pandas-stubs |
|---|---|
| Pack | pandas |
| Severity | warning |
| Fix | none, edit by hand |
| Library versions | every version |
The project has a type checker but not pandas-stubs, so calls to pandas are not type checked. Add pandas-stubs as a development dependency.
uv add --dev pandas-stubsAdd the package to the project environment, not to xpd itself.
When xpd warns
Section titled “When xpd warns”Without pandas-stubs, a type checker doesn't check calls to pandas.
The warning appears when pandas-stubs is not installed and the project uses mypy, pyright, basedpyright, ty or pyrefly.
Message
Section titled “Message”xpd prints this message with the issue. A name that starts with $ stands for code from your file.
The project has a type checker but not pandas-stubs, so calls to pandas are not type checked. Add pandas-stubs as a development dependency.Browse the other rules of the pandas pack.