Pyright does not recognize pandera.polars exports: reportPrivateImportUsage #1726
Closed
3 tasks done
Labels
bug
Something isn't working
Describe the bug
Pyright throws
reportPrivateImportUsage
errors on basically everything imported frompandera.polars
.Simply running pyright by hand on a minimal example like this will show the problem:
Expected behavior
Running pyright (either by hand or indirectly as an LSP in an editor) should not give any errors. More importantly I don't expect little red squiggly lines on literally every import from
pandera.polars
.Context
I'm currently on pandera version
0.20.1
and pyright version1.1.368
.To me it looks like Pylance papers over these issues or swallows the error even though it's using pyright under the hood. The pyright folk are really pretty clear that this is as designed and it ought to be fixed in the libraries. See this issue in pyright for example.
If you agree this is an issue and should be fixed in pandera I can probably find the time to make a PR!
The text was updated successfully, but these errors were encountered: