We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
__getattr__
pyarrow.compute
When type-checking with pyright, the module pyarrow.compute raises tons of errors of the form
pyright
error: "sum" is not a known attribute of module "pyarrow.compute" (reportAttributeAccessIssue)
One can use the useLibraryCodeForTypes=false option to suppress these, but it's not configurable on a per-module basis.
useLibraryCodeForTypes=false
The problem is that these are dynamically generated via
arrow/python/pyarrow/compute.py
Line 336 in c3aad6a
A workaround until stubs are available would be to add a module-level __getattr__ function:
if TYPE_CHECKING: def __getattr__(self, name: str, /) -> Any: ...
See: microsoft/pyright#3909 (comment)
Python
The text was updated successfully, but these errors were encountered:
please install pyarrow-stubs
pip install 'pyarrow-stubs>=17.2'
Sorry, something went wrong.
randolf-scholz
Successfully merging a pull request may close this issue.
Describe the enhancement requested
When type-checking with
pyright
, the modulepyarrow.compute
raises tons of errors of the formOne can use the
useLibraryCodeForTypes=false
option to suppress these, but it's not configurable on a per-module basis.The problem is that these are dynamically generated via
arrow/python/pyarrow/compute.py
Line 336 in c3aad6a
A workaround until stubs are available would be to add a module-level
__getattr__
function:See: microsoft/pyright#3909 (comment)
Component(s)
Python
The text was updated successfully, but these errors were encountered: