Skip to content

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.

Terminal window
uv add --dev pandas-stubs

Add the package to the project environment, not to xpd itself.

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.

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.